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

Side by Side Diff: src/d8.h

Issue 2137013006: [Tracing] V8 Tracing Controller (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add Setters for TraceConfig categories Created 4 years, 4 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
« no previous file with comments | « src/DEPS ('k') | src/d8.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_D8_H_ 5 #ifndef V8_D8_H_
6 #define V8_D8_H_ 6 #define V8_D8_H_
7 7
8 #ifndef V8_SHARED 8 #ifndef V8_SHARED
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/base/hashmap.h" 10 #include "src/base/hashmap.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 interactive_shell(false), 283 interactive_shell(false),
284 test_shell(false), 284 test_shell(false),
285 dump_heap_constants(false), 285 dump_heap_constants(false),
286 expected_to_throw(false), 286 expected_to_throw(false),
287 mock_arraybuffer_allocator(false), 287 mock_arraybuffer_allocator(false),
288 num_isolates(1), 288 num_isolates(1),
289 compile_options(v8::ScriptCompiler::kNoCompileOptions), 289 compile_options(v8::ScriptCompiler::kNoCompileOptions),
290 isolate_sources(NULL), 290 isolate_sources(NULL),
291 icu_data_file(NULL), 291 icu_data_file(NULL),
292 natives_blob(NULL), 292 natives_blob(NULL),
293 snapshot_blob(NULL) {} 293 snapshot_blob(NULL),
294 trace_enabled(false) {}
294 295
295 ~ShellOptions() { 296 ~ShellOptions() {
296 delete[] isolate_sources; 297 delete[] isolate_sources;
297 } 298 }
298 299
299 bool use_interactive_shell() { 300 bool use_interactive_shell() {
300 return (interactive_shell || !script_executed) && !test_shell; 301 return (interactive_shell || !script_executed) && !test_shell;
301 } 302 }
302 303
303 bool script_executed; 304 bool script_executed;
304 bool send_idle_notification; 305 bool send_idle_notification;
305 bool invoke_weak_callbacks; 306 bool invoke_weak_callbacks;
306 bool omit_quit; 307 bool omit_quit;
307 bool stress_opt; 308 bool stress_opt;
308 bool stress_deopt; 309 bool stress_deopt;
309 int stress_runs; 310 int stress_runs;
310 bool interactive_shell; 311 bool interactive_shell;
311 bool test_shell; 312 bool test_shell;
312 bool dump_heap_constants; 313 bool dump_heap_constants;
313 bool expected_to_throw; 314 bool expected_to_throw;
314 bool mock_arraybuffer_allocator; 315 bool mock_arraybuffer_allocator;
315 int num_isolates; 316 int num_isolates;
316 v8::ScriptCompiler::CompileOptions compile_options; 317 v8::ScriptCompiler::CompileOptions compile_options;
317 SourceGroup* isolate_sources; 318 SourceGroup* isolate_sources;
318 const char* icu_data_file; 319 const char* icu_data_file;
319 const char* natives_blob; 320 const char* natives_blob;
320 const char* snapshot_blob; 321 const char* snapshot_blob;
322 bool trace_enabled;
323 const char* trace_config;
321 }; 324 };
322 325
323 #ifdef V8_SHARED 326 #ifdef V8_SHARED
324 class Shell { 327 class Shell {
325 #else 328 #else
326 class Shell : public i::AllStatic { 329 class Shell : public i::AllStatic {
327 #endif // V8_SHARED 330 #endif // V8_SHARED
328 331
329 public: 332 public:
330 enum SourceType { SCRIPT, MODULE }; 333 enum SourceType { SCRIPT, MODULE };
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 476 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
474 static MaybeLocal<Context> CreateRealm( 477 static MaybeLocal<Context> CreateRealm(
475 const v8::FunctionCallbackInfo<v8::Value>& args); 478 const v8::FunctionCallbackInfo<v8::Value>& args);
476 }; 479 };
477 480
478 481
479 } // namespace v8 482 } // namespace v8
480 483
481 484
482 #endif // V8_D8_H_ 485 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « src/DEPS ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698