| OLD | NEW |
| 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 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1480 __ bind(&fast_runtime_fallback); | 1480 __ bind(&fast_runtime_fallback); |
| 1481 __ Push(object, function_prototype); | 1481 __ Push(object, function_prototype); |
| 1482 // Invalidate the instanceof cache. | 1482 // Invalidate the instanceof cache. |
| 1483 __ LoadSmiLiteral(scratch, Smi::FromInt(0)); | 1483 __ LoadSmiLiteral(scratch, Smi::FromInt(0)); |
| 1484 __ StoreRoot(scratch, Heap::kInstanceofCacheFunctionRootIndex); | 1484 __ StoreRoot(scratch, Heap::kInstanceofCacheFunctionRootIndex); |
| 1485 __ TailCallRuntime(Runtime::kHasInPrototypeChain); | 1485 __ TailCallRuntime(Runtime::kHasInPrototypeChain); |
| 1486 | 1486 |
| 1487 // Slow-case: Call the %InstanceOf runtime function. | 1487 // Slow-case: Call the %InstanceOf runtime function. |
| 1488 __ bind(&slow_case); | 1488 __ bind(&slow_case); |
| 1489 __ Push(object, function); | 1489 __ Push(object, function); |
| 1490 __ TailCallRuntime(Runtime::kInstanceOf); | 1490 __ TailCallRuntime(is_es6_instanceof() ? Runtime::kOrdinaryHasInstance |
| 1491 : Runtime::kInstanceOf); |
| 1491 } | 1492 } |
| 1492 | 1493 |
| 1493 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | 1494 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
| 1494 Label miss; | 1495 Label miss; |
| 1495 Register receiver = LoadDescriptor::ReceiverRegister(); | 1496 Register receiver = LoadDescriptor::ReceiverRegister(); |
| 1496 // Ensure that the vector and slot registers won't be clobbered before | 1497 // Ensure that the vector and slot registers won't be clobbered before |
| 1497 // calling the miss handler. | 1498 // calling the miss handler. |
| 1498 DCHECK(!AreAliased(r6, r7, LoadWithVectorDescriptor::VectorRegister(), | 1499 DCHECK(!AreAliased(r6, r7, LoadWithVectorDescriptor::VectorRegister(), |
| 1499 LoadWithVectorDescriptor::SlotRegister())); | 1500 LoadWithVectorDescriptor::SlotRegister())); |
| 1500 | 1501 |
| (...skipping 4229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5730 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5731 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 5731 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5732 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 5732 } | 5733 } |
| 5733 | 5734 |
| 5734 #undef __ | 5735 #undef __ |
| 5735 | 5736 |
| 5736 } // namespace internal | 5737 } // namespace internal |
| 5737 } // namespace v8 | 5738 } // namespace v8 |
| 5738 | 5739 |
| 5739 #endif // V8_TARGET_ARCH_S390 | 5740 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |