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

Side by Side Diff: src/builtins/ppc/builtins-ppc.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 | « src/builtins/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after
2500 __ bind(&convert_to_object); 2500 __ bind(&convert_to_object);
2501 { 2501 {
2502 // Convert receiver using ToObject. 2502 // Convert receiver using ToObject.
2503 // TODO(bmeurer): Inline the allocation here to avoid building the frame 2503 // TODO(bmeurer): Inline the allocation here to avoid building the frame
2504 // in the fast case? (fall back to AllocateInNewSpace?) 2504 // in the fast case? (fall back to AllocateInNewSpace?)
2505 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 2505 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
2506 __ SmiTag(r3); 2506 __ SmiTag(r3);
2507 __ Push(r3, r4); 2507 __ Push(r3, r4);
2508 __ mr(r3, r6); 2508 __ mr(r3, r6);
2509 __ Push(cp); 2509 __ Push(cp);
2510 ToObjectStub stub(masm->isolate()); 2510 __ Call(masm->isolate()->builtins()->ToObject(),
2511 __ CallStub(&stub); 2511 RelocInfo::CODE_TARGET);
2512 __ Pop(cp); 2512 __ Pop(cp);
2513 __ mr(r6, r3); 2513 __ mr(r6, r3);
2514 __ Pop(r3, r4); 2514 __ Pop(r3, r4);
2515 __ SmiUntag(r3); 2515 __ SmiUntag(r3);
2516 } 2516 }
2517 __ LoadP(r5, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); 2517 __ LoadP(r5, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset));
2518 __ bind(&convert_receiver); 2518 __ bind(&convert_receiver);
2519 } 2519 }
2520 __ ShiftLeftImm(r7, r3, Operand(kPointerSizeLog2)); 2520 __ ShiftLeftImm(r7, r3, Operand(kPointerSizeLog2));
2521 __ StorePX(r6, MemOperand(sp, r7)); 2521 __ StorePX(r6, MemOperand(sp, r7));
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
3012 __ CallRuntime(Runtime::kThrowStackOverflow); 3012 __ CallRuntime(Runtime::kThrowStackOverflow);
3013 __ bkpt(0); 3013 __ bkpt(0);
3014 } 3014 }
3015 } 3015 }
3016 3016
3017 #undef __ 3017 #undef __
3018 } // namespace internal 3018 } // namespace internal
3019 } // namespace v8 3019 } // namespace v8
3020 3020
3021 #endif // V8_TARGET_ARCH_PPC 3021 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/builtins/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698