Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/objects.cc

Issue 66723020: Merged r17459, r17462, r17474 into 3.21 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.21
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/stub-cache.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14501 matching lines...) Expand 10 before | Expand all | Expand 10 after
14512 static Handle<NameDictionary> NameDictionaryAdd(Handle<NameDictionary> dict, 14512 static Handle<NameDictionary> NameDictionaryAdd(Handle<NameDictionary> dict,
14513 Handle<Name> name, 14513 Handle<Name> name,
14514 Handle<Object> value, 14514 Handle<Object> value,
14515 PropertyDetails details) { 14515 PropertyDetails details) {
14516 CALL_HEAP_FUNCTION(dict->GetIsolate(), 14516 CALL_HEAP_FUNCTION(dict->GetIsolate(),
14517 dict->Add(*name, *value, details), 14517 dict->Add(*name, *value, details),
14518 NameDictionary); 14518 NameDictionary);
14519 } 14519 }
14520 14520
14521 14521
14522 Handle<PropertyCell> GlobalObject::EnsurePropertyCell( 14522 Handle<PropertyCell> JSGlobalObject::EnsurePropertyCell(
14523 Handle<GlobalObject> global, 14523 Handle<JSGlobalObject> global,
14524 Handle<Name> name) { 14524 Handle<Name> name) {
14525 ASSERT(!global->HasFastProperties()); 14525 ASSERT(!global->HasFastProperties());
14526 int entry = global->property_dictionary()->FindEntry(*name); 14526 int entry = global->property_dictionary()->FindEntry(*name);
14527 if (entry == NameDictionary::kNotFound) { 14527 if (entry == NameDictionary::kNotFound) {
14528 Isolate* isolate = global->GetIsolate(); 14528 Isolate* isolate = global->GetIsolate();
14529 Handle<PropertyCell> cell = isolate->factory()->NewPropertyCell( 14529 Handle<PropertyCell> cell = isolate->factory()->NewPropertyCell(
14530 isolate->factory()->the_hole_value()); 14530 isolate->factory()->the_hole_value());
14531 PropertyDetails details(NONE, NORMAL, 0); 14531 PropertyDetails details(NONE, NORMAL, 0);
14532 details = details.AsDeleted(); 14532 details = details.AsDeleted();
14533 Handle<NameDictionary> dictionary = NameDictionaryAdd( 14533 Handle<NameDictionary> dictionary = NameDictionaryAdd(
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
16138 #define ERROR_MESSAGES_TEXTS(C, T) T, 16138 #define ERROR_MESSAGES_TEXTS(C, T) T,
16139 static const char* error_messages_[] = { 16139 static const char* error_messages_[] = {
16140 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16140 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16141 }; 16141 };
16142 #undef ERROR_MESSAGES_TEXTS 16142 #undef ERROR_MESSAGES_TEXTS
16143 return error_messages_[reason]; 16143 return error_messages_[reason];
16144 } 16144 }
16145 16145
16146 16146
16147 } } // namespace v8::internal 16147 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698