| 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 2775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2786 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { | 2786 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { |
| 2787 // ----------- S t a t e ------------- | 2787 // ----------- S t a t e ------------- |
| 2788 // -- r3 : left | 2788 // -- r3 : left |
| 2789 // -- r2 : right | 2789 // -- r2 : right |
| 2790 // r3: second string | 2790 // r3: second string |
| 2791 // ----------------------------------- | 2791 // ----------------------------------- |
| 2792 | 2792 |
| 2793 // Load r4 with the allocation site. We stick an undefined dummy value here | 2793 // Load r4 with the allocation site. We stick an undefined dummy value here |
| 2794 // and replace it with the real allocation site later when we instantiate this | 2794 // and replace it with the real allocation site later when we instantiate this |
| 2795 // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate(). | 2795 // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate(). |
| 2796 __ Move(r4, handle(isolate()->heap()->undefined_value())); | 2796 __ Move(r4, isolate()->factory()->undefined_value()); |
| 2797 | 2797 |
| 2798 // Make sure that we actually patched the allocation site. | 2798 // Make sure that we actually patched the allocation site. |
| 2799 if (FLAG_debug_code) { | 2799 if (FLAG_debug_code) { |
| 2800 __ TestIfSmi(r4); | 2800 __ TestIfSmi(r4); |
| 2801 __ Assert(ne, kExpectedAllocationSite, cr0); | 2801 __ Assert(ne, kExpectedAllocationSite, cr0); |
| 2802 __ push(r4); | 2802 __ push(r4); |
| 2803 __ LoadP(r4, FieldMemOperand(r4, HeapObject::kMapOffset)); | 2803 __ LoadP(r4, FieldMemOperand(r4, HeapObject::kMapOffset)); |
| 2804 __ CompareRoot(r4, Heap::kAllocationSiteMapRootIndex); | 2804 __ CompareRoot(r4, Heap::kAllocationSiteMapRootIndex); |
| 2805 __ pop(r4); | 2805 __ pop(r4); |
| 2806 __ Assert(eq, kExpectedAllocationSite); | 2806 __ Assert(eq, kExpectedAllocationSite); |
| (...skipping 2793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5600 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, | 5600 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, |
| 5601 kStackUnwindSpace, NULL, return_value_operand, NULL); | 5601 kStackUnwindSpace, NULL, return_value_operand, NULL); |
| 5602 } | 5602 } |
| 5603 | 5603 |
| 5604 #undef __ | 5604 #undef __ |
| 5605 | 5605 |
| 5606 } // namespace internal | 5606 } // namespace internal |
| 5607 } // namespace v8 | 5607 } // namespace v8 |
| 5608 | 5608 |
| 5609 #endif // V8_TARGET_ARCH_S390 | 5609 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |