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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
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 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 | 1257 |
1258 Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, | 1258 Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
1259 CodeHandleList* handlers, | 1259 CodeHandleList* handlers, |
1260 Handle<Name> name, | 1260 Handle<Name> name, |
1261 Code::StubType type, | 1261 Code::StubType type, |
1262 IcCheckType check) { | 1262 IcCheckType check) { |
1263 Label miss; | 1263 Label miss; |
1264 | 1264 |
1265 if (check == PROPERTY && | 1265 if (check == PROPERTY && |
1266 (kind() == Code::KEYED_LOAD_IC || kind() == Code::KEYED_STORE_IC)) { | 1266 (kind() == Code::KEYED_LOAD_IC || kind() == Code::KEYED_STORE_IC)) { |
1267 __ Branch(&miss, ne, this->name(), Operand(name)); | 1267 // In case we are compiling an IC for dictionary loads and stores, just |
| 1268 // check whether the name is unique. |
| 1269 if (name.is_identical_to(isolate()->factory()->normal_ic_symbol())) { |
| 1270 __ JumpIfNotUniqueName(this->name(), &miss); |
| 1271 } else { |
| 1272 __ Branch(&miss, ne, this->name(), Operand(name)); |
| 1273 } |
1268 } | 1274 } |
1269 | 1275 |
1270 Label number_case; | 1276 Label number_case; |
1271 Register match = scratch2(); | 1277 Register match = scratch2(); |
1272 Label* smi_target = IncludesNumberType(types) ? &number_case : &miss; | 1278 Label* smi_target = IncludesNumberType(types) ? &number_case : &miss; |
1273 __ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. | 1279 __ JumpIfSmi(receiver(), smi_target, match); // Reg match is 0 if Smi. |
1274 | 1280 |
1275 // Polymorphic keyed stores may use the map register | 1281 // Polymorphic keyed stores may use the map register |
1276 Register map_reg = scratch1(); | 1282 Register map_reg = scratch1(); |
1277 ASSERT(kind() != Code::KEYED_STORE_IC || | 1283 ASSERT(kind() != Code::KEYED_STORE_IC || |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1381 | 1387 |
1382 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1388 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1383 } | 1389 } |
1384 | 1390 |
1385 | 1391 |
1386 #undef __ | 1392 #undef __ |
1387 | 1393 |
1388 } } // namespace v8::internal | 1394 } } // namespace v8::internal |
1389 | 1395 |
1390 #endif // V8_TARGET_ARCH_MIPS64 | 1396 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |