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