| 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 2310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2321 __ bind(&convert_to_object); | 2321 __ bind(&convert_to_object); |
| 2322 { | 2322 { |
| 2323 // Convert receiver using ToObject. | 2323 // Convert receiver using ToObject. |
| 2324 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2324 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
| 2325 // in the fast case? (fall back to AllocateInNewSpace?) | 2325 // in the fast case? (fall back to AllocateInNewSpace?) |
| 2326 FrameScope scope(masm, StackFrame::INTERNAL); | 2326 FrameScope scope(masm, StackFrame::INTERNAL); |
| 2327 __ SmiTag(eax); | 2327 __ SmiTag(eax); |
| 2328 __ Push(eax); | 2328 __ Push(eax); |
| 2329 __ Push(edi); | 2329 __ Push(edi); |
| 2330 __ mov(eax, ecx); | 2330 __ mov(eax, ecx); |
| 2331 __ Push(esi); |
| 2331 ToObjectStub stub(masm->isolate()); | 2332 ToObjectStub stub(masm->isolate()); |
| 2332 __ CallStub(&stub); | 2333 __ CallStub(&stub); |
| 2334 __ Pop(esi); |
| 2333 __ mov(ecx, eax); | 2335 __ mov(ecx, eax); |
| 2334 __ Pop(edi); | 2336 __ Pop(edi); |
| 2335 __ Pop(eax); | 2337 __ Pop(eax); |
| 2336 __ SmiUntag(eax); | 2338 __ SmiUntag(eax); |
| 2337 } | 2339 } |
| 2338 __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); | 2340 __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); |
| 2339 __ bind(&convert_receiver); | 2341 __ bind(&convert_receiver); |
| 2340 } | 2342 } |
| 2341 __ mov(Operand(esp, eax, times_pointer_size, kPointerSize), ecx); | 2343 __ mov(Operand(esp, eax, times_pointer_size, kPointerSize), ecx); |
| 2342 } | 2344 } |
| (...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3024 | 3026 |
| 3025 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3027 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
| 3026 Generate_OnStackReplacementHelper(masm, true); | 3028 Generate_OnStackReplacementHelper(masm, true); |
| 3027 } | 3029 } |
| 3028 | 3030 |
| 3029 #undef __ | 3031 #undef __ |
| 3030 } // namespace internal | 3032 } // namespace internal |
| 3031 } // namespace v8 | 3033 } // namespace v8 |
| 3032 | 3034 |
| 3033 #endif // V8_TARGET_ARCH_IA32 | 3035 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |