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

Side by Side Diff: src/arm64/code-stubs-arm64.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/arm64/builtins-arm64.cc ('k') | src/arm64/interface-descriptors-arm64.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_ARM64 7 #if V8_TARGET_ARCH_ARM64
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 2903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2914 __ Mov(x2, 0); 2914 __ Mov(x2, 0);
2915 __ GetBuiltinFunction(function, Builtins::CALL_NON_FUNCTION); 2915 __ GetBuiltinFunction(function, Builtins::CALL_NON_FUNCTION);
2916 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), 2916 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(),
2917 RelocInfo::CODE_TARGET); 2917 RelocInfo::CODE_TARGET);
2918 } 2918 }
2919 2919
2920 2920
2921 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { 2921 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) {
2922 // Wrap the receiver and patch it back onto the stack. 2922 // Wrap the receiver and patch it back onto the stack.
2923 { FrameScope frame_scope(masm, StackFrame::INTERNAL); 2923 { FrameScope frame_scope(masm, StackFrame::INTERNAL);
2924 __ Push(x1, x3); 2924 __ Push(x1);
2925 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); 2925 __ Mov(x0, x3);
2926 ToObjectStub stub(masm->isolate());
2927 __ CallStub(&stub);
2926 __ Pop(x1); 2928 __ Pop(x1);
2927 } 2929 }
2928 __ Poke(x0, argc * kPointerSize); 2930 __ Poke(x0, argc * kPointerSize);
2929 __ B(cont); 2931 __ B(cont);
2930 } 2932 }
2931 2933
2932 2934
2933 static void CallFunctionNoFeedback(MacroAssembler* masm, 2935 static void CallFunctionNoFeedback(MacroAssembler* masm,
2934 int argc, bool needs_checks, 2936 int argc, bool needs_checks,
2935 bool call_as_method) { 2937 bool call_as_method) {
(...skipping 3051 matching lines...) Expand 10 before | Expand all | Expand 10 after
5987 MemOperand(fp, 6 * kPointerSize), NULL); 5989 MemOperand(fp, 6 * kPointerSize), NULL);
5988 } 5990 }
5989 5991
5990 5992
5991 #undef __ 5993 #undef __
5992 5994
5993 } // namespace internal 5995 } // namespace internal
5994 } // namespace v8 5996 } // namespace v8
5995 5997
5996 #endif // V8_TARGET_ARCH_ARM64 5998 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/builtins-arm64.cc ('k') | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698