| OLD | NEW |
| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 invoke_weak_callbacks(false), | 267 invoke_weak_callbacks(false), |
| 268 omit_quit(false), | 268 omit_quit(false), |
| 269 stress_opt(false), | 269 stress_opt(false), |
| 270 stress_deopt(false), | 270 stress_deopt(false), |
| 271 stress_runs(1), | 271 stress_runs(1), |
| 272 interactive_shell(false), | 272 interactive_shell(false), |
| 273 test_shell(false), | 273 test_shell(false), |
| 274 dump_heap_constants(false), | 274 dump_heap_constants(false), |
| 275 expected_to_throw(false), | 275 expected_to_throw(false), |
| 276 mock_arraybuffer_allocator(false), | 276 mock_arraybuffer_allocator(false), |
| 277 enable_inspector(false), |
| 277 num_isolates(1), | 278 num_isolates(1), |
| 278 compile_options(v8::ScriptCompiler::kNoCompileOptions), | 279 compile_options(v8::ScriptCompiler::kNoCompileOptions), |
| 279 isolate_sources(NULL), | 280 isolate_sources(NULL), |
| 280 icu_data_file(NULL), | 281 icu_data_file(NULL), |
| 281 natives_blob(NULL), | 282 natives_blob(NULL), |
| 282 snapshot_blob(NULL), | 283 snapshot_blob(NULL), |
| 283 trace_enabled(false), | 284 trace_enabled(false), |
| 284 trace_config(NULL) {} | 285 trace_config(NULL) {} |
| 285 | 286 |
| 286 ~ShellOptions() { | 287 ~ShellOptions() { |
| 287 delete[] isolate_sources; | 288 delete[] isolate_sources; |
| 288 } | 289 } |
| 289 | 290 |
| 290 bool use_interactive_shell() { | 291 bool use_interactive_shell() { |
| 291 return (interactive_shell || !script_executed) && !test_shell; | 292 return (interactive_shell || !script_executed) && !test_shell; |
| 292 } | 293 } |
| 293 | 294 |
| 294 bool script_executed; | 295 bool script_executed; |
| 295 bool send_idle_notification; | 296 bool send_idle_notification; |
| 296 bool invoke_weak_callbacks; | 297 bool invoke_weak_callbacks; |
| 297 bool omit_quit; | 298 bool omit_quit; |
| 298 bool stress_opt; | 299 bool stress_opt; |
| 299 bool stress_deopt; | 300 bool stress_deopt; |
| 300 int stress_runs; | 301 int stress_runs; |
| 301 bool interactive_shell; | 302 bool interactive_shell; |
| 302 bool test_shell; | 303 bool test_shell; |
| 303 bool dump_heap_constants; | 304 bool dump_heap_constants; |
| 304 bool expected_to_throw; | 305 bool expected_to_throw; |
| 305 bool mock_arraybuffer_allocator; | 306 bool mock_arraybuffer_allocator; |
| 307 bool enable_inspector; |
| 306 int num_isolates; | 308 int num_isolates; |
| 307 v8::ScriptCompiler::CompileOptions compile_options; | 309 v8::ScriptCompiler::CompileOptions compile_options; |
| 308 SourceGroup* isolate_sources; | 310 SourceGroup* isolate_sources; |
| 309 const char* icu_data_file; | 311 const char* icu_data_file; |
| 310 const char* natives_blob; | 312 const char* natives_blob; |
| 311 const char* snapshot_blob; | 313 const char* snapshot_blob; |
| 312 bool trace_enabled; | 314 bool trace_enabled; |
| 313 const char* trace_config; | 315 const char* trace_config; |
| 314 }; | 316 }; |
| 315 | 317 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 const v8::FunctionCallbackInfo<v8::Value>& args); | 458 const v8::FunctionCallbackInfo<v8::Value>& args); |
| 457 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, | 459 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, |
| 458 const std::string& file_name); | 460 const std::string& file_name); |
| 459 }; | 461 }; |
| 460 | 462 |
| 461 | 463 |
| 462 } // namespace v8 | 464 } // namespace v8 |
| 463 | 465 |
| 464 | 466 |
| 465 #endif // V8_D8_H_ | 467 #endif // V8_D8_H_ |
| OLD | NEW |