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/heap.cc

Issue 20299002: Put object templates of the i18n extension on the heap object. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 months 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
« src/extensions/i18n/i18n-utils.cc ('K') | « src/heap.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3195 matching lines...) Expand 10 before | Expand all | Expand 10 after
3206 if (!maybe_obj->ToObject(&obj)) return false; 3206 if (!maybe_obj->ToObject(&obj)) return false;
3207 } 3207 }
3208 SeededNumberDictionary::cast(obj)->set_requires_slow_elements(); 3208 SeededNumberDictionary::cast(obj)->set_requires_slow_elements();
3209 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj)); 3209 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj));
3210 3210
3211 { MaybeObject* maybe_obj = AllocateSymbol(); 3211 { MaybeObject* maybe_obj = AllocateSymbol();
3212 if (!maybe_obj->ToObject(&obj)) return false; 3212 if (!maybe_obj->ToObject(&obj)) return false;
3213 } 3213 }
3214 set_observed_symbol(Symbol::cast(obj)); 3214 set_observed_symbol(Symbol::cast(obj));
3215 3215
3216 set_i18n_template_one(the_hole_value());
3217 set_i18n_template_two(the_hole_value());
3218
3216 // Handling of script id generation is in Factory::NewScript. 3219 // Handling of script id generation is in Factory::NewScript.
3217 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId)); 3220 set_last_script_id(Smi::FromInt(v8::Script::kNoScriptId));
3218 3221
3219 // Initialize keyed lookup cache. 3222 // Initialize keyed lookup cache.
3220 isolate_->keyed_lookup_cache()->Clear(); 3223 isolate_->keyed_lookup_cache()->Clear();
3221 3224
3222 // Initialize context slot cache. 3225 // Initialize context slot cache.
3223 isolate_->context_slot_cache()->Clear(); 3226 isolate_->context_slot_cache()->Clear();
3224 3227
3225 // Initialize descriptor cache. 3228 // Initialize descriptor cache.
(...skipping 4800 matching lines...) Expand 10 before | Expand all | Expand 10 after
8026 if (FLAG_parallel_recompilation) { 8029 if (FLAG_parallel_recompilation) {
8027 heap_->relocation_mutex_->Lock(); 8030 heap_->relocation_mutex_->Lock();
8028 #ifdef DEBUG 8031 #ifdef DEBUG
8029 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8032 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8030 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8033 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8031 #endif // DEBUG 8034 #endif // DEBUG
8032 } 8035 }
8033 } 8036 }
8034 8037
8035 } } // namespace v8::internal 8038 } } // namespace v8::internal
OLDNEW
« src/extensions/i18n/i18n-utils.cc ('K') | « src/heap.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698