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

Side by Side Diff: src/mips64/code-stubs-mips64.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/mips64/builtins-mips64.cc ('k') | src/mips64/interface-descriptors-mips64.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 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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 2696 matching lines...) Expand 10 before | Expand all | Expand 10 after
2707 __ mov(a2, zero_reg); 2707 __ mov(a2, zero_reg);
2708 __ GetBuiltinFunction(a1, Builtins::CALL_NON_FUNCTION); 2708 __ GetBuiltinFunction(a1, Builtins::CALL_NON_FUNCTION);
2709 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), 2709 __ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(),
2710 RelocInfo::CODE_TARGET); 2710 RelocInfo::CODE_TARGET);
2711 } 2711 }
2712 2712
2713 2713
2714 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { 2714 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) {
2715 // Wrap the receiver and patch it back onto the stack. 2715 // Wrap the receiver and patch it back onto the stack.
2716 { FrameScope frame_scope(masm, StackFrame::INTERNAL); 2716 { FrameScope frame_scope(masm, StackFrame::INTERNAL);
2717 __ Push(a1, a3); 2717 __ Push(a1);
2718 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); 2718 __ mov(a0, a3);
2719 ToObjectStub stub(masm->isolate());
2720 __ CallStub(&stub);
2719 __ pop(a1); 2721 __ pop(a1);
2720 } 2722 }
2721 __ Branch(USE_DELAY_SLOT, cont); 2723 __ Branch(USE_DELAY_SLOT, cont);
2722 __ sd(v0, MemOperand(sp, argc * kPointerSize)); 2724 __ sd(v0, MemOperand(sp, argc * kPointerSize));
2723 } 2725 }
2724 2726
2725 2727
2726 static void CallFunctionNoFeedback(MacroAssembler* masm, 2728 static void CallFunctionNoFeedback(MacroAssembler* masm,
2727 int argc, bool needs_checks, 2729 int argc, bool needs_checks,
2728 bool call_as_method) { 2730 bool call_as_method) {
(...skipping 3021 matching lines...) Expand 10 before | Expand all | Expand 10 after
5750 MemOperand(fp, 6 * kPointerSize), NULL); 5752 MemOperand(fp, 6 * kPointerSize), NULL);
5751 } 5753 }
5752 5754
5753 5755
5754 #undef __ 5756 #undef __
5755 5757
5756 } // namespace internal 5758 } // namespace internal
5757 } // namespace v8 5759 } // namespace v8
5758 5760
5759 #endif // V8_TARGET_ARCH_MIPS64 5761 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/mips64/interface-descriptors-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698