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