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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
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" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // Return the generated code. | 115 // Return the generated code. |
116 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); | 116 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); |
117 } | 117 } |
118 | 118 |
119 | 119 |
120 #undef __ | 120 #undef __ |
121 #define __ ACCESS_MASM(masm) | 121 #define __ ACCESS_MASM(masm) |
122 | 122 |
123 | 123 |
124 void PropertyICCompiler::GenerateRuntimeSetProperty(MacroAssembler* masm, | 124 void PropertyICCompiler::GenerateRuntimeSetProperty( |
125 StrictMode strict_mode) { | 125 MacroAssembler* masm, LanguageMode language_mode) { |
126 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), | 126 __ Push(StoreDescriptor::ReceiverRegister(), StoreDescriptor::NameRegister(), |
127 StoreDescriptor::ValueRegister()); | 127 StoreDescriptor::ValueRegister()); |
128 | 128 |
129 __ li(a0, Operand(Smi::FromInt(strict_mode))); | 129 __ li(a0, Operand(Smi::FromInt(language_mode))); |
130 __ Push(a0); | 130 __ Push(a0); |
131 | 131 |
132 // Do tail-call to runtime routine. | 132 // Do tail-call to runtime routine. |
133 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); | 133 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
134 } | 134 } |
135 | 135 |
136 | 136 |
137 #undef __ | 137 #undef __ |
138 } | 138 } |
139 } // namespace v8::internal | 139 } // namespace v8::internal |
140 | 140 |
141 #endif // V8_TARGET_ARCH_MIPS64 | 141 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |