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

Side by Side Diff: src/ppc/code-stubs-ppc.cc

Issue 1820843002: Turn LoadIndexedInterceptor into a Turbofan stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase again Created 4 years, 9 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/mips64/code-stubs-mips64.cc ('k') | src/x64/code-stubs-x64.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/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 1540
1541 StubRuntimeCallHelper call_helper; 1541 StubRuntimeCallHelper call_helper;
1542 char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper); 1542 char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper);
1543 1543
1544 __ bind(&miss); 1544 __ bind(&miss);
1545 PropertyAccessCompiler::TailCallBuiltin( 1545 PropertyAccessCompiler::TailCallBuiltin(
1546 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); 1546 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC));
1547 } 1547 }
1548 1548
1549 1549
1550 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) {
1551 // Return address is in lr.
1552 Label slow;
1553
1554 Register receiver = LoadDescriptor::ReceiverRegister();
1555 Register key = LoadDescriptor::NameRegister();
1556
1557 // Check that the key is an array index, that is Uint32.
1558 __ TestIfPositiveSmi(key, r0);
1559 __ bne(&slow, cr0);
1560
1561 // Everything is fine, call runtime.
1562 __ Push(receiver, key); // Receiver, key.
1563
1564 // Perform tail call to the entry.
1565 __ TailCallRuntime(Runtime::kLoadElementWithInterceptor);
1566
1567 __ bind(&slow);
1568 PropertyAccessCompiler::TailCallBuiltin(
1569 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC));
1570 }
1571
1572
1573 void RegExpExecStub::Generate(MacroAssembler* masm) { 1550 void RegExpExecStub::Generate(MacroAssembler* masm) {
1574 // Just jump directly to runtime if native RegExp is not selected at compile 1551 // Just jump directly to runtime if native RegExp is not selected at compile
1575 // time or if regexp entry in generated code is turned off runtime switch or 1552 // time or if regexp entry in generated code is turned off runtime switch or
1576 // at compilation. 1553 // at compilation.
1577 #ifdef V8_INTERPRETED_REGEXP 1554 #ifdef V8_INTERPRETED_REGEXP
1578 __ TailCallRuntime(Runtime::kRegExpExec); 1555 __ TailCallRuntime(Runtime::kRegExpExec);
1579 #else // V8_INTERPRETED_REGEXP 1556 #else // V8_INTERPRETED_REGEXP
1580 1557
1581 // Stack frame on entry. 1558 // Stack frame on entry.
1582 // sp[0]: last_match_info (expected JSArray) 1559 // sp[0]: last_match_info (expected JSArray)
(...skipping 4229 matching lines...) Expand 10 before | Expand all | Expand 10 after
5812 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5789 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5813 kStackUnwindSpace, NULL, return_value_operand, NULL); 5790 kStackUnwindSpace, NULL, return_value_operand, NULL);
5814 } 5791 }
5815 5792
5816 5793
5817 #undef __ 5794 #undef __
5818 } // namespace internal 5795 } // namespace internal
5819 } // namespace v8 5796 } // namespace v8
5820 5797
5821 #endif // V8_TARGET_ARCH_PPC 5798 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698