| 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 // Restore context register. | 320 // Restore context register. |
| 321 __ Pop(cp); | 321 __ Pop(cp); |
| 322 } | 322 } |
| 323 __ Ret(); | 323 __ Ret(); |
| 324 } | 324 } |
| 325 | 325 |
| 326 | 326 |
| 327 static void StoreIC_PushArgs(MacroAssembler* masm) { | 327 static void StoreIC_PushArgs(MacroAssembler* masm) { |
| 328 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 328 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
| 329 StoreDescriptor::ValueRegister(), | 329 StoreDescriptor::ValueRegister(), |
| 330 VectorStoreICDescriptor::SlotRegister(), | 330 StoreWithVectorDescriptor::SlotRegister(), |
| 331 VectorStoreICDescriptor::VectorRegister()); | 331 StoreWithVectorDescriptor::VectorRegister()); |
| 332 } | 332 } |
| 333 | 333 |
| 334 | 334 |
| 335 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { | 335 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
| 336 ASM_LOCATION("ElementHandlerCompiler::GenerateStoreSlow"); | 336 ASM_LOCATION("ElementHandlerCompiler::GenerateStoreSlow"); |
| 337 StoreIC_PushArgs(masm); | 337 StoreIC_PushArgs(masm); |
| 338 | 338 |
| 339 // The slow case calls into the runtime to complete the store without causing | 339 // The slow case calls into the runtime to complete the store without causing |
| 340 // an IC miss that would otherwise cause a transition to the generic stub. | 340 // an IC miss that would otherwise cause a transition to the generic stub. |
| 341 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | 341 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 695 // Return the generated code. | 695 // Return the generated code. |
| 696 return GetCode(kind(), name); | 696 return GetCode(kind(), name); |
| 697 } | 697 } |
| 698 | 698 |
| 699 | 699 |
| 700 #undef __ | 700 #undef __ |
| 701 } // namespace internal | 701 } // namespace internal |
| 702 } // namespace v8 | 702 } // namespace v8 |
| 703 | 703 |
| 704 #endif // V8_TARGET_ARCH_IA32 | 704 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |