summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'compiler')
-rw-r--r--compiler/jni/quick/jni_compiler.cc4
-rw-r--r--compiler/optimizing/codegen_test.cc2
-rw-r--r--compiler/optimizing/graph_checker.cc2
-rw-r--r--compiler/optimizing/register_allocator_test.cc4
-rw-r--r--compiler/utils/assembler.h2
5 files changed, 7 insertions, 7 deletions
diff --git a/compiler/jni/quick/jni_compiler.cc b/compiler/jni/quick/jni_compiler.cc
index 913a3baa27..e7dd6cf6be 100644
--- a/compiler/jni/quick/jni_compiler.cc
+++ b/compiler/jni/quick/jni_compiler.cc
@@ -573,8 +573,8 @@ static JniCompiledMethod ArtJniCompileMethodInternal(const CompilerOptions& comp
// -- For example VMOV {r0, r1} -> D0; VMOV r0 -> S0.
__ Move(mr_return_reg, jni_return_reg, main_jni_conv->SizeOfReturnValue());
} else if (jni_return_reg.IsNoRegister() && mr_return_reg.IsNoRegister()) {
- // Sanity check: If the return value is passed on the stack for some reason,
- // then make sure the size matches.
+ // Check that if the return value is passed on the stack for some reason,
+ // that the size matches.
CHECK_EQ(main_jni_conv->SizeOfReturnValue(), mr_conv->SizeOfReturnValue());
}
}
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc
index f4f44a0479..c0441b07ed 100644
--- a/compiler/optimizing/codegen_test.cc
+++ b/compiler/optimizing/codegen_test.cc
@@ -552,7 +552,7 @@ TEST_F(CodegenTest, MaterializedCondition2) {
HIntConstant* cst_rhs = graph->GetIntConstant(rhs[i]);
HLessThan cmp_lt(cst_lhs, cst_rhs);
if_block->AddInstruction(&cmp_lt);
- // We insert a dummy instruction to separate the HIf from the HLessThan
+ // We insert a fake instruction to separate the HIf from the HLessThan
// and force the materialization of the condition.
HMemoryBarrier force_materialization(MemBarrierKind::kAnyAny, 0);
if_block->AddInstruction(&force_materialization);
diff --git a/compiler/optimizing/graph_checker.cc b/compiler/optimizing/graph_checker.cc
index ece88a01b4..44de54eccf 100644
--- a/compiler/optimizing/graph_checker.cc
+++ b/compiler/optimizing/graph_checker.cc
@@ -63,7 +63,7 @@ static bool IsExitTryBoundaryIntoExitBlock(HBasicBlock* block) {
size_t GraphChecker::Run(bool pass_change, size_t last_size) {
size_t current_size = GetGraph()->GetReversePostOrder().size();
if (!pass_change) {
- // Nothing changed for certain. Do a quick sanity check on that assertion
+ // Nothing changed for certain. Do a quick check of the validity on that assertion
// for anything other than the first call (when last size was still 0).
if (last_size != 0) {
if (current_size != last_size) {
diff --git a/compiler/optimizing/register_allocator_test.cc b/compiler/optimizing/register_allocator_test.cc
index d1db40be82..f635142e36 100644
--- a/compiler/optimizing/register_allocator_test.cc
+++ b/compiler/optimizing/register_allocator_test.cc
@@ -685,7 +685,7 @@ void RegisterAllocatorTest::ExpectedInRegisterHint(Strategy strategy) {
RegisterAllocator::Create(GetScopedAllocator(), &codegen, liveness, strategy);
register_allocator->AllocateRegisters();
- // Sanity check that in normal conditions, the register should be hinted to 0 (EAX).
+ // Check the validity that in normal conditions, the register should be hinted to 0 (EAX).
ASSERT_EQ(field->GetLiveInterval()->GetRegister(), 0);
}
@@ -753,7 +753,7 @@ void RegisterAllocatorTest::SameAsFirstInputHint(Strategy strategy) {
RegisterAllocator::Create(GetScopedAllocator(), &codegen, liveness, strategy);
register_allocator->AllocateRegisters();
- // Sanity check that in normal conditions, the registers are the same.
+ // Check the validity that in normal conditions, the registers are the same.
ASSERT_EQ(first_sub->GetLiveInterval()->GetRegister(), 1);
ASSERT_EQ(second_sub->GetLiveInterval()->GetRegister(), 1);
}
diff --git a/compiler/utils/assembler.h b/compiler/utils/assembler.h
index 1199602e09..e863b9a071 100644
--- a/compiler/utils/assembler.h
+++ b/compiler/utils/assembler.h
@@ -229,7 +229,7 @@ class AssemblerBuffer {
// When building the C++ tests, assertion code is enabled. To allow
// asserting that the user of the assembler buffer has ensured the
- // capacity needed for emitting, we add a dummy method in non-debug mode.
+ // capacity needed for emitting, we add a placeholder method in non-debug mode.
bool HasEnsuredCapacity() const { return true; }
#endif