| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 14342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14353 static Handle<NameDictionary> NameDictionaryAdd(Handle<NameDictionary> dict, | 14353 static Handle<NameDictionary> NameDictionaryAdd(Handle<NameDictionary> dict, |
| 14354 Handle<Name> name, | 14354 Handle<Name> name, |
| 14355 Handle<Object> value, | 14355 Handle<Object> value, |
| 14356 PropertyDetails details) { | 14356 PropertyDetails details) { |
| 14357 CALL_HEAP_FUNCTION(dict->GetIsolate(), | 14357 CALL_HEAP_FUNCTION(dict->GetIsolate(), |
| 14358 dict->Add(*name, *value, details), | 14358 dict->Add(*name, *value, details), |
| 14359 NameDictionary); | 14359 NameDictionary); |
| 14360 } | 14360 } |
| 14361 | 14361 |
| 14362 | 14362 |
| 14363 Handle<PropertyCell> GlobalObject::EnsurePropertyCell( | 14363 Handle<PropertyCell> JSGlobalObject::EnsurePropertyCell( |
| 14364 Handle<GlobalObject> global, | 14364 Handle<JSGlobalObject> global, |
| 14365 Handle<Name> name) { | 14365 Handle<Name> name) { |
| 14366 ASSERT(!global->HasFastProperties()); | 14366 ASSERT(!global->HasFastProperties()); |
| 14367 int entry = global->property_dictionary()->FindEntry(*name); | 14367 int entry = global->property_dictionary()->FindEntry(*name); |
| 14368 if (entry == NameDictionary::kNotFound) { | 14368 if (entry == NameDictionary::kNotFound) { |
| 14369 Isolate* isolate = global->GetIsolate(); | 14369 Isolate* isolate = global->GetIsolate(); |
| 14370 Handle<PropertyCell> cell = isolate->factory()->NewPropertyCell( | 14370 Handle<PropertyCell> cell = isolate->factory()->NewPropertyCell( |
| 14371 isolate->factory()->the_hole_value()); | 14371 isolate->factory()->the_hole_value()); |
| 14372 PropertyDetails details(NONE, NORMAL, 0); | 14372 PropertyDetails details(NONE, NORMAL, 0); |
| 14373 details = details.AsDeleted(); | 14373 details = details.AsDeleted(); |
| 14374 Handle<NameDictionary> dictionary = NameDictionaryAdd( | 14374 Handle<NameDictionary> dictionary = NameDictionaryAdd( |
| (...skipping 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15977 #define ERROR_MESSAGES_TEXTS(C, T) T, | 15977 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 15978 static const char* error_messages_[] = { | 15978 static const char* error_messages_[] = { |
| 15979 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 15979 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 15980 }; | 15980 }; |
| 15981 #undef ERROR_MESSAGES_TEXTS | 15981 #undef ERROR_MESSAGES_TEXTS |
| 15982 return error_messages_[reason]; | 15982 return error_messages_[reason]; |
| 15983 } | 15983 } |
| 15984 | 15984 |
| 15985 | 15985 |
| 15986 } } // namespace v8::internal | 15986 } } // namespace v8::internal |
| OLD | NEW |