| 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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 } | 161 } |
| 162 | 162 |
| 163 // Generate call to api function. | 163 // Generate call to api function. |
| 164 void PropertyHandlerCompiler::GenerateApiAccessorCall( | 164 void PropertyHandlerCompiler::GenerateApiAccessorCall( |
| 165 MacroAssembler* masm, const CallOptimization& optimization, | 165 MacroAssembler* masm, const CallOptimization& optimization, |
| 166 Handle<Map> receiver_map, Register receiver, Register scratch_in, | 166 Handle<Map> receiver_map, Register receiver, Register scratch_in, |
| 167 bool is_store, Register store_parameter, Register accessor_holder, | 167 bool is_store, Register store_parameter, Register accessor_holder, |
| 168 int accessor_index) { | 168 int accessor_index) { |
| 169 DCHECK(!accessor_holder.is(scratch_in)); | 169 DCHECK(!accessor_holder.is(scratch_in)); |
| 170 DCHECK(!receiver.is(scratch_in)); | 170 DCHECK(!receiver.is(scratch_in)); |
| 171 __ push(accessor_holder); |
| 171 __ push(receiver); | 172 __ push(receiver); |
| 172 // Write the arguments to stack frame. | 173 // Write the arguments to stack frame. |
| 173 if (is_store) { | 174 if (is_store) { |
| 174 DCHECK(!receiver.is(store_parameter)); | 175 DCHECK(!receiver.is(store_parameter)); |
| 175 DCHECK(!scratch_in.is(store_parameter)); | 176 DCHECK(!scratch_in.is(store_parameter)); |
| 176 __ push(store_parameter); | 177 __ push(store_parameter); |
| 177 } | 178 } |
| 178 DCHECK(optimization.is_simple_api_call()); | 179 DCHECK(optimization.is_simple_api_call()); |
| 179 | 180 |
| 180 // Abi for CallApiCallbackStub. | 181 // Abi for CallApiCallbackStub. |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 Register NamedStoreHandlerCompiler::value() { | 404 Register NamedStoreHandlerCompiler::value() { |
| 404 return StoreDescriptor::ValueRegister(); | 405 return StoreDescriptor::ValueRegister(); |
| 405 } | 406 } |
| 406 | 407 |
| 407 | 408 |
| 408 #undef __ | 409 #undef __ |
| 409 } // namespace internal | 410 } // namespace internal |
| 410 } // namespace v8 | 411 } // namespace v8 |
| 411 | 412 |
| 412 #endif // V8_TARGET_ARCH_MIPS | 413 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |