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

Side by Side Diff: src/heap.cc

Issue 16337005: Deprecate FACTORY helper macro. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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
« no previous file with comments | « src/execution.cc ('k') | src/hydrogen-instructions.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 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 2953 matching lines...) Expand 10 before | Expand all | Expand 10 after
2964 if (!maybe_obj->ToObject(&obj)) return false; 2964 if (!maybe_obj->ToObject(&obj)) return false;
2965 } 2965 }
2966 set_frozen_symbol(Symbol::cast(obj)); 2966 set_frozen_symbol(Symbol::cast(obj));
2967 2967
2968 { MaybeObject* maybe_obj = SeededNumberDictionary::Allocate(this, 0, TENURED); 2968 { MaybeObject* maybe_obj = SeededNumberDictionary::Allocate(this, 0, TENURED);
2969 if (!maybe_obj->ToObject(&obj)) return false; 2969 if (!maybe_obj->ToObject(&obj)) return false;
2970 } 2970 }
2971 SeededNumberDictionary::cast(obj)->set_requires_slow_elements(); 2971 SeededNumberDictionary::cast(obj)->set_requires_slow_elements();
2972 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj)); 2972 set_empty_slow_element_dictionary(SeededNumberDictionary::cast(obj));
2973 2973
2974 // Handling of script id generation is in FACTORY->NewScript. 2974 // Handling of script id generation is in Factory::NewScript.
2975 set_last_script_id(undefined_value()); 2975 set_last_script_id(undefined_value());
2976 2976
2977 // Initialize keyed lookup cache. 2977 // Initialize keyed lookup cache.
2978 isolate_->keyed_lookup_cache()->Clear(); 2978 isolate_->keyed_lookup_cache()->Clear();
2979 2979
2980 // Initialize context slot cache. 2980 // Initialize context slot cache.
2981 isolate_->context_slot_cache()->Clear(); 2981 isolate_->context_slot_cache()->Clear();
2982 2982
2983 // Initialize descriptor cache. 2983 // Initialize descriptor cache.
2984 isolate_->descriptor_lookup_cache()->Clear(); 2984 isolate_->descriptor_lookup_cache()->Clear();
(...skipping 4962 matching lines...) Expand 10 before | Expand all | Expand 10 after
7947 if (FLAG_parallel_recompilation) { 7947 if (FLAG_parallel_recompilation) {
7948 heap_->relocation_mutex_->Lock(); 7948 heap_->relocation_mutex_->Lock();
7949 #ifdef DEBUG 7949 #ifdef DEBUG
7950 heap_->relocation_mutex_locked_by_optimizer_thread_ = 7950 heap_->relocation_mutex_locked_by_optimizer_thread_ =
7951 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 7951 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
7952 #endif // DEBUG 7952 #endif // DEBUG
7953 } 7953 }
7954 } 7954 }
7955 7955
7956 } } // namespace v8::internal 7956 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698