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

Side by Side Diff: src/d8.h

Issue 2854173002: Make in process stack dumping optional. (Closed)
Patch Set: Address comments Created 3 years, 7 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 | « include/libplatform/libplatform.h ('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 #include <iterator> 8 #include <iterator>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 mock_arraybuffer_allocator(false), 296 mock_arraybuffer_allocator(false),
297 enable_inspector(false), 297 enable_inspector(false),
298 num_isolates(1), 298 num_isolates(1),
299 compile_options(v8::ScriptCompiler::kNoCompileOptions), 299 compile_options(v8::ScriptCompiler::kNoCompileOptions),
300 isolate_sources(NULL), 300 isolate_sources(NULL),
301 icu_data_file(NULL), 301 icu_data_file(NULL),
302 natives_blob(NULL), 302 natives_blob(NULL),
303 snapshot_blob(NULL), 303 snapshot_blob(NULL),
304 trace_enabled(false), 304 trace_enabled(false),
305 trace_config(NULL), 305 trace_config(NULL),
306 lcov_file(NULL) {} 306 lcov_file(NULL),
307 disable_in_process_stack_traces(false) {}
307 308
308 ~ShellOptions() { 309 ~ShellOptions() {
309 delete[] isolate_sources; 310 delete[] isolate_sources;
310 } 311 }
311 312
312 bool use_interactive_shell() { 313 bool use_interactive_shell() {
313 return (interactive_shell || !script_executed) && !test_shell; 314 return (interactive_shell || !script_executed) && !test_shell;
314 } 315 }
315 316
316 bool script_executed; 317 bool script_executed;
(...skipping 10 matching lines...) Expand all
327 bool enable_inspector; 328 bool enable_inspector;
328 int num_isolates; 329 int num_isolates;
329 v8::ScriptCompiler::CompileOptions compile_options; 330 v8::ScriptCompiler::CompileOptions compile_options;
330 SourceGroup* isolate_sources; 331 SourceGroup* isolate_sources;
331 const char* icu_data_file; 332 const char* icu_data_file;
332 const char* natives_blob; 333 const char* natives_blob;
333 const char* snapshot_blob; 334 const char* snapshot_blob;
334 bool trace_enabled; 335 bool trace_enabled;
335 const char* trace_config; 336 const char* trace_config;
336 const char* lcov_file; 337 const char* lcov_file;
338 bool disable_in_process_stack_traces;
337 }; 339 };
338 340
339 class Shell : public i::AllStatic { 341 class Shell : public i::AllStatic {
340 public: 342 public:
341 static MaybeLocal<Script> CompileString( 343 static MaybeLocal<Script> CompileString(
342 Isolate* isolate, Local<String> source, Local<Value> name, 344 Isolate* isolate, Local<String> source, Local<Value> name,
343 v8::ScriptCompiler::CompileOptions compile_options); 345 v8::ScriptCompiler::CompileOptions compile_options);
344 static bool ExecuteString(Isolate* isolate, Local<String> source, 346 static bool ExecuteString(Isolate* isolate, Local<String> source,
345 Local<Value> name, bool print_result, 347 Local<Value> name, bool print_result,
346 bool report_exceptions); 348 bool report_exceptions);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 int index); 489 int index);
488 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, 490 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context,
489 const std::string& file_name); 491 const std::string& file_name);
490 }; 492 };
491 493
492 494
493 } // namespace v8 495 } // namespace v8
494 496
495 497
496 #endif // V8_D8_H_ 498 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « include/libplatform/libplatform.h ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698