OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/ic/handler-compiler.h" | 7 #include "src/ic/handler-compiler.h" |
8 | 8 |
9 #include "src/api-arguments.h" | 9 #include "src/api-arguments.h" |
10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 } | 158 } |
159 | 159 |
160 // Generate call to api function. | 160 // Generate call to api function. |
161 void PropertyHandlerCompiler::GenerateApiAccessorCall( | 161 void PropertyHandlerCompiler::GenerateApiAccessorCall( |
162 MacroAssembler* masm, const CallOptimization& optimization, | 162 MacroAssembler* masm, const CallOptimization& optimization, |
163 Handle<Map> receiver_map, Register receiver, Register scratch_in, | 163 Handle<Map> receiver_map, Register receiver, Register scratch_in, |
164 bool is_store, Register store_parameter, Register accessor_holder, | 164 bool is_store, Register store_parameter, Register accessor_holder, |
165 int accessor_index) { | 165 int accessor_index) { |
166 DCHECK(!accessor_holder.is(scratch_in)); | 166 DCHECK(!accessor_holder.is(scratch_in)); |
167 DCHECK(!receiver.is(scratch_in)); | 167 DCHECK(!receiver.is(scratch_in)); |
| 168 __ Push(accessor_holder); |
168 __ Push(receiver); | 169 __ Push(receiver); |
169 // Write the arguments to stack frame. | 170 // Write the arguments to stack frame. |
170 if (is_store) { | 171 if (is_store) { |
171 DCHECK(!receiver.is(store_parameter)); | 172 DCHECK(!receiver.is(store_parameter)); |
172 DCHECK(!scratch_in.is(store_parameter)); | 173 DCHECK(!scratch_in.is(store_parameter)); |
173 __ Push(store_parameter); | 174 __ Push(store_parameter); |
174 } | 175 } |
175 DCHECK(optimization.is_simple_api_call()); | 176 DCHECK(optimization.is_simple_api_call()); |
176 | 177 |
177 // Abi for CallApiCallbackStub. | 178 // Abi for CallApiCallbackStub. |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 | 402 |
402 Register NamedStoreHandlerCompiler::value() { | 403 Register NamedStoreHandlerCompiler::value() { |
403 return StoreDescriptor::ValueRegister(); | 404 return StoreDescriptor::ValueRegister(); |
404 } | 405 } |
405 | 406 |
406 #undef __ | 407 #undef __ |
407 } // namespace internal | 408 } // namespace internal |
408 } // namespace v8 | 409 } // namespace v8 |
409 | 410 |
410 #endif // V8_TARGET_ARCH_ARM | 411 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |