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