Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 8f11acc1becd23be529a569f443f0b8fa1a8c427..a5684f6aba45efb5a04f4d1eca736c4a57934120 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -745,9 +745,9 @@ void FullCodeGenerator::EmitDebugCheckDeclarationContext(Variable* variable) { |
// Check that we're not inside a with or catch context. |
__ mov(ebx, FieldOperand(esi, HeapObject::kMapOffset)); |
__ cmp(ebx, isolate()->factory()->with_context_map()); |
- __ Check(not_equal, "Declaration in with context."); |
+ __ Check(not_equal, kDeclarationInWithContext); |
__ cmp(ebx, isolate()->factory()->catch_context_map()); |
- __ Check(not_equal, "Declaration in catch context."); |
+ __ Check(not_equal, kDeclarationInCatchContext); |
} |
} |
@@ -2169,7 +2169,7 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
__ Push(Smi::FromInt(resume_mode)); |
__ CallRuntime(Runtime::kResumeJSGeneratorObject, 3); |
// Not reached: the runtime call returns elsewhere. |
- __ Abort("Generator failed to resume."); |
+ __ Abort(kGeneratorFailedToResume); |
// Throw error if we attempt to operate on a running generator. |
__ bind(&wrong_state); |
@@ -2468,7 +2468,7 @@ void FullCodeGenerator::EmitVariableAssignment(Variable* var, |
// Check for an uninitialized let binding. |
__ mov(edx, location); |
__ cmp(edx, isolate()->factory()->the_hole_value()); |
- __ Check(equal, "Let binding re-initialization."); |
+ __ Check(equal, kLetBindingReInitialization); |
} |
// Perform the assignment. |
__ mov(location, eax); |
@@ -3430,15 +3430,15 @@ void FullCodeGenerator::EmitSeqStringSetCharCheck(Register string, |
Register value, |
uint32_t encoding_mask) { |
__ test(index, Immediate(kSmiTagMask)); |
- __ Check(zero, "Non-smi index"); |
+ __ Check(zero, kNonSmiIndex); |
__ test(value, Immediate(kSmiTagMask)); |
- __ Check(zero, "Non-smi value"); |
+ __ Check(zero, kNonSmiValue); |
__ cmp(index, FieldOperand(string, String::kLengthOffset)); |
- __ Check(less, "Index is too large"); |
+ __ Check(less, kIndexIsTooLarge); |
__ cmp(index, Immediate(Smi::FromInt(0))); |
- __ Check(greater_equal, "Index is negative"); |
+ __ Check(greater_equal, kIndexIsNegative); |
__ push(value); |
__ mov(value, FieldOperand(string, HeapObject::kMapOffset)); |
@@ -3446,7 +3446,7 @@ void FullCodeGenerator::EmitSeqStringSetCharCheck(Register string, |
__ and_(value, Immediate(kStringRepresentationMask | kStringEncodingMask)); |
__ cmp(value, Immediate(encoding_mask)); |
- __ Check(equal, "Unexpected string type"); |
+ __ Check(equal, kUnexpectedStringType); |
__ pop(value); |
} |
@@ -3818,7 +3818,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); |
__ mov(eax, isolate()->factory()->undefined_value()); |
context()->Plug(eax); |
return; |
@@ -4000,7 +4000,7 @@ void FullCodeGenerator::EmitFastAsciiArrayJoin(CallRuntime* expr) { |
// scratch, string_length, elements. |
if (generate_debug_code_) { |
__ cmp(index, array_length); |
- __ Assert(less, "No empty arrays here in EmitFastAsciiArrayJoin"); |
+ __ Assert(less, kNoEmptyArraysHereInEmitFastAsciiArrayJoin); |
} |
__ bind(&loop); |
__ mov(string, FieldOperand(elements, |