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

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

Issue 2372113004: [turbofan] JSGenericLowering mostly uses builtins instead of code stubs now (Closed)
Patch Set: Ross' comments Created 4 years, 2 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 2425 matching lines...) Expand 10 before | Expand all | Expand 10 after
2436 __ bind(&convert_to_object); 2436 __ bind(&convert_to_object);
2437 { 2437 {
2438 // Convert receiver using ToObject. 2438 // Convert receiver using ToObject.
2439 // TODO(bmeurer): Inline the allocation here to avoid building the frame 2439 // TODO(bmeurer): Inline the allocation here to avoid building the frame
2440 // in the fast case? (fall back to AllocateInNewSpace?) 2440 // in the fast case? (fall back to AllocateInNewSpace?)
2441 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 2441 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
2442 __ SmiTag(r0); 2442 __ SmiTag(r0);
2443 __ Push(r0, r1); 2443 __ Push(r0, r1);
2444 __ mov(r0, r3); 2444 __ mov(r0, r3);
2445 __ Push(cp); 2445 __ Push(cp);
2446 ToObjectStub stub(masm->isolate()); 2446 __ Call(masm->isolate()->builtins()->ToObject(),
2447 __ CallStub(&stub); 2447 RelocInfo::CODE_TARGET);
2448 __ Pop(cp); 2448 __ Pop(cp);
2449 __ mov(r3, r0); 2449 __ mov(r3, r0);
2450 __ Pop(r0, r1); 2450 __ Pop(r0, r1);
2451 __ SmiUntag(r0); 2451 __ SmiUntag(r0);
2452 } 2452 }
2453 __ ldr(r2, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); 2453 __ ldr(r2, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset));
2454 __ bind(&convert_receiver); 2454 __ bind(&convert_receiver);
2455 } 2455 }
2456 __ str(r3, MemOperand(sp, r0, LSL, kPointerSizeLog2)); 2456 __ str(r3, MemOperand(sp, r0, LSL, kPointerSizeLog2));
2457 } 2457 }
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
2923 __ bkpt(0); 2923 __ bkpt(0);
2924 } 2924 }
2925 } 2925 }
2926 2926
2927 #undef __ 2927 #undef __
2928 2928
2929 } // namespace internal 2929 } // namespace internal
2930 } // namespace v8 2930 } // namespace v8
2931 2931
2932 #endif // V8_TARGET_ARCH_ARM 2932 #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