Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index ba98b9631536d0f6dd674c84d3390b343cdc79eb..288e18f32795c698ace766e6dfda05e89dea29d5 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -520,9 +520,8 @@ void FastNewBlockContextStub::Generate(MacroAssembler* masm) { |
Label after_sentinel; |
__ JumpIfNotSmi(r3, &after_sentinel); |
if (FLAG_debug_code) { |
- const char* message = "Expected 0 as a Smi sentinel"; |
__ cmp(r3, Operand::Zero()); |
- __ Assert(eq, message); |
+ __ Assert(eq, kExpected0AsASmiSentinel); |
} |
__ ldr(r3, GlobalObjectOperand()); |
__ ldr(r3, FieldMemOperand(r3, GlobalObject::kNativeContextOffset)); |
@@ -3917,9 +3916,9 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
__ ldr(regexp_data, FieldMemOperand(r0, JSRegExp::kDataOffset)); |
if (FLAG_debug_code) { |
__ SmiTst(regexp_data); |
- __ Check(ne, "Unexpected type for RegExp data, FixedArray expected"); |
+ __ Check(ne, kUnexpectedTypeForRegExpDataFixedArrayExpected); |
__ CompareObjectType(regexp_data, r0, r0, FIXED_ARRAY_TYPE); |
- __ Check(eq, "Unexpected type for RegExp data, FixedArray expected"); |
+ __ Check(eq, kUnexpectedTypeForRegExpDataFixedArrayExpected); |
} |
// regexp_data: RegExp data (FixedArray) |
@@ -4261,7 +4260,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { |
// Assert that we do not have a cons or slice (indirect strings) here. |
// Sequential strings have already been ruled out. |
__ tst(r0, Operand(kIsIndirectStringMask)); |
- __ Assert(eq, "external string expected, but not found"); |
+ __ Assert(eq, kExternalStringExpectedButNotFound); |
} |
__ ldr(subject, |
FieldMemOperand(subject, ExternalString::kResourceDataOffset)); |
@@ -4643,7 +4642,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { |
void StringCharCodeAtGenerator::GenerateSlow( |
MacroAssembler* masm, |
const RuntimeCallHelper& call_helper) { |
- __ Abort("Unexpected fallthrough to CharCodeAt slow case"); |
+ __ Abort(kUnexpectedFallthroughToCharCodeAtSlowCase); |
// Index is not a smi. |
__ bind(&index_not_smi_); |
@@ -4688,7 +4687,7 @@ void StringCharCodeAtGenerator::GenerateSlow( |
call_helper.AfterCall(masm); |
__ jmp(&exit_); |
- __ Abort("Unexpected fallthrough from CharCodeAt slow case"); |
+ __ Abort(kUnexpectedFallthroughFromCharCodeAtSlowCase); |
} |
@@ -4718,7 +4717,7 @@ void StringCharFromCodeGenerator::GenerateFast(MacroAssembler* masm) { |
void StringCharFromCodeGenerator::GenerateSlow( |
MacroAssembler* masm, |
const RuntimeCallHelper& call_helper) { |
- __ Abort("Unexpected fallthrough to CharFromCode slow case"); |
+ __ Abort(kUnexpectedFallthroughToCharFromCodeSlowCase); |
__ bind(&slow_case_); |
call_helper.BeforeCall(masm); |
@@ -4728,7 +4727,7 @@ void StringCharFromCodeGenerator::GenerateSlow( |
call_helper.AfterCall(masm); |
__ jmp(&exit_); |
- __ Abort("Unexpected fallthrough from CharFromCode slow case"); |
+ __ Abort(kUnexpectedFallthroughFromCharFromCodeSlowCase); |
} |
@@ -4785,7 +4784,7 @@ void StringHelper::GenerateCopyCharactersLong(MacroAssembler* masm, |
// Check that destination is actually word aligned if the flag says |
// that it is. |
__ tst(dest, Operand(kPointerAlignmentMask)); |
- __ Check(eq, "Destination of copy not aligned."); |
+ __ Check(eq, kDestinationOfCopyNotAligned); |
} |
const int kReadAlignment = 4; |
@@ -5014,7 +5013,7 @@ void StringHelper::GenerateTwoCharacterStringTableProbe(MacroAssembler* masm, |
if (FLAG_debug_code) { |
__ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
__ cmp(ip, candidate); |
- __ Assert(eq, "oddball in string table is not undefined or the hole"); |
+ __ Assert(eq, kOddballInStringTableIsNotUndefinedOrTheHole); |
} |
__ jmp(&next_probe[i]); |
@@ -6912,7 +6911,7 @@ static void CreateArrayDispatch(MacroAssembler* masm) { |
} |
// If we reached this point there is a problem. |
- __ Abort("Unexpected ElementsKind in array constructor"); |
+ __ Abort(kUnexpectedElementsKindInArrayConstructor); |
} |
@@ -6969,7 +6968,7 @@ static void CreateArrayDispatchOneArgument(MacroAssembler* masm) { |
} |
// If we reached this point there is a problem. |
- __ Abort("Unexpected ElementsKind in array constructor"); |
+ __ Abort(kUnexpectedElementsKindInArrayConstructor); |
} |
@@ -7030,9 +7029,9 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ ldr(r3, FieldMemOperand(r1, JSFunction::kPrototypeOrInitialMapOffset)); |
// Will both indicate a NULL and a Smi. |
__ tst(r3, Operand(kSmiTagMask)); |
- __ Assert(ne, "Unexpected initial map for Array function"); |
+ __ Assert(ne, kUnexpectedInitialMapForArrayFunction); |
__ CompareObjectType(r3, r3, r4, MAP_TYPE); |
- __ Assert(eq, "Unexpected initial map for Array function"); |
+ __ Assert(eq, kUnexpectedInitialMapForArrayFunction); |
// We should either have undefined in ebx or a valid cell |
Label okay_here; |
@@ -7041,7 +7040,7 @@ void ArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ b(eq, &okay_here); |
__ ldr(r3, FieldMemOperand(r2, 0)); |
__ cmp(r3, Operand(cell_map)); |
- __ Assert(eq, "Expected property cell in register ebx"); |
+ __ Assert(eq, kExpectedPropertyCellInRegisterEbx); |
__ bind(&okay_here); |
} |
@@ -7144,9 +7143,9 @@ void InternalArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ ldr(r3, FieldMemOperand(r1, JSFunction::kPrototypeOrInitialMapOffset)); |
// Will both indicate a NULL and a Smi. |
__ tst(r3, Operand(kSmiTagMask)); |
- __ Assert(ne, "Unexpected initial map for Array function"); |
+ __ Assert(ne, kUnexpectedInitialMapForArrayFunction); |
__ CompareObjectType(r3, r3, r4, MAP_TYPE); |
- __ Assert(eq, "Unexpected initial map for Array function"); |
+ __ Assert(eq, kUnexpectedInitialMapForArrayFunction); |
} |
// Figure out the right elements kind |
@@ -7163,7 +7162,7 @@ void InternalArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ b(eq, &done); |
__ cmp(r3, Operand(FAST_HOLEY_ELEMENTS)); |
__ Assert(eq, |
- "Invalid ElementsKind for InternalArray or InternalPackedArray"); |
+ kInvalidElementsKindForInternalArrayOrInternalPackedArray); |
__ bind(&done); |
} |