Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index ea7b73f2fe987fcbfde93d4a334fb1395b57bf42..3bcfc3b13cd503a8132b8a4297be393573f1310b 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -786,9 +786,9 @@ void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) { |
// Check that we're not inside a with or catch context. |
__ ldr(r1, FieldMemOperand(cp, HeapObject::kMapOffset)); |
__ CompareRoot(r1, Heap::kWithContextMapRootIndex); |
- __ Check(ne, "Declaration in with context."); |
+ __ Check(ne, kDeclarationInWithContext); |
__ CompareRoot(r1, Heap::kCatchContextMapRootIndex); |
- __ Check(ne, "Declaration in catch context."); |
+ __ Check(ne, kDeclarationInCatchContext); |
} |
} |
@@ -2512,7 +2512,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
// Check for an uninitialized let binding. |
__ ldr(r2, location); |
__ CompareRoot(r2, Heap::kTheHoleValueRootIndex); |
- __ Check(eq, "Let binding re-initialization."); |
+ __ Check(eq, kLetBindingReInitialization); |
} |
// Perform the assignment. |
__ str(r0, location); |
@@ -3473,23 +3473,23 @@ void FullCodeGenerator::EmitSeqStringSetCharCheck(Register string, |
Register value, |
uint32_t encoding_mask) { |
__ SmiTst(index); |
- __ Check(eq, "Non-smi index"); |
+ __ Check(eq, kNonSmiIndex); |
__ SmiTst(value); |
- __ Check(eq, "Non-smi value"); |
+ __ Check(eq, kNonSmiValue); |
__ ldr(ip, FieldMemOperand(string, String::kLengthOffset)); |
__ cmp(index, ip); |
- __ Check(lt, "Index is too large"); |
+ __ Check(lt, kIndexIsTooLarge); |
__ cmp(index, Operand(Smi::FromInt(0))); |
- __ Check(ge, "Index is negative"); |
+ __ Check(ge, kIndexIsNegative); |
__ ldr(ip, FieldMemOperand(string, HeapObject::kMapOffset)); |
__ ldrb(ip, FieldMemOperand(ip, Map::kInstanceTypeOffset)); |
__ and_(ip, ip, Operand(kStringRepresentationMask | kStringEncodingMask)); |
__ cmp(ip, Operand(encoding_mask)); |
- __ Check(eq, "Unexpected string type"); |
+ __ Check(eq, kUnexpectedStringType); |
} |
@@ -3849,7 +3849,7 @@ void FullCodeGenerator::EmitGetFromCache(CallRuntime* expr) { |
Handle<FixedArray> jsfunction_result_caches( |
isolate()->native_context()->jsfunction_result_caches()); |
if (jsfunction_result_caches->length() <= cache_id) { |
- __ Abort("Attempt to use undefined cache."); |
+ __ Abort(kAttemptToUseUndefinedCache); |
__ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
context()->Plug(r0); |
return; |
@@ -4030,7 +4030,7 @@ void FullCodeGenerator::EmitFastAsciiArrayJoin(CallRuntime* expr) { |
// elements_end: Array end. |
if (generate_debug_code_) { |
__ cmp(array_length, Operand::Zero()); |
- __ Assert(gt, "No empty arrays here in EmitFastAsciiArrayJoin"); |
+ __ Assert(gt, kNoEmptyArraysHereInEmitFastAsciiArrayJoin); |
} |
__ bind(&loop); |
__ ldr(string, MemOperand(element, kPointerSize, PostIndex)); |