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

Side by Side Diff: src/isolate.h

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/flag-definitions.h ('k') | src/isolate.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 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 #ifndef V8_ISOLATE_H_ 5 #ifndef V8_ISOLATE_H_
6 #define V8_ISOLATE_H_ 6 #define V8_ISOLATE_H_
7 7
8 #include "include/v8-debug.h" 8 #include "include/v8-debug.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); 1102 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback);
1103 void CountUsage(v8::Isolate::UseCounterFeature feature); 1103 void CountUsage(v8::Isolate::UseCounterFeature feature);
1104 1104
1105 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); 1105 BasicBlockProfiler* GetOrCreateBasicBlockProfiler();
1106 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } 1106 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; }
1107 1107
1108 static Isolate* NewForTesting() { return new Isolate(false); } 1108 static Isolate* NewForTesting() { return new Isolate(false); }
1109 1109
1110 std::string GetTurboCfgFileName(); 1110 std::string GetTurboCfgFileName();
1111 1111
1112 #if TRACE_MAPS
1113 int GetNextUniqueSharedFunctionInfoId() { return next_unique_sfi_id_++; }
1114 #endif
1115
1112 private: 1116 private:
1113 explicit Isolate(bool enable_serializer); 1117 explicit Isolate(bool enable_serializer);
1114 1118
1115 friend struct GlobalState; 1119 friend struct GlobalState;
1116 friend struct InitializeGlobalState; 1120 friend struct InitializeGlobalState;
1117 1121
1118 // These fields are accessed through the API, offsets must be kept in sync 1122 // These fields are accessed through the API, offsets must be kept in sync
1119 // with v8::internal::Internals (in include/v8.h) constants. This is also 1123 // with v8::internal::Internals (in include/v8.h) constants. This is also
1120 // verified in Isolate::Init() using runtime checks. 1124 // verified in Isolate::Init() using runtime checks.
1121 void* embedder_data_[Internals::kNumIsolateDataSlots]; 1125 void* embedder_data_[Internals::kNumIsolateDataSlots];
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 #endif 1308 #endif
1305 1309
1306 DeferredHandles* deferred_handles_head_; 1310 DeferredHandles* deferred_handles_head_;
1307 OptimizingCompilerThread* optimizing_compiler_thread_; 1311 OptimizingCompilerThread* optimizing_compiler_thread_;
1308 1312
1309 // Counts deopt points if deopt_every_n_times is enabled. 1313 // Counts deopt points if deopt_every_n_times is enabled.
1310 unsigned int stress_deopt_count_; 1314 unsigned int stress_deopt_count_;
1311 1315
1312 int next_optimization_id_; 1316 int next_optimization_id_;
1313 1317
1318 #if TRACE_MAPS
1319 int next_unique_sfi_id_;
1320 #endif
1321
1314 // List of callbacks when a Call completes. 1322 // List of callbacks when a Call completes.
1315 List<CallCompletedCallback> call_completed_callbacks_; 1323 List<CallCompletedCallback> call_completed_callbacks_;
1316 1324
1317 v8::Isolate::UseCounterCallback use_counter_callback_; 1325 v8::Isolate::UseCounterCallback use_counter_callback_;
1318 BasicBlockProfiler* basic_block_profiler_; 1326 BasicBlockProfiler* basic_block_profiler_;
1319 1327
1320 friend class ExecutionAccess; 1328 friend class ExecutionAccess;
1321 friend class HandleScopeImplementer; 1329 friend class HandleScopeImplementer;
1322 friend class IsolateInitializer; 1330 friend class IsolateInitializer;
1323 friend class OptimizingCompilerThread; 1331 friend class OptimizingCompilerThread;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 } 1546 }
1539 1547
1540 EmbeddedVector<char, 128> filename_; 1548 EmbeddedVector<char, 128> filename_;
1541 FILE* file_; 1549 FILE* file_;
1542 int scope_depth_; 1550 int scope_depth_;
1543 }; 1551 };
1544 1552
1545 } } // namespace v8::internal 1553 } } // namespace v8::internal
1546 1554
1547 #endif // V8_ISOLATE_H_ 1555 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698