| 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.h" | 9 #include "src/ic/ic.h" |
| 10 #include "src/ic/ic-compiler.h" | 10 #include "src/ic/ic-compiler.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 #define __ ACCESS_MASM(masm) | 15 #define __ ACCESS_MASM(masm) |
| 16 | 16 |
| 17 | 17 |
| 18 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm, | 18 void PropertyICCompiler::GenerateRuntimeSetProperty( |
| 19 StrictMode strict_mode) { | 19 MacroAssembler* masm, LanguageMode language_mode) { |
| 20 // Return address is on the stack. | 20 // Return address is on the stack. |
| 21 DCHECK(!ebx.is(StoreDescriptor::ReceiverRegister()) && | 21 DCHECK(!ebx.is(StoreDescriptor::ReceiverRegister()) && |
| 22 !ebx.is(StoreDescriptor::NameRegister()) && | 22 !ebx.is(StoreDescriptor::NameRegister()) && |
| 23 !ebx.is(StoreDescriptor::ValueRegister())); | 23 !ebx.is(StoreDescriptor::ValueRegister())); |
| 24 __ pop(ebx); | 24 __ pop(ebx); |
| 25 __ push(StoreDescriptor::ReceiverRegister()); | 25 __ push(StoreDescriptor::ReceiverRegister()); |
| 26 __ push(StoreDescriptor::NameRegister()); | 26 __ push(StoreDescriptor::NameRegister()); |
| 27 __ push(StoreDescriptor::ValueRegister()); | 27 __ push(StoreDescriptor::ValueRegister()); |
| 28 __ push(Immediate(Smi::FromInt(strict_mode))); | 28 __ push(Immediate(Smi::FromInt(language_mode))); |
| 29 __ push(ebx); // return address | 29 __ push(ebx); // return address |
| 30 | 30 |
| 31 // Do tail-call to runtime routine. | 31 // Do tail-call to runtime routine. |
| 32 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); | 32 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
| 33 } | 33 } |
| 34 | 34 |
| 35 | 35 |
| 36 #undef __ | 36 #undef __ |
| 37 #define __ ACCESS_MASM(masm()) | 37 #define __ ACCESS_MASM(masm()) |
| 38 | 38 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // Return the generated code. | 126 // Return the generated code. |
| 127 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); | 127 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
| 128 } | 128 } |
| 129 | 129 |
| 130 | 130 |
| 131 #undef __ | 131 #undef __ |
| 132 } | 132 } |
| 133 } // namespace v8::internal | 133 } // namespace v8::internal |
| 134 | 134 |
| 135 #endif // V8_TARGET_ARCH_X87 | 135 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |