| 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 __ PopReturnAddressTo(r11); | 333 __ PopReturnAddressTo(r11); |
| 334 __ Push(receiver); | 334 __ Push(receiver); |
| 335 __ Push(name); | 335 __ Push(name); |
| 336 __ Push(value); | 336 __ Push(value); |
| 337 __ Push(slot); | 337 __ Push(slot); |
| 338 __ Push(vector); | 338 __ Push(vector); |
| 339 __ PushReturnAddressFrom(r11); | 339 __ PushReturnAddressFrom(r11); |
| 340 } | 340 } |
| 341 | 341 |
| 342 | 342 |
| 343 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) { | |
| 344 // Return address is on the stack. | |
| 345 StoreIC_PushArgs(masm); | |
| 346 | |
| 347 // Do tail-call to runtime routine. | |
| 348 __ TailCallRuntime(Runtime::kStoreIC_Slow); | |
| 349 } | |
| 350 | |
| 351 | |
| 352 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { | 343 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
| 353 // Return address is on the stack. | 344 // Return address is on the stack. |
| 354 StoreIC_PushArgs(masm); | 345 StoreIC_PushArgs(masm); |
| 355 | 346 |
| 356 // Do tail-call to runtime routine. | 347 // Do tail-call to runtime routine. |
| 357 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | 348 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
| 358 } | 349 } |
| 359 | 350 |
| 360 | 351 |
| 361 #undef __ | 352 #undef __ |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 // Return the generated code. | 708 // Return the generated code. |
| 718 return GetCode(kind(), name); | 709 return GetCode(kind(), name); |
| 719 } | 710 } |
| 720 | 711 |
| 721 | 712 |
| 722 #undef __ | 713 #undef __ |
| 723 } // namespace internal | 714 } // namespace internal |
| 724 } // namespace v8 | 715 } // namespace v8 |
| 725 | 716 |
| 726 #endif // V8_TARGET_ARCH_X64 | 717 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |