Index: src/x87/builtins-x87.cc |
diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc |
index 9a1965e76b08050745a00a88bc881a3f70856a0e..a8aa7e11812784ff78c442b4176843edb789a2cf 100644 |
--- a/src/x87/builtins-x87.cc |
+++ b/src/x87/builtins-x87.cc |
@@ -522,7 +522,7 @@ static void Generate_CheckStackOverflow(MacroAssembler* masm, |
__ SmiTag(eax); |
} |
__ push(eax); |
- __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); |
+ __ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION); |
__ bind(&okay); |
} |
@@ -660,7 +660,7 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) { |
ExternalReference::address_of_real_stack_limit(masm->isolate()); |
__ cmp(ecx, Operand::StaticVariable(stack_limit)); |
__ j(above_equal, &ok); |
- __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); |
+ __ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION); |
__ bind(&ok); |
// If ok, push undefined as the initial value for all register file entries. |
@@ -1081,12 +1081,12 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
__ push(edi); // re-add proxy object as additional argument |
__ push(edx); |
__ inc(eax); |
- __ GetBuiltinEntry(edx, Builtins::CALL_FUNCTION_PROXY); |
+ __ GetBuiltinEntry(edx, Context::CALL_FUNCTION_PROXY_BUILTIN_INDEX); |
__ jmp(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
RelocInfo::CODE_TARGET); |
__ bind(&non_proxy); |
- __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); |
+ __ GetBuiltinEntry(edx, Context::CALL_NON_FUNCTION_BUILTIN_INDEX); |
__ jmp(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
RelocInfo::CODE_TARGET); |
__ bind(&function); |
@@ -1183,9 +1183,10 @@ static void Generate_ApplyHelper(MacroAssembler* masm, bool targetIsArgument) { |
__ push(Operand(ebp, kFunctionOffset)); // push this |
__ push(Operand(ebp, kArgumentsOffset)); // push arguments |
if (targetIsArgument) { |
- __ InvokeBuiltin(Builtins::REFLECT_APPLY_PREPARE, CALL_FUNCTION); |
+ __ InvokeBuiltin(Context::REFLECT_APPLY_PREPARE_BUILTIN_INDEX, |
+ CALL_FUNCTION); |
} else { |
- __ InvokeBuiltin(Builtins::APPLY_PREPARE, CALL_FUNCTION); |
+ __ InvokeBuiltin(Context::APPLY_PREPARE_BUILTIN_INDEX, CALL_FUNCTION); |
} |
Generate_CheckStackOverflow(masm, kFunctionOffset, kEaxIsSmiTagged); |
@@ -1272,7 +1273,7 @@ static void Generate_ApplyHelper(MacroAssembler* masm, bool targetIsArgument) { |
__ push(edi); // add function proxy as last argument |
__ inc(eax); |
__ Move(ebx, Immediate(0)); |
- __ GetBuiltinEntry(edx, Builtins::CALL_FUNCTION_PROXY); |
+ __ GetBuiltinEntry(edx, Context::CALL_FUNCTION_PROXY_BUILTIN_INDEX); |
__ call(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
RelocInfo::CODE_TARGET); |
@@ -1317,7 +1318,8 @@ static void Generate_ConstructHelper(MacroAssembler* masm) { |
__ push(Operand(ebp, kFunctionOffset)); |
__ push(Operand(ebp, kArgumentsOffset)); |
__ push(Operand(ebp, kNewTargetOffset)); |
- __ InvokeBuiltin(Builtins::REFLECT_CONSTRUCT_PREPARE, CALL_FUNCTION); |
+ __ InvokeBuiltin(Context::REFLECT_CONSTRUCT_PREPARE_BUILTIN_INDEX, |
+ CALL_FUNCTION); |
Generate_CheckStackOverflow(masm, kFunctionOffset, kEaxIsSmiTagged); |
@@ -1521,7 +1523,7 @@ void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { |
FrameScope scope(masm, StackFrame::INTERNAL); |
__ push(edi); // Preserve the function. |
__ push(eax); |
- __ InvokeBuiltin(Builtins::TO_STRING, CALL_FUNCTION); |
+ __ InvokeBuiltin(Context::TO_STRING_BUILTIN_INDEX, CALL_FUNCTION); |
__ pop(edi); |
} |
__ mov(ebx, eax); |
@@ -1723,7 +1725,7 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
{ |
FrameScope frame(masm, StackFrame::MANUAL); |
EnterArgumentsAdaptorFrame(masm); |
- __ InvokeBuiltin(Builtins::STACK_OVERFLOW, CALL_FUNCTION); |
+ __ InvokeBuiltin(Context::STACK_OVERFLOW_BUILTIN_INDEX, CALL_FUNCTION); |
__ int3(); |
} |
} |