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

Side by Side Diff: src/bootstrapper.cc

Issue 8822019: Reapply r10158: Distinguish weak references in heap snapshots, group GC roots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years 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 | « include/v8-profiler.h ('k') | src/heap.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 Handle<Map> strict_mode_function_instance_map_writable_prototype_; 292 Handle<Map> strict_mode_function_instance_map_writable_prototype_;
293 Handle<JSFunction> throw_type_error_function; 293 Handle<JSFunction> throw_type_error_function;
294 294
295 BootstrapperActive active_; 295 BootstrapperActive active_;
296 friend class Bootstrapper; 296 friend class Bootstrapper;
297 }; 297 };
298 298
299 299
300 void Bootstrapper::Iterate(ObjectVisitor* v) { 300 void Bootstrapper::Iterate(ObjectVisitor* v) {
301 extensions_cache_.Iterate(v); 301 extensions_cache_.Iterate(v);
302 v->Synchronize("Extensions"); 302 v->Synchronize(VisitorSynchronization::kExtensions);
303 } 303 }
304 304
305 305
306 Handle<Context> Bootstrapper::CreateEnvironment( 306 Handle<Context> Bootstrapper::CreateEnvironment(
307 Isolate* isolate, 307 Isolate* isolate,
308 Handle<Object> global_object, 308 Handle<Object> global_object,
309 v8::Handle<v8::ObjectTemplate> global_template, 309 v8::Handle<v8::ObjectTemplate> global_template,
310 v8::ExtensionConfiguration* extensions) { 310 v8::ExtensionConfiguration* extensions) {
311 HandleScope scope; 311 HandleScope scope;
312 Handle<Context> env; 312 Handle<Context> env;
(...skipping 2042 matching lines...) Expand 10 before | Expand all | Expand 10 after
2355 return from + sizeof(NestingCounterType); 2355 return from + sizeof(NestingCounterType);
2356 } 2356 }
2357 2357
2358 2358
2359 // Called when the top-level V8 mutex is destroyed. 2359 // Called when the top-level V8 mutex is destroyed.
2360 void Bootstrapper::FreeThreadResources() { 2360 void Bootstrapper::FreeThreadResources() {
2361 ASSERT(!IsActive()); 2361 ASSERT(!IsActive());
2362 } 2362 }
2363 2363
2364 } } // namespace v8::internal 2364 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8-profiler.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698