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

Side by Side Diff: src/d8.h

Issue 2697723004: Make regress-crbug-514081 less flaky by having max serialization size (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')
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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 expected_to_throw(false), 297 expected_to_throw(false),
298 mock_arraybuffer_allocator(false), 298 mock_arraybuffer_allocator(false),
299 enable_inspector(false), 299 enable_inspector(false),
300 num_isolates(1), 300 num_isolates(1),
301 compile_options(v8::ScriptCompiler::kNoCompileOptions), 301 compile_options(v8::ScriptCompiler::kNoCompileOptions),
302 isolate_sources(NULL), 302 isolate_sources(NULL),
303 icu_data_file(NULL), 303 icu_data_file(NULL),
304 natives_blob(NULL), 304 natives_blob(NULL),
305 snapshot_blob(NULL), 305 snapshot_blob(NULL),
306 trace_enabled(false), 306 trace_enabled(false),
307 trace_config(NULL) {} 307 trace_config(NULL),
308 max_serializer_memory_usage(0) {}
308 309
309 ~ShellOptions() { 310 ~ShellOptions() {
310 delete[] isolate_sources; 311 delete[] isolate_sources;
311 } 312 }
312 313
313 bool use_interactive_shell() { 314 bool use_interactive_shell() {
314 return (interactive_shell || !script_executed) && !test_shell; 315 return (interactive_shell || !script_executed) && !test_shell;
315 } 316 }
316 317
317 bool script_executed; 318 bool script_executed;
(...skipping 10 matching lines...) Expand all
328 bool mock_arraybuffer_allocator; 329 bool mock_arraybuffer_allocator;
329 bool enable_inspector; 330 bool enable_inspector;
330 int num_isolates; 331 int num_isolates;
331 v8::ScriptCompiler::CompileOptions compile_options; 332 v8::ScriptCompiler::CompileOptions compile_options;
332 SourceGroup* isolate_sources; 333 SourceGroup* isolate_sources;
333 const char* icu_data_file; 334 const char* icu_data_file;
334 const char* natives_blob; 335 const char* natives_blob;
335 const char* snapshot_blob; 336 const char* snapshot_blob;
336 bool trace_enabled; 337 bool trace_enabled;
337 const char* trace_config; 338 const char* trace_config;
339 size_t max_serializer_memory_usage;
338 }; 340 };
339 341
340 class Shell : public i::AllStatic { 342 class Shell : public i::AllStatic {
341 public: 343 public:
342 static MaybeLocal<Script> CompileString( 344 static MaybeLocal<Script> CompileString(
343 Isolate* isolate, Local<String> source, Local<Value> name, 345 Isolate* isolate, Local<String> source, Local<Value> name,
344 v8::ScriptCompiler::CompileOptions compile_options); 346 v8::ScriptCompiler::CompileOptions compile_options);
345 static bool ExecuteString(Isolate* isolate, Local<String> source, 347 static bool ExecuteString(Isolate* isolate, Local<String> source,
346 Local<Value> name, bool print_result, 348 Local<Value> name, bool print_result,
347 bool report_exceptions); 349 bool report_exceptions);
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 const v8::FunctionCallbackInfo<v8::Value>& args); 476 const v8::FunctionCallbackInfo<v8::Value>& args);
475 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context, 477 static MaybeLocal<Module> FetchModuleTree(v8::Local<v8::Context> context,
476 const std::string& file_name); 478 const std::string& file_name);
477 }; 479 };
478 480
479 481
480 } // namespace v8 482 } // namespace v8
481 483
482 484
483 #endif // V8_D8_H_ 485 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | src/d8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698