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

Side by Side Diff: src/d8.h

Issue 1101683002: Add an --omit-quit flag to d8 for Emscripten's sake. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revert SKIP Created 5 years, 8 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') | 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/hashmap.h" 10 #include "src/hashmap.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 }; 189 };
190 190
191 191
192 class ShellOptions { 192 class ShellOptions {
193 public: 193 public:
194 ShellOptions() 194 ShellOptions()
195 : script_executed(false), 195 : script_executed(false),
196 last_run(true), 196 last_run(true),
197 send_idle_notification(false), 197 send_idle_notification(false),
198 invoke_weak_callbacks(false), 198 invoke_weak_callbacks(false),
199 omit_quit(false),
199 stress_opt(false), 200 stress_opt(false),
200 stress_deopt(false), 201 stress_deopt(false),
201 interactive_shell(false), 202 interactive_shell(false),
202 test_shell(false), 203 test_shell(false),
203 dump_heap_constants(false), 204 dump_heap_constants(false),
204 expected_to_throw(false), 205 expected_to_throw(false),
205 mock_arraybuffer_allocator(false), 206 mock_arraybuffer_allocator(false),
206 num_isolates(1), 207 num_isolates(1),
207 compile_options(v8::ScriptCompiler::kNoCompileOptions), 208 compile_options(v8::ScriptCompiler::kNoCompileOptions),
208 isolate_sources(NULL), 209 isolate_sources(NULL),
209 icu_data_file(NULL), 210 icu_data_file(NULL),
210 natives_blob(NULL), 211 natives_blob(NULL),
211 snapshot_blob(NULL) {} 212 snapshot_blob(NULL) {}
212 213
213 ~ShellOptions() { 214 ~ShellOptions() {
214 delete[] isolate_sources; 215 delete[] isolate_sources;
215 } 216 }
216 217
217 bool use_interactive_shell() { 218 bool use_interactive_shell() {
218 return (interactive_shell || !script_executed) && !test_shell; 219 return (interactive_shell || !script_executed) && !test_shell;
219 } 220 }
220 221
221 bool script_executed; 222 bool script_executed;
222 bool last_run; 223 bool last_run;
223 bool send_idle_notification; 224 bool send_idle_notification;
224 bool invoke_weak_callbacks; 225 bool invoke_weak_callbacks;
226 bool omit_quit;
225 bool stress_opt; 227 bool stress_opt;
226 bool stress_deopt; 228 bool stress_deopt;
227 bool interactive_shell; 229 bool interactive_shell;
228 bool test_shell; 230 bool test_shell;
229 bool dump_heap_constants; 231 bool dump_heap_constants;
230 bool expected_to_throw; 232 bool expected_to_throw;
231 bool mock_arraybuffer_allocator; 233 bool mock_arraybuffer_allocator;
232 int num_isolates; 234 int num_isolates;
233 v8::ScriptCompiler::CompileOptions compile_options; 235 v8::ScriptCompiler::CompileOptions compile_options;
234 SourceGroup* isolate_sources; 236 SourceGroup* isolate_sources;
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate); 387 static Handle<ObjectTemplate> CreateGlobalTemplate(Isolate* isolate);
386 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback); 388 static Handle<FunctionTemplate> CreateArrayBufferTemplate(FunctionCallback);
387 static Handle<FunctionTemplate> CreateArrayTemplate(FunctionCallback); 389 static Handle<FunctionTemplate> CreateArrayTemplate(FunctionCallback);
388 }; 390 };
389 391
390 392
391 } // namespace v8 393 } // namespace v8
392 394
393 395
394 #endif // V8_D8_H_ 396 #endif // V8_D8_H_
OLDNEW
« no previous file with comments | « no previous file | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698