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 #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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 trace_enabled(false), |
| 295 trace_config(NULL) {} |
295 | 296 |
296 ~ShellOptions() { | 297 ~ShellOptions() { |
297 delete[] isolate_sources; | 298 delete[] isolate_sources; |
298 } | 299 } |
299 | 300 |
300 bool use_interactive_shell() { | 301 bool use_interactive_shell() { |
301 return (interactive_shell || !script_executed) && !test_shell; | 302 return (interactive_shell || !script_executed) && !test_shell; |
302 } | 303 } |
303 | 304 |
304 bool script_executed; | 305 bool script_executed; |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); | 477 static Local<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); |
477 static MaybeLocal<Context> CreateRealm( | 478 static MaybeLocal<Context> CreateRealm( |
478 const v8::FunctionCallbackInfo<v8::Value>& args); | 479 const v8::FunctionCallbackInfo<v8::Value>& args); |
479 }; | 480 }; |
480 | 481 |
481 | 482 |
482 } // namespace v8 | 483 } // namespace v8 |
483 | 484 |
484 | 485 |
485 #endif // V8_D8_H_ | 486 #endif // V8_D8_H_ |
OLD | NEW |