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

Side by Side Diff: src/builtins/mips64/builtins-mips64.cc

Issue 2227763003: [turbofan] Rewrite ToObject as TurboFan stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revert "Delete hydrogen toObject" Created 4 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/builtins/mips/builtins-mips.cc ('k') | src/builtins/ppc/builtins-ppc.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 2391 matching lines...) Expand 10 before | Expand all | Expand 10 after
2402 } 2402 }
2403 __ bind(&convert_to_object); 2403 __ bind(&convert_to_object);
2404 { 2404 {
2405 // Convert receiver using ToObject. 2405 // Convert receiver using ToObject.
2406 // TODO(bmeurer): Inline the allocation here to avoid building the frame 2406 // TODO(bmeurer): Inline the allocation here to avoid building the frame
2407 // in the fast case? (fall back to AllocateInNewSpace?) 2407 // in the fast case? (fall back to AllocateInNewSpace?)
2408 FrameScope scope(masm, StackFrame::INTERNAL); 2408 FrameScope scope(masm, StackFrame::INTERNAL);
2409 __ SmiTag(a0); 2409 __ SmiTag(a0);
2410 __ Push(a0, a1); 2410 __ Push(a0, a1);
2411 __ mov(a0, a3); 2411 __ mov(a0, a3);
2412 __ Push(cp);
2412 ToObjectStub stub(masm->isolate()); 2413 ToObjectStub stub(masm->isolate());
2413 __ CallStub(&stub); 2414 __ CallStub(&stub);
2415 __ Pop(cp);
2414 __ mov(a3, v0); 2416 __ mov(a3, v0);
2415 __ Pop(a0, a1); 2417 __ Pop(a0, a1);
2416 __ SmiUntag(a0); 2418 __ SmiUntag(a0);
2417 } 2419 }
2418 __ ld(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 2420 __ ld(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
2419 __ bind(&convert_receiver); 2421 __ bind(&convert_receiver);
2420 } 2422 }
2421 __ Dlsa(at, sp, a0, kPointerSizeLog2); 2423 __ Dlsa(at, sp, a0, kPointerSizeLog2);
2422 __ sd(a3, MemOperand(at)); 2424 __ sd(a3, MemOperand(at));
2423 } 2425 }
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
2997 __ break_(0xCC); 2999 __ break_(0xCC);
2998 } 3000 }
2999 } 3001 }
3000 3002
3001 #undef __ 3003 #undef __
3002 3004
3003 } // namespace internal 3005 } // namespace internal
3004 } // namespace v8 3006 } // namespace v8
3005 3007
3006 #endif // V8_TARGET_ARCH_MIPS64 3008 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/builtins/mips/builtins-mips.cc ('k') | src/builtins/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698