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

Side by Side Diff: src/builtins/arm64/builtins-arm64.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/arm/builtins-arm.cc ('k') | src/builtins/ia32/builtins-ia32.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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2472 } 2472 }
2473 __ Bind(&convert_to_object); 2473 __ Bind(&convert_to_object);
2474 { 2474 {
2475 // Convert receiver using ToObject. 2475 // Convert receiver using ToObject.
2476 // TODO(bmeurer): Inline the allocation here to avoid building the frame 2476 // TODO(bmeurer): Inline the allocation here to avoid building the frame
2477 // in the fast case? (fall back to AllocateInNewSpace?) 2477 // in the fast case? (fall back to AllocateInNewSpace?)
2478 FrameScope scope(masm, StackFrame::INTERNAL); 2478 FrameScope scope(masm, StackFrame::INTERNAL);
2479 __ SmiTag(x0); 2479 __ SmiTag(x0);
2480 __ Push(x0, x1); 2480 __ Push(x0, x1);
2481 __ Mov(x0, x3); 2481 __ Mov(x0, x3);
2482 __ Push(cp);
2482 ToObjectStub stub(masm->isolate()); 2483 ToObjectStub stub(masm->isolate());
2483 __ CallStub(&stub); 2484 __ CallStub(&stub);
2485 __ Pop(cp);
2484 __ Mov(x3, x0); 2486 __ Mov(x3, x0);
2485 __ Pop(x1, x0); 2487 __ Pop(x1, x0);
2486 __ SmiUntag(x0); 2488 __ SmiUntag(x0);
2487 } 2489 }
2488 __ Ldr(x2, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset)); 2490 __ Ldr(x2, FieldMemOperand(x1, JSFunction::kSharedFunctionInfoOffset));
2489 __ Bind(&convert_receiver); 2491 __ Bind(&convert_receiver);
2490 } 2492 }
2491 __ Poke(x3, Operand(x0, LSL, kXRegSizeLog2)); 2493 __ Poke(x3, Operand(x0, LSL, kXRegSizeLog2));
2492 } 2494 }
2493 __ Bind(&done_convert); 2495 __ Bind(&done_convert);
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
3033 __ Unreachable(); 3035 __ Unreachable();
3034 } 3036 }
3035 } 3037 }
3036 3038
3037 #undef __ 3039 #undef __
3038 3040
3039 } // namespace internal 3041 } // namespace internal
3040 } // namespace v8 3042 } // namespace v8
3041 3043
3042 #endif // V8_TARGET_ARCH_ARM 3044 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/builtins/arm/builtins-arm.cc ('k') | src/builtins/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698