Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: src/x64/code-stubs-x64.cc

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/builtins-x64.cc ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698