Index: src/x87/builtins-x87.cc |
diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc |
index bc396412df4e2b327f530f996b9ec58fc83f3f75..a795a18c4475c6672fc6ab3d02c562ae17d3a1e2 100644 |
--- a/src/x87/builtins-x87.cc |
+++ b/src/x87/builtins-x87.cc |
@@ -765,7 +765,7 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
// 3a. Patch the first argument if necessary when calling a function. |
Label shift_arguments; |
__ Move(edx, Immediate(0)); // indicate regular JS_FUNCTION |
- { Label convert_to_object, use_global_receiver, patch_receiver; |
+ { Label convert_to_object, use_global_proxy, patch_receiver; |
// Change context eagerly in case we need the global receiver. |
__ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); |
@@ -787,9 +787,9 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
// global object if it is null or undefined. |
__ JumpIfSmi(ebx, &convert_to_object); |
__ cmp(ebx, factory->null_value()); |
- __ j(equal, &use_global_receiver); |
+ __ j(equal, &use_global_proxy); |
__ cmp(ebx, factory->undefined_value()); |
- __ j(equal, &use_global_receiver); |
+ __ j(equal, &use_global_proxy); |
STATIC_ASSERT(LAST_SPEC_OBJECT_TYPE == LAST_TYPE); |
__ CmpObjectType(ebx, FIRST_SPEC_OBJECT_TYPE, ecx); |
__ j(above_equal, &shift_arguments); |
@@ -814,10 +814,10 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
__ mov(edi, Operand(esp, eax, times_4, 1 * kPointerSize)); |
__ jmp(&patch_receiver); |
- __ bind(&use_global_receiver); |
+ __ bind(&use_global_proxy); |
__ mov(ebx, |
Operand(esi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
- __ mov(ebx, FieldOperand(ebx, GlobalObject::kGlobalReceiverOffset)); |
+ __ mov(ebx, FieldOperand(ebx, GlobalObject::kGlobalProxyOffset)); |
__ bind(&patch_receiver); |
__ mov(Operand(esp, eax, times_4, 0), ebx); |
@@ -943,7 +943,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
__ mov(ebx, Operand(ebp, kReceiverOffset)); |
// Check that the function is a JS function (otherwise it must be a proxy). |
- Label push_receiver, use_global_receiver; |
+ Label push_receiver, use_global_proxy; |
__ mov(edi, Operand(ebp, kFunctionOffset)); |
__ CmpObjectType(edi, JS_FUNCTION_TYPE, ecx); |
__ j(not_equal, &push_receiver); |
@@ -971,9 +971,9 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
// global object if it is null or undefined. |
__ JumpIfSmi(ebx, &call_to_object); |
__ cmp(ebx, factory->null_value()); |
- __ j(equal, &use_global_receiver); |
+ __ j(equal, &use_global_proxy); |
__ cmp(ebx, factory->undefined_value()); |
- __ j(equal, &use_global_receiver); |
+ __ j(equal, &use_global_proxy); |
STATIC_ASSERT(LAST_SPEC_OBJECT_TYPE == LAST_TYPE); |
__ CmpObjectType(ebx, FIRST_SPEC_OBJECT_TYPE, ecx); |
__ j(above_equal, &push_receiver); |
@@ -984,10 +984,10 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
__ mov(ebx, eax); |
__ jmp(&push_receiver); |
- __ bind(&use_global_receiver); |
+ __ bind(&use_global_proxy); |
__ mov(ebx, |
Operand(esi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
- __ mov(ebx, FieldOperand(ebx, GlobalObject::kGlobalReceiverOffset)); |
+ __ mov(ebx, FieldOperand(ebx, GlobalObject::kGlobalProxyOffset)); |
// Push the receiver. |
__ bind(&push_receiver); |