| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 | 789 |
| 790 prototype = handle(JSObject::cast(current_map->prototype())); | 790 prototype = handle(JSObject::cast(current_map->prototype())); |
| 791 if (current_map->is_dictionary_map() && | 791 if (current_map->is_dictionary_map() && |
| 792 !current_map->IsJSGlobalObjectMap() && | 792 !current_map->IsJSGlobalObjectMap() && |
| 793 !current_map->IsJSGlobalProxyMap()) { | 793 !current_map->IsJSGlobalProxyMap()) { |
| 794 if (!name->IsUniqueName()) { | 794 if (!name->IsUniqueName()) { |
| 795 ASSERT(name->IsString()); | 795 ASSERT(name->IsString()); |
| 796 name = factory()->InternalizeString(Handle<String>::cast(name)); | 796 name = factory()->InternalizeString(Handle<String>::cast(name)); |
| 797 } | 797 } |
| 798 ASSERT(current.is_null() || | 798 ASSERT(current.is_null() || |
| 799 current->property_dictionary()->FindEntry(*name) == | 799 current->property_dictionary()->FindEntry(name) == |
| 800 NameDictionary::kNotFound); | 800 NameDictionary::kNotFound); |
| 801 | 801 |
| 802 GenerateDictionaryNegativeLookup(masm(), miss, reg, name, | 802 GenerateDictionaryNegativeLookup(masm(), miss, reg, name, |
| 803 scratch1, scratch2); | 803 scratch1, scratch2); |
| 804 | 804 |
| 805 __ movp(scratch1, FieldOperand(reg, HeapObject::kMapOffset)); | 805 __ movp(scratch1, FieldOperand(reg, HeapObject::kMapOffset)); |
| 806 reg = holder_reg; // From now on the object will be in holder_reg. | 806 reg = holder_reg; // From now on the object will be in holder_reg. |
| 807 __ movp(reg, FieldOperand(scratch1, Map::kPrototypeOffset)); | 807 __ movp(reg, FieldOperand(scratch1, Map::kPrototypeOffset)); |
| 808 } else { | 808 } else { |
| 809 bool in_new_space = heap()->InNewSpace(*prototype); | 809 bool in_new_space = heap()->InNewSpace(*prototype); |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 // ----------------------------------- | 1476 // ----------------------------------- |
| 1477 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1477 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1478 } | 1478 } |
| 1479 | 1479 |
| 1480 | 1480 |
| 1481 #undef __ | 1481 #undef __ |
| 1482 | 1482 |
| 1483 } } // namespace v8::internal | 1483 } } // namespace v8::internal |
| 1484 | 1484 |
| 1485 #endif // V8_TARGET_ARCH_X64 | 1485 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |