| 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 | 332 |
| 333 | 333 |
| 334 static void StoreIC_PushArgs(MacroAssembler* masm) { | 334 static void StoreIC_PushArgs(MacroAssembler* masm) { |
| 335 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 335 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
| 336 StoreDescriptor::ValueRegister(), | 336 StoreDescriptor::ValueRegister(), |
| 337 VectorStoreICDescriptor::SlotRegister(), | 337 VectorStoreICDescriptor::SlotRegister(), |
| 338 VectorStoreICDescriptor::VectorRegister()); | 338 VectorStoreICDescriptor::VectorRegister()); |
| 339 } | 339 } |
| 340 | 340 |
| 341 | 341 |
| 342 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) { | |
| 343 StoreIC_PushArgs(masm); | |
| 344 | |
| 345 // The slow case calls into the runtime to complete the store without causing | |
| 346 // an IC miss that would otherwise cause a transition to the generic stub. | |
| 347 __ TailCallRuntime(Runtime::kStoreIC_Slow); | |
| 348 } | |
| 349 | |
| 350 | |
| 351 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { | 342 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
| 352 StoreIC_PushArgs(masm); | 343 StoreIC_PushArgs(masm); |
| 353 | 344 |
| 354 // The slow case calls into the runtime to complete the store without causing | 345 // The slow case calls into the runtime to complete the store without causing |
| 355 // an IC miss that would otherwise cause a transition to the generic stub. | 346 // an IC miss that would otherwise cause a transition to the generic stub. |
| 356 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | 347 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
| 357 } | 348 } |
| 358 | 349 |
| 359 | 350 |
| 360 #undef __ | 351 #undef __ |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 // Return the generated code. | 697 // Return the generated code. |
| 707 return GetCode(kind(), name); | 698 return GetCode(kind(), name); |
| 708 } | 699 } |
| 709 | 700 |
| 710 | 701 |
| 711 #undef __ | 702 #undef __ |
| 712 } // namespace internal | 703 } // namespace internal |
| 713 } // namespace v8 | 704 } // namespace v8 |
| 714 | 705 |
| 715 #endif // V8_TARGET_ARCH_ARM | 706 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |