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 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1621 __ Bind(&fast_runtime_fallback); | 1621 __ Bind(&fast_runtime_fallback); |
1622 __ Push(object, function_prototype); | 1622 __ Push(object, function_prototype); |
1623 // Invalidate the instanceof cache. | 1623 // Invalidate the instanceof cache. |
1624 __ Move(scratch, Smi::FromInt(0)); | 1624 __ Move(scratch, Smi::FromInt(0)); |
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(is_es6_instanceof() ? Runtime::kOrdinaryHasInstance |
| 1632 : Runtime::kInstanceOf); |
1632 } | 1633 } |
1633 | 1634 |
1634 | 1635 |
1635 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) { | 1636 void LoadIndexedInterceptorStub::Generate(MacroAssembler* masm) { |
1636 // Return address is in lr. | 1637 // Return address is in lr. |
1637 Label slow; | 1638 Label slow; |
1638 | 1639 |
1639 Register receiver = LoadDescriptor::ReceiverRegister(); | 1640 Register receiver = LoadDescriptor::ReceiverRegister(); |
1640 Register key = LoadDescriptor::NameRegister(); | 1641 Register key = LoadDescriptor::NameRegister(); |
1641 | 1642 |
(...skipping 4327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5969 return_value_operand, NULL); | 5970 return_value_operand, NULL); |
5970 } | 5971 } |
5971 | 5972 |
5972 | 5973 |
5973 #undef __ | 5974 #undef __ |
5974 | 5975 |
5975 } // namespace internal | 5976 } // namespace internal |
5976 } // namespace v8 | 5977 } // namespace v8 |
5977 | 5978 |
5978 #endif // V8_TARGET_ARCH_ARM64 | 5979 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |