| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2086 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); | 2086 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); |
| 2087 Handle<Code> adaptor = isolate->builtins()->ArgumentsAdaptorTrampoline(); | 2087 Handle<Code> adaptor = isolate->builtins()->ArgumentsAdaptorTrampoline(); |
| 2088 __ jmp(adaptor, RelocInfo::CODE_TARGET); | 2088 __ jmp(adaptor, RelocInfo::CODE_TARGET); |
| 2089 } | 2089 } |
| 2090 | 2090 |
| 2091 | 2091 |
| 2092 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { | 2092 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { |
| 2093 // Wrap the receiver and patch it back onto the stack. | 2093 // Wrap the receiver and patch it back onto the stack. |
| 2094 { FrameScope frame_scope(masm, StackFrame::INTERNAL); | 2094 { FrameScope frame_scope(masm, StackFrame::INTERNAL); |
| 2095 __ push(edi); | 2095 __ push(edi); |
| 2096 __ push(eax); | 2096 ToObjectStub stub(masm->isolate()); |
| 2097 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); | 2097 __ CallStub(&stub); |
| 2098 __ pop(edi); | 2098 __ pop(edi); |
| 2099 } | 2099 } |
| 2100 __ mov(Operand(esp, (argc + 1) * kPointerSize), eax); | 2100 __ mov(Operand(esp, (argc + 1) * kPointerSize), eax); |
| 2101 __ jmp(cont); | 2101 __ jmp(cont); |
| 2102 } | 2102 } |
| 2103 | 2103 |
| 2104 | 2104 |
| 2105 static void CallFunctionNoFeedback(MacroAssembler* masm, | 2105 static void CallFunctionNoFeedback(MacroAssembler* masm, |
| 2106 int argc, bool needs_checks, | 2106 int argc, bool needs_checks, |
| 2107 bool call_as_method) { | 2107 bool call_as_method) { |
| (...skipping 3546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5654 Operand(ebp, 7 * kPointerSize), NULL); | 5654 Operand(ebp, 7 * kPointerSize), NULL); |
| 5655 } | 5655 } |
| 5656 | 5656 |
| 5657 | 5657 |
| 5658 #undef __ | 5658 #undef __ |
| 5659 | 5659 |
| 5660 } // namespace internal | 5660 } // namespace internal |
| 5661 } // namespace v8 | 5661 } // namespace v8 |
| 5662 | 5662 |
| 5663 #endif // V8_TARGET_ARCH_IA32 | 5663 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |