| 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); | |
| 169 __ Push(receiver); | 168 __ Push(receiver); |
| 170 // Write the arguments to stack frame. | 169 // Write the arguments to stack frame. |
| 171 if (is_store) { | 170 if (is_store) { |
| 172 DCHECK(!receiver.is(store_parameter)); | 171 DCHECK(!receiver.is(store_parameter)); |
| 173 DCHECK(!scratch_in.is(store_parameter)); | 172 DCHECK(!scratch_in.is(store_parameter)); |
| 174 __ Push(store_parameter); | 173 __ Push(store_parameter); |
| 175 } | 174 } |
| 176 DCHECK(optimization.is_simple_api_call()); | 175 DCHECK(optimization.is_simple_api_call()); |
| 177 | 176 |
| 178 // Abi for CallApiCallbackStub. | 177 // Abi for CallApiCallbackStub. |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 401 |
| 403 Register NamedStoreHandlerCompiler::value() { | 402 Register NamedStoreHandlerCompiler::value() { |
| 404 return StoreDescriptor::ValueRegister(); | 403 return StoreDescriptor::ValueRegister(); |
| 405 } | 404 } |
| 406 | 405 |
| 407 #undef __ | 406 #undef __ |
| 408 } // namespace internal | 407 } // namespace internal |
| 409 } // namespace v8 | 408 } // namespace v8 |
| 410 | 409 |
| 411 #endif // V8_TARGET_ARCH_ARM | 410 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |