| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2345 __ bind(&convert_to_object); | 2345 __ bind(&convert_to_object); |
| 2346 { | 2346 { |
| 2347 // Convert receiver using ToObject. | 2347 // Convert receiver using ToObject. |
| 2348 // TODO(bmeurer): Inline the allocation here to avoid building the frame | 2348 // TODO(bmeurer): Inline the allocation here to avoid building the frame |
| 2349 // in the fast case? (fall back to AllocateInNewSpace?) | 2349 // in the fast case? (fall back to AllocateInNewSpace?) |
| 2350 FrameScope scope(masm, StackFrame::INTERNAL); | 2350 FrameScope scope(masm, StackFrame::INTERNAL); |
| 2351 __ SmiTag(eax); | 2351 __ SmiTag(eax); |
| 2352 __ Push(eax); | 2352 __ Push(eax); |
| 2353 __ Push(edi); | 2353 __ Push(edi); |
| 2354 __ mov(eax, ecx); | 2354 __ mov(eax, ecx); |
| 2355 __ Push(esi); |
| 2355 ToObjectStub stub(masm->isolate()); | 2356 ToObjectStub stub(masm->isolate()); |
| 2356 __ CallStub(&stub); | 2357 __ CallStub(&stub); |
| 2358 __ Pop(esi); |
| 2357 __ mov(ecx, eax); | 2359 __ mov(ecx, eax); |
| 2358 __ Pop(edi); | 2360 __ Pop(edi); |
| 2359 __ Pop(eax); | 2361 __ Pop(eax); |
| 2360 __ SmiUntag(eax); | 2362 __ SmiUntag(eax); |
| 2361 } | 2363 } |
| 2362 __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); | 2364 __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); |
| 2363 __ bind(&convert_receiver); | 2365 __ bind(&convert_receiver); |
| 2364 } | 2366 } |
| 2365 __ mov(Operand(esp, eax, times_pointer_size, kPointerSize), ecx); | 2367 __ mov(Operand(esp, eax, times_pointer_size, kPointerSize), ecx); |
| 2366 } | 2368 } |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3049 | 3051 |
| 3050 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3052 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
| 3051 Generate_OnStackReplacementHelper(masm, true); | 3053 Generate_OnStackReplacementHelper(masm, true); |
| 3052 } | 3054 } |
| 3053 | 3055 |
| 3054 #undef __ | 3056 #undef __ |
| 3055 } // namespace internal | 3057 } // namespace internal |
| 3056 } // namespace v8 | 3058 } // namespace v8 |
| 3057 | 3059 |
| 3058 #endif // V8_TARGET_ARCH_X87 | 3060 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |