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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
8 | 8 |
9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
10 | 10 |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 __ bind(&miss); | 972 __ bind(&miss); |
973 // ----------- S t a t e ------------- | 973 // ----------- S t a t e ------------- |
974 // -- ecx : key | 974 // -- ecx : key |
975 // -- edx : receiver | 975 // -- edx : receiver |
976 // -- esp[0] : return address | 976 // -- esp[0] : return address |
977 // ----------------------------------- | 977 // ----------------------------------- |
978 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 978 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
979 } | 979 } |
980 | 980 |
981 | 981 |
| 982 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm, |
| 983 StrictMode strict_mode) { |
| 984 // Return address is on the stack. |
| 985 DCHECK(!ebx.is(StoreIC::ReceiverRegister()) && |
| 986 !ebx.is(StoreIC::NameRegister()) && !ebx.is(StoreIC::ValueRegister())); |
| 987 __ pop(ebx); |
| 988 __ push(StoreIC::ReceiverRegister()); |
| 989 __ push(StoreIC::NameRegister()); |
| 990 __ push(StoreIC::ValueRegister()); |
| 991 __ push(Immediate(Smi::FromInt(strict_mode))); |
| 992 __ push(ebx); // return address |
| 993 |
| 994 // Do tail-call to runtime routine. |
| 995 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
| 996 } |
| 997 |
| 998 |
982 #undef __ | 999 #undef __ |
983 } | 1000 } |
984 } // namespace v8::internal | 1001 } // namespace v8::internal |
985 | 1002 |
986 #endif // V8_TARGET_ARCH_IA32 | 1003 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |