OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 __ xchg(receiver, Operand(esp, 0)); | 327 __ xchg(receiver, Operand(esp, 0)); |
328 __ push(name); | 328 __ push(name); |
329 __ push(value); | 329 __ push(value); |
330 __ push(slot); | 330 __ push(slot); |
331 __ push(vector); | 331 __ push(vector); |
332 __ push(receiver); // which contains the return address. | 332 __ push(receiver); // which contains the return address. |
333 } | 333 } |
334 | 334 |
335 | 335 |
336 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) { | |
337 // Return address is on the stack. | |
338 StoreIC_PushArgs(masm); | |
339 | |
340 // Do tail-call to runtime routine. | |
341 __ TailCallRuntime(Runtime::kStoreIC_Slow); | |
342 } | |
343 | |
344 | |
345 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { | 336 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { |
346 // Return address is on the stack. | 337 // Return address is on the stack. |
347 StoreIC_PushArgs(masm); | 338 StoreIC_PushArgs(masm); |
348 | 339 |
349 // Do tail-call to runtime routine. | 340 // Do tail-call to runtime routine. |
350 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | 341 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); |
351 } | 342 } |
352 | 343 |
353 | 344 |
354 #undef __ | 345 #undef __ |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 // Return the generated code. | 711 // Return the generated code. |
721 return GetCode(kind(), name); | 712 return GetCode(kind(), name); |
722 } | 713 } |
723 | 714 |
724 | 715 |
725 #undef __ | 716 #undef __ |
726 } // namespace internal | 717 } // namespace internal |
727 } // namespace v8 | 718 } // namespace v8 |
728 | 719 |
729 #endif // V8_TARGET_ARCH_X87 | 720 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |