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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // Jump to stub. | 314 // Jump to stub. |
315 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, | 315 CallApiCallbackStub stub(isolate, is_store, call_data_undefined, |
316 !optimization.is_constant_call()); | 316 !optimization.is_constant_call()); |
317 __ TailCallStub(&stub); | 317 __ TailCallStub(&stub); |
318 } | 318 } |
319 | 319 |
320 | 320 |
321 static void StoreIC_PushArgs(MacroAssembler* masm) { | 321 static void StoreIC_PushArgs(MacroAssembler* masm) { |
322 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 322 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
323 StoreDescriptor::ValueRegister(), | 323 StoreDescriptor::ValueRegister(), |
324 VectorStoreICDescriptor::SlotRegister(), | 324 StoreWithVectorDescriptor::SlotRegister(), |
325 VectorStoreICDescriptor::VectorRegister()); | 325 StoreWithVectorDescriptor::VectorRegister()); |
326 } | 326 } |
327 | 327 |
328 | 328 |
329 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { | 329 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
330 StoreIC_PushArgs(masm); | 330 StoreIC_PushArgs(masm); |
331 | 331 |
332 // The slow case calls into the runtime to complete the store without causing | 332 // The slow case calls into the runtime to complete the store without causing |
333 // an IC miss that would otherwise cause a transition to the generic stub. | 333 // an IC miss that would otherwise cause a transition to the generic stub. |
334 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | 334 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
335 } | 335 } |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 // Return the generated code. | 682 // Return the generated code. |
683 return GetCode(kind(), name); | 683 return GetCode(kind(), name); |
684 } | 684 } |
685 | 685 |
686 | 686 |
687 #undef __ | 687 #undef __ |
688 } // namespace internal | 688 } // namespace internal |
689 } // namespace v8 | 689 } // namespace v8 |
690 | 690 |
691 #endif // V8_TARGET_ARCH_MIPS64 | 691 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |