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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 LoadWithVectorDescriptor::SlotRegister())); | 1587 LoadWithVectorDescriptor::SlotRegister())); |
1588 | 1588 |
1589 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, a4, | 1589 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, a4, |
1590 a5, &miss); | 1590 a5, &miss); |
1591 __ bind(&miss); | 1591 __ bind(&miss); |
1592 PropertyAccessCompiler::TailCallBuiltin( | 1592 PropertyAccessCompiler::TailCallBuiltin( |
1593 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); | 1593 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); |
1594 } | 1594 } |
1595 | 1595 |
1596 | 1596 |
1597 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) { | |
1598 // Return address is in ra. | |
1599 Label slow; | |
1600 | |
1601 Register receiver = LoadDescriptor::ReceiverRegister(); | |
1602 Register key = LoadDescriptor::NameRegister(); | |
1603 | |
1604 // Check that the key is an array index, that is Uint32. | |
1605 __ And(t0, key, Operand(kSmiTagMask | kSmiSignMask)); | |
1606 __ Branch(&slow, ne, t0, Operand(zero_reg)); | |
1607 | |
1608 // Everything is fine, call runtime. | |
1609 __ Push(receiver, key); // Receiver, key. | |
1610 | |
1611 // Perform tail call to the entry. | |
1612 __ TailCallRuntime(Runtime::kLoadElementWithInterceptor); | |
1613 | |
1614 __ bind(&slow); | |
1615 PropertyAccessCompiler::TailCallBuiltin( | |
1616 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); | |
1617 } | |
1618 | |
1619 | |
1620 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1597 void RegExpExecStub::Generate(MacroAssembler* masm) { |
1621 // Just jump directly to runtime if native RegExp is not selected at compile | 1598 // Just jump directly to runtime if native RegExp is not selected at compile |
1622 // time or if regexp entry in generated code is turned off runtime switch or | 1599 // time or if regexp entry in generated code is turned off runtime switch or |
1623 // at compilation. | 1600 // at compilation. |
1624 #ifdef V8_INTERPRETED_REGEXP | 1601 #ifdef V8_INTERPRETED_REGEXP |
1625 __ TailCallRuntime(Runtime::kRegExpExec); | 1602 __ TailCallRuntime(Runtime::kRegExpExec); |
1626 #else // V8_INTERPRETED_REGEXP | 1603 #else // V8_INTERPRETED_REGEXP |
1627 | 1604 |
1628 // Stack frame on entry. | 1605 // Stack frame on entry. |
1629 // sp[0]: last_match_info (expected JSArray) | 1606 // sp[0]: last_match_info (expected JSArray) |
(...skipping 4161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5791 return_value_operand, NULL); | 5768 return_value_operand, NULL); |
5792 } | 5769 } |
5793 | 5770 |
5794 | 5771 |
5795 #undef __ | 5772 #undef __ |
5796 | 5773 |
5797 } // namespace internal | 5774 } // namespace internal |
5798 } // namespace v8 | 5775 } // namespace v8 |
5799 | 5776 |
5800 #endif // V8_TARGET_ARCH_MIPS64 | 5777 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |