OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1957 __ Jump(adaptor, RelocInfo::CODE_TARGET); | 1957 __ Jump(adaptor, RelocInfo::CODE_TARGET); |
1958 } | 1958 } |
1959 | 1959 |
1960 | 1960 |
1961 static void EmitWrapCase(MacroAssembler* masm, | 1961 static void EmitWrapCase(MacroAssembler* masm, |
1962 StackArgumentsAccessor* args, | 1962 StackArgumentsAccessor* args, |
1963 Label* cont) { | 1963 Label* cont) { |
1964 // Wrap the receiver and patch it back onto the stack. | 1964 // Wrap the receiver and patch it back onto the stack. |
1965 { FrameScope frame_scope(masm, StackFrame::INTERNAL); | 1965 { FrameScope frame_scope(masm, StackFrame::INTERNAL); |
1966 __ Push(rdi); | 1966 __ Push(rdi); |
1967 __ Push(rax); | 1967 ToObjectStub stub(masm->isolate()); |
1968 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); | 1968 __ CallStub(&stub); |
1969 __ Pop(rdi); | 1969 __ Pop(rdi); |
1970 } | 1970 } |
1971 __ movp(args->GetReceiverOperand(), rax); | 1971 __ movp(args->GetReceiverOperand(), rax); |
1972 __ jmp(cont); | 1972 __ jmp(cont); |
1973 } | 1973 } |
1974 | 1974 |
1975 | 1975 |
1976 static void CallFunctionNoFeedback(MacroAssembler* masm, | 1976 static void CallFunctionNoFeedback(MacroAssembler* masm, |
1977 int argc, bool needs_checks, | 1977 int argc, bool needs_checks, |
1978 bool call_as_method) { | 1978 bool call_as_method) { |
(...skipping 3604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5583 kStackSpace, nullptr, return_value_operand, NULL); | 5583 kStackSpace, nullptr, return_value_operand, NULL); |
5584 } | 5584 } |
5585 | 5585 |
5586 | 5586 |
5587 #undef __ | 5587 #undef __ |
5588 | 5588 |
5589 } // namespace internal | 5589 } // namespace internal |
5590 } // namespace v8 | 5590 } // namespace v8 |
5591 | 5591 |
5592 #endif // V8_TARGET_ARCH_X64 | 5592 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |