| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 2467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2478 { | 2478 { |
| 2479 // Convert receiver using ToObject. | 2479 // Convert receiver using ToObject. |
| 2480 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2480 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
| 2481 // in the fast case? (fall back to AllocateInNewSpace?) | 2481 // in the fast case? (fall back to AllocateInNewSpace?) |
| 2482 FrameScope scope(masm, StackFrame::INTERNAL); | 2482 FrameScope scope(masm, StackFrame::INTERNAL); |
| 2483 __ SmiTag(eax); | 2483 __ SmiTag(eax); |
| 2484 __ Push(eax); | 2484 __ Push(eax); |
| 2485 __ Push(edi); | 2485 __ Push(edi); |
| 2486 __ mov(eax, ecx); | 2486 __ mov(eax, ecx); |
| 2487 __ Push(esi); | 2487 __ Push(esi); |
| 2488 ToObjectStub stub(masm->isolate()); | 2488 __ Call(masm->isolate()->builtins()->ToObject(), |
| 2489 __ CallStub(&stub); | 2489 RelocInfo::CODE_TARGET); |
| 2490 __ Pop(esi); | 2490 __ Pop(esi); |
| 2491 __ mov(ecx, eax); | 2491 __ mov(ecx, eax); |
| 2492 __ Pop(edi); | 2492 __ Pop(edi); |
| 2493 __ Pop(eax); | 2493 __ Pop(eax); |
| 2494 __ SmiUntag(eax); | 2494 __ SmiUntag(eax); |
| 2495 } | 2495 } |
| 2496 __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); | 2496 __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); |
| 2497 __ bind(&convert_receiver); | 2497 __ bind(&convert_receiver); |
| 2498 } | 2498 } |
| 2499 __ mov(Operand(esp, eax, times_pointer_size, kPointerSize), ecx); | 2499 __ mov(Operand(esp, eax, times_pointer_size, kPointerSize), ecx); |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3142 | 3142 |
| 3143 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3143 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
| 3144 Generate_OnStackReplacementHelper(masm, true); | 3144 Generate_OnStackReplacementHelper(masm, true); |
| 3145 } | 3145 } |
| 3146 | 3146 |
| 3147 #undef __ | 3147 #undef __ |
| 3148 } // namespace internal | 3148 } // namespace internal |
| 3149 } // namespace v8 | 3149 } // namespace v8 |
| 3150 | 3150 |
| 3151 #endif // V8_TARGET_ARCH_IA32 | 3151 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |