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

Side by Side Diff: src/isolate.cc

Issue 694533003: Add FLAG_trace_maps (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 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/isolate.h ('k') | src/objects.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1643 serializer_enabled_(enable_serializer), 1643 serializer_enabled_(enable_serializer),
1644 has_fatal_error_(false), 1644 has_fatal_error_(false),
1645 initialized_from_snapshot_(false), 1645 initialized_from_snapshot_(false),
1646 cpu_profiler_(NULL), 1646 cpu_profiler_(NULL),
1647 heap_profiler_(NULL), 1647 heap_profiler_(NULL),
1648 function_entry_hook_(NULL), 1648 function_entry_hook_(NULL),
1649 deferred_handles_head_(NULL), 1649 deferred_handles_head_(NULL),
1650 optimizing_compiler_thread_(NULL), 1650 optimizing_compiler_thread_(NULL),
1651 stress_deopt_count_(0), 1651 stress_deopt_count_(0),
1652 next_optimization_id_(0), 1652 next_optimization_id_(0),
1653 #if TRACE_MAPS
1654 next_unique_sfi_id_(0),
1655 #endif
1653 use_counter_callback_(NULL), 1656 use_counter_callback_(NULL),
1654 basic_block_profiler_(NULL) { 1657 basic_block_profiler_(NULL) {
1655 { 1658 {
1656 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer()); 1659 base::LockGuard<base::Mutex> lock_guard(thread_data_table_mutex_.Pointer());
1657 CHECK(thread_data_table_); 1660 CHECK(thread_data_table_);
1658 } 1661 }
1659 id_ = base::NoBarrier_AtomicIncrement(&isolate_counter_, 1); 1662 id_ = base::NoBarrier_AtomicIncrement(&isolate_counter_, 1);
1660 TRACE_ISOLATE(constructor); 1663 TRACE_ISOLATE(constructor);
1661 1664
1662 memset(isolate_addresses_, 0, 1665 memset(isolate_addresses_, 0,
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 Handle<Map> map = factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize); 2352 Handle<Map> map = factory()->NewMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
2350 Handle<JSObject> registry = factory()->NewJSObjectFromMap(map); 2353 Handle<JSObject> registry = factory()->NewJSObjectFromMap(map);
2351 heap()->set_symbol_registry(*registry); 2354 heap()->set_symbol_registry(*registry);
2352 2355
2353 static const char* nested[] = { 2356 static const char* nested[] = {
2354 "for", "for_api", "for_intern", "keyFor", "private_api", "private_intern" 2357 "for", "for_api", "for_intern", "keyFor", "private_api", "private_intern"
2355 }; 2358 };
2356 for (unsigned i = 0; i < arraysize(nested); ++i) { 2359 for (unsigned i = 0; i < arraysize(nested); ++i) {
2357 Handle<String> name = factory()->InternalizeUtf8String(nested[i]); 2360 Handle<String> name = factory()->InternalizeUtf8String(nested[i]);
2358 Handle<JSObject> obj = factory()->NewJSObjectFromMap(map); 2361 Handle<JSObject> obj = factory()->NewJSObjectFromMap(map);
2359 JSObject::NormalizeProperties(obj, KEEP_INOBJECT_PROPERTIES, 8); 2362 JSObject::NormalizeProperties(obj, KEEP_INOBJECT_PROPERTIES, 8,
2363 "SetupSymbolRegistry");
2360 JSObject::SetProperty(registry, name, obj, STRICT).Assert(); 2364 JSObject::SetProperty(registry, name, obj, STRICT).Assert();
2361 } 2365 }
2362 } 2366 }
2363 return Handle<JSObject>::cast(factory()->symbol_registry()); 2367 return Handle<JSObject>::cast(factory()->symbol_registry());
2364 } 2368 }
2365 2369
2366 2370
2367 void Isolate::AddCallCompletedCallback(CallCompletedCallback callback) { 2371 void Isolate::AddCallCompletedCallback(CallCompletedCallback callback) {
2368 for (int i = 0; i < call_completed_callbacks_.length(); i++) { 2372 for (int i = 0; i < call_completed_callbacks_.length(); i++) {
2369 if (callback == call_completed_callbacks_.at(i)) return; 2373 if (callback == call_completed_callbacks_.at(i)) return;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2536 if (prev_ && prev_->Intercept(flag)) return true; 2540 if (prev_ && prev_->Intercept(flag)) return true;
2537 // Then check whether this scope intercepts. 2541 // Then check whether this scope intercepts.
2538 if ((flag & intercept_mask_)) { 2542 if ((flag & intercept_mask_)) {
2539 intercepted_flags_ |= flag; 2543 intercepted_flags_ |= flag;
2540 return true; 2544 return true;
2541 } 2545 }
2542 return false; 2546 return false;
2543 } 2547 }
2544 2548
2545 } } // namespace v8::internal 2549 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698