| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 #include "src/ic/call-optimization.h" | 9 #include "src/ic/call-optimization.h" |
| 10 #include "src/ic/handler-compiler.h" | 10 #include "src/ic/handler-compiler.h" |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 } | 248 } |
| 249 DCHECK(optimization.is_simple_api_call()); | 249 DCHECK(optimization.is_simple_api_call()); |
| 250 | 250 |
| 251 // Abi for CallApiFunctionStub. | 251 // Abi for CallApiFunctionStub. |
| 252 Register callee = a0; | 252 Register callee = a0; |
| 253 Register data = a4; | 253 Register data = a4; |
| 254 Register holder = a2; | 254 Register holder = a2; |
| 255 Register api_function_address = a1; | 255 Register api_function_address = a1; |
| 256 | 256 |
| 257 // Put callee in place. | 257 // Put callee in place. |
| 258 __ LoadAccessor(callee, holder, accessor_index, | 258 __ LoadAccessor(callee, accessor_holder, accessor_index, |
| 259 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER); | 259 is_store ? ACCESSOR_SETTER : ACCESSOR_GETTER); |
| 260 | 260 |
| 261 // Put holder in place. | 261 // Put holder in place. |
| 262 CallOptimization::HolderLookup holder_lookup; | 262 CallOptimization::HolderLookup holder_lookup; |
| 263 int holder_depth = 0; | 263 int holder_depth = 0; |
| 264 optimization.LookupHolderOfExpectedType(receiver_map, &holder_lookup, | 264 optimization.LookupHolderOfExpectedType(receiver_map, &holder_lookup, |
| 265 &holder_depth); | 265 &holder_depth); |
| 266 switch (holder_lookup) { | 266 switch (holder_lookup) { |
| 267 case CallOptimization::kHolderIsReceiver: | 267 case CallOptimization::kHolderIsReceiver: |
| 268 __ Move(holder, receiver); | 268 __ Move(holder, receiver); |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 // Return the generated code. | 740 // Return the generated code. |
| 741 return GetCode(kind(), Code::NORMAL, name); | 741 return GetCode(kind(), Code::NORMAL, name); |
| 742 } | 742 } |
| 743 | 743 |
| 744 | 744 |
| 745 #undef __ | 745 #undef __ |
| 746 } | 746 } |
| 747 } // namespace v8::internal | 747 } // namespace v8::internal |
| 748 | 748 |
| 749 #endif // V8_TARGET_ARCH_MIPS64 | 749 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |