| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1625 __ StoreRoot(scratch, Heap::kInstanceofCacheFunctionRootIndex); | 1625 __ StoreRoot(scratch, Heap::kInstanceofCacheFunctionRootIndex); |
| 1626 __ TailCallRuntime(Runtime::kHasInPrototypeChain); | 1626 __ TailCallRuntime(Runtime::kHasInPrototypeChain); |
| 1627 | 1627 |
| 1628 // Slow-case: Call the %InstanceOf runtime function. | 1628 // Slow-case: Call the %InstanceOf runtime function. |
| 1629 __ bind(&slow_case); | 1629 __ bind(&slow_case); |
| 1630 __ Push(object, function); | 1630 __ Push(object, function); |
| 1631 __ TailCallRuntime(Runtime::kInstanceOf); | 1631 __ TailCallRuntime(Runtime::kInstanceOf); |
| 1632 } | 1632 } |
| 1633 | 1633 |
| 1634 | 1634 |
| 1635 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) { | |
| 1636 // Return address is in lr. | |
| 1637 Label slow; | |
| 1638 | |
| 1639 Register receiver = LoadDescriptor::ReceiverRegister(); | |
| 1640 Register key = LoadDescriptor::NameRegister(); | |
| 1641 | |
| 1642 // Check that the key is an array index, that is Uint32. | |
| 1643 __ TestAndBranchIfAnySet(key, kSmiTagMask | kSmiSignMask, &slow); | |
| 1644 | |
| 1645 // Everything is fine, call runtime. | |
| 1646 __ Push(receiver, key); | |
| 1647 __ TailCallRuntime(Runtime::kLoadElementWithInterceptor); | |
| 1648 | |
| 1649 __ Bind(&slow); | |
| 1650 PropertyAccessCompiler::TailCallBuiltin( | |
| 1651 masm, PropertyAccessCompiler::MissBuiltin(Code::KEYED_LOAD_IC)); | |
| 1652 } | |
| 1653 | |
| 1654 | |
| 1655 void RegExpExecStub::Generate(MacroAssembler* masm) { | 1635 void RegExpExecStub::Generate(MacroAssembler* masm) { |
| 1656 #ifdef V8_INTERPRETED_REGEXP | 1636 #ifdef V8_INTERPRETED_REGEXP |
| 1657 __ TailCallRuntime(Runtime::kRegExpExec); | 1637 __ TailCallRuntime(Runtime::kRegExpExec); |
| 1658 #else // V8_INTERPRETED_REGEXP | 1638 #else // V8_INTERPRETED_REGEXP |
| 1659 | 1639 |
| 1660 // Stack frame on entry. | 1640 // Stack frame on entry. |
| 1661 // jssp[0]: last_match_info (expected JSArray) | 1641 // jssp[0]: last_match_info (expected JSArray) |
| 1662 // jssp[8]: previous index | 1642 // jssp[8]: previous index |
| 1663 // jssp[16]: subject string | 1643 // jssp[16]: subject string |
| 1664 // jssp[24]: JSRegExp object | 1644 // jssp[24]: JSRegExp object |
| (...skipping 4304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5969 return_value_operand, NULL); | 5949 return_value_operand, NULL); |
| 5970 } | 5950 } |
| 5971 | 5951 |
| 5972 | 5952 |
| 5973 #undef __ | 5953 #undef __ |
| 5974 | 5954 |
| 5975 } // namespace internal | 5955 } // namespace internal |
| 5976 } // namespace v8 | 5956 } // namespace v8 |
| 5977 | 5957 |
| 5978 #endif // V8_TARGET_ARCH_ARM64 | 5958 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |