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

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

Issue 1824133002: S390: Turn LoadIndexedInterceptor into a Turbofan stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | no next file » | 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_S390 5 #if V8_TARGET_ARCH_S390
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 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 __ Ret(); 1530 __ Ret();
1531 1531
1532 StubRuntimeCallHelper call_helper; 1532 StubRuntimeCallHelper call_helper;
1533 char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper); 1533 char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper);
1534 1534
1535 __ bind(&miss); 1535 __ bind(&miss);
1536 PropertyAccessCompiler::TailCallBuiltin( 1536 PropertyAccessCompiler::TailCallBuiltin(
1537 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); 1537 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC));
1538 } 1538 }
1539 1539
1540 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) {
1541 // Return address is in lr.
1542 Label slow;
1543
1544 Register receiver = LoadDescriptor::ReceiverRegister();
1545 Register key = LoadDescriptor::NameRegister();
1546
1547 // Check that the key is an array index, that is Uint32.
1548 __ TestIfPositiveSmi(key, r0);
1549 __ bne(&slow);
1550
1551 // Everything is fine, call runtime.
1552 __ Push(receiver, key); // Receiver, key.
1553
1554 // Perform tail call to the entry.
1555 __ TailCallRuntime(Runtime::kLoadElementWithInterceptor);
1556
1557 __ bind(&slow);
1558 PropertyAccessCompiler::TailCallBuiltin(
1559 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC));
1560 }
1561
1562 void RegExpExecStub::Generate(MacroAssembler* masm) { 1540 void RegExpExecStub::Generate(MacroAssembler* masm) {
1563 // Just jump directly to runtime if native RegExp is not selected at compile 1541 // Just jump directly to runtime if native RegExp is not selected at compile
1564 // time or if regexp entry in generated code is turned off runtime switch or 1542 // time or if regexp entry in generated code is turned off runtime switch or
1565 // at compilation. 1543 // at compilation.
1566 #ifdef V8_INTERPRETED_REGEXP 1544 #ifdef V8_INTERPRETED_REGEXP
1567 __ TailCallRuntime(Runtime::kRegExpExec); 1545 __ TailCallRuntime(Runtime::kRegExpExec);
1568 #else // V8_INTERPRETED_REGEXP 1546 #else // V8_INTERPRETED_REGEXP
1569 1547
1570 // Stack frame on entry. 1548 // Stack frame on entry.
1571 // sp[0]: last_match_info (expected JSArray) 1549 // sp[0]: last_match_info (expected JSArray)
(...skipping 4142 matching lines...) Expand 10 before | Expand all | Expand 10 after
5714 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5692 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5715 kStackUnwindSpace, NULL, return_value_operand, NULL); 5693 kStackUnwindSpace, NULL, return_value_operand, NULL);
5716 } 5694 }
5717 5695
5718 #undef __ 5696 #undef __
5719 5697
5720 } // namespace internal 5698 } // namespace internal
5721 } // namespace v8 5699 } // namespace v8
5722 5700
5723 #endif // V8_TARGET_ARCH_S390 5701 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698