OLD | NEW |
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/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 1479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1490 | 1490 |
1491 StubRuntimeCallHelper call_helper; | 1491 StubRuntimeCallHelper call_helper; |
1492 char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper); | 1492 char_at_generator.GenerateSlow(masm, PART_OF_IC_HANDLER, call_helper); |
1493 | 1493 |
1494 __ bind(&miss); | 1494 __ bind(&miss); |
1495 PropertyAccessCompiler::TailCallBuiltin( | 1495 PropertyAccessCompiler::TailCallBuiltin( |
1496 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); | 1496 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); |
1497 } | 1497 } |
1498 | 1498 |
1499 | 1499 |
1500 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) { | |
1501 // Return address is in lr. | |
1502 Label slow; | |
1503 | |
1504 Register receiver = LoadDescriptor::ReceiverRegister(); | |
1505 Register key = LoadDescriptor::NameRegister(); | |
1506 | |
1507 // Check that the key is an array index, that is Uint32. | |
1508 __ NonNegativeSmiTst(key); | |
1509 __ b(ne, &slow); | |
1510 | |
1511 // Everything is fine, call runtime. | |
1512 __ Push(receiver, key); // Receiver, key. | |
1513 | |
1514 // Perform tail call to the entry. | |
1515 __ TailCallRuntime(Runtime::kLoadElementWithInterceptor); | |
1516 | |
1517 __ bind(&slow); | |
1518 PropertyAccessCompiler::TailCallBuiltin( | |
1519 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); | |
1520 } | |
1521 | |
1522 | |
1523 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1500 void RegExpExecStub::Generate(MacroAssembler* masm) { |
1524 // Just jump directly to runtime if native RegExp is not selected at compile | 1501 // Just jump directly to runtime if native RegExp is not selected at compile |
1525 // time or if regexp entry in generated code is turned off runtime switch or | 1502 // time or if regexp entry in generated code is turned off runtime switch or |
1526 // at compilation. | 1503 // at compilation. |
1527 #ifdef V8_INTERPRETED_REGEXP | 1504 #ifdef V8_INTERPRETED_REGEXP |
1528 __ TailCallRuntime(Runtime::kRegExpExec); | 1505 __ TailCallRuntime(Runtime::kRegExpExec); |
1529 #else // V8_INTERPRETED_REGEXP | 1506 #else // V8_INTERPRETED_REGEXP |
1530 | 1507 |
1531 // Stack frame on entry. | 1508 // Stack frame on entry. |
1532 // sp[0]: last_match_info (expected JSArray) | 1509 // sp[0]: last_match_info (expected JSArray) |
(...skipping 4052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5585 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5562 kStackUnwindSpace, NULL, return_value_operand, NULL); |
5586 } | 5563 } |
5587 | 5564 |
5588 | 5565 |
5589 #undef __ | 5566 #undef __ |
5590 | 5567 |
5591 } // namespace internal | 5568 } // namespace internal |
5592 } // namespace v8 | 5569 } // namespace v8 |
5593 | 5570 |
5594 #endif // V8_TARGET_ARCH_ARM | 5571 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |