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

Side by Side Diff: src/builtins/arm/builtins-arm.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 | « no previous file | src/builtins/arm64/builtins-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 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after
2393 } 2393 }
2394 __ bind(&convert_to_object); 2394 __ bind(&convert_to_object);
2395 { 2395 {
2396 // Convert receiver using ToObject. 2396 // Convert receiver using ToObject.
2397 // TODO(bmeurer): Inline the allocation here to avoid building the frame 2397 // TODO(bmeurer): Inline the allocation here to avoid building the frame
2398 // in the fast case? (fall back to AllocateInNewSpace?) 2398 // in the fast case? (fall back to AllocateInNewSpace?)
2399 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 2399 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
2400 __ SmiTag(r0); 2400 __ SmiTag(r0);
2401 __ Push(r0, r1); 2401 __ Push(r0, r1);
2402 __ mov(r0, r3); 2402 __ mov(r0, r3);
2403 __ Push(cp);
2403 ToObjectStub stub(masm->isolate()); 2404 ToObjectStub stub(masm->isolate());
2404 __ CallStub(&stub); 2405 __ CallStub(&stub);
2406 __ Pop(cp);
2405 __ mov(r3, r0); 2407 __ mov(r3, r0);
2406 __ Pop(r0, r1); 2408 __ Pop(r0, r1);
2407 __ SmiUntag(r0); 2409 __ SmiUntag(r0);
2408 } 2410 }
2409 __ ldr(r2, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); 2411 __ ldr(r2, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset));
2410 __ bind(&convert_receiver); 2412 __ bind(&convert_receiver);
2411 } 2413 }
2412 __ str(r3, MemOperand(sp, r0, LSL, kPointerSizeLog2)); 2414 __ str(r3, MemOperand(sp, r0, LSL, kPointerSizeLog2));
2413 } 2415 }
2414 __ bind(&done_convert); 2416 __ bind(&done_convert);
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2919 __ bkpt(0); 2921 __ bkpt(0);
2920 } 2922 }
2921 } 2923 }
2922 2924
2923 #undef __ 2925 #undef __
2924 2926
2925 } // namespace internal 2927 } // namespace internal
2926 } // namespace v8 2928 } // namespace v8
2927 2929
2928 #endif // V8_TARGET_ARCH_ARM 2930 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/builtins/arm64/builtins-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698