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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1203 } | 1203 } |
1204 __ Ret(); | 1204 __ Ret(); |
1205 } | 1205 } |
1206 | 1206 |
1207 | 1207 |
1208 #undef __ | 1208 #undef __ |
1209 #define __ ACCESS_MASM(masm()) | 1209 #define __ ACCESS_MASM(masm()) |
1210 | 1210 |
1211 | 1211 |
1212 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( | 1212 Handle<Code> NamedLoadHandlerCompiler::CompileLoadGlobal( |
1213 Handle<PropertyCell> cell, Handle<Name> name, bool is_dont_delete) { | 1213 Handle<PropertyCell> cell, Handle<Name> name, bool is_configurable) { |
1214 Label miss; | 1214 Label miss; |
1215 | 1215 |
1216 FrontendHeader(receiver(), name, &miss); | 1216 FrontendHeader(receiver(), name, &miss); |
1217 | 1217 |
1218 // Get the value from the cell. | 1218 // Get the value from the cell. |
1219 Register result = StoreIC::ValueRegister(); | 1219 Register result = StoreIC::ValueRegister(); |
1220 __ li(result, Operand(cell)); | 1220 __ li(result, Operand(cell)); |
1221 __ lw(result, FieldMemOperand(result, Cell::kValueOffset)); | 1221 __ lw(result, FieldMemOperand(result, Cell::kValueOffset)); |
1222 | 1222 |
1223 // Check for deleted property if property can actually be deleted. | 1223 // Check for deleted property if property can actually be deleted. |
1224 if (!is_dont_delete) { | 1224 if (is_configurable) { |
1225 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); | 1225 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
1226 __ Branch(&miss, eq, result, Operand(at)); | 1226 __ Branch(&miss, eq, result, Operand(at)); |
1227 } | 1227 } |
1228 | 1228 |
1229 Counters* counters = isolate()->counters(); | 1229 Counters* counters = isolate()->counters(); |
1230 __ IncrementCounter(counters->named_load_global_stub(), 1, a1, a3); | 1230 __ IncrementCounter(counters->named_load_global_stub(), 1, a1, a3); |
1231 __ Ret(USE_DELAY_SLOT); | 1231 __ Ret(USE_DELAY_SLOT); |
1232 __ mov(v0, result); | 1232 __ mov(v0, result); |
1233 | 1233 |
1234 FrontendFooter(name, &miss); | 1234 FrontendFooter(name, &miss); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1369 | 1369 |
1370 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1370 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1371 } | 1371 } |
1372 | 1372 |
1373 | 1373 |
1374 #undef __ | 1374 #undef __ |
1375 | 1375 |
1376 } } // namespace v8::internal | 1376 } } // namespace v8::internal |
1377 | 1377 |
1378 #endif // V8_TARGET_ARCH_MIPS | 1378 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |