| 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 873 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 } | 884 } |
| 885 | 885 |
| 886 if (last_map->is_dictionary_map() && | 886 if (last_map->is_dictionary_map() && |
| 887 !last_map->IsJSGlobalObjectMap() && | 887 !last_map->IsJSGlobalObjectMap() && |
| 888 !last_map->IsJSGlobalProxyMap()) { | 888 !last_map->IsJSGlobalProxyMap()) { |
| 889 if (!name->IsUniqueName()) { | 889 if (!name->IsUniqueName()) { |
| 890 ASSERT(name->IsString()); | 890 ASSERT(name->IsString()); |
| 891 name = factory()->InternalizeString(Handle<String>::cast(name)); | 891 name = factory()->InternalizeString(Handle<String>::cast(name)); |
| 892 } | 892 } |
| 893 ASSERT(last.is_null() || | 893 ASSERT(last.is_null() || |
| 894 last->property_dictionary()->FindEntry(*name) == | 894 last->property_dictionary()->FindEntry(name) == |
| 895 NameDictionary::kNotFound); | 895 NameDictionary::kNotFound); |
| 896 GenerateDictionaryNegativeLookup(masm(), &miss, holder, name, | 896 GenerateDictionaryNegativeLookup(masm(), &miss, holder, name, |
| 897 scratch2(), scratch3()); | 897 scratch2(), scratch3()); |
| 898 } | 898 } |
| 899 | 899 |
| 900 // If the last object in the prototype chain is a global object, | 900 // If the last object in the prototype chain is a global object, |
| 901 // check that the global property cell is empty. | 901 // check that the global property cell is empty. |
| 902 if (last_map->IsJSGlobalObjectMap()) { | 902 if (last_map->IsJSGlobalObjectMap()) { |
| 903 Handle<JSGlobalObject> global = last.is_null() | 903 Handle<JSGlobalObject> global = last.is_null() |
| 904 ? Handle<JSGlobalObject>::cast(type->AsConstant()->Value()) | 904 ? Handle<JSGlobalObject>::cast(type->AsConstant()->Value()) |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1507 Handle<FunctionTemplateInfo>( | 1507 Handle<FunctionTemplateInfo>( |
| 1508 FunctionTemplateInfo::cast(signature->receiver())); | 1508 FunctionTemplateInfo::cast(signature->receiver())); |
| 1509 } | 1509 } |
| 1510 } | 1510 } |
| 1511 | 1511 |
| 1512 is_simple_api_call_ = true; | 1512 is_simple_api_call_ = true; |
| 1513 } | 1513 } |
| 1514 | 1514 |
| 1515 | 1515 |
| 1516 } } // namespace v8::internal | 1516 } } // namespace v8::internal |
| OLD | NEW |