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

Side by Side Diff: src/d8.h

Issue 305553002: Fix d8's interactive shell. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« 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 "allocation.h" 9 #include "allocation.h"
10 #include "hashmap.h" 10 #include "hashmap.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 expected_to_throw(false), 206 expected_to_throw(false),
207 mock_arraybuffer_allocator(false), 207 mock_arraybuffer_allocator(false),
208 num_isolates(1), 208 num_isolates(1),
209 isolate_sources(NULL), 209 isolate_sources(NULL),
210 icu_data_file(NULL) { } 210 icu_data_file(NULL) { }
211 211
212 ~ShellOptions() { 212 ~ShellOptions() {
213 delete[] isolate_sources; 213 delete[] isolate_sources;
214 } 214 }
215 215
216 bool use_interactive_shell() {
217 return (interactive_shell || !script_executed) && !test_shell;
218 }
219
216 bool script_executed; 220 bool script_executed;
217 bool last_run; 221 bool last_run;
218 bool send_idle_notification; 222 bool send_idle_notification;
219 bool stress_opt; 223 bool stress_opt;
220 bool stress_deopt; 224 bool stress_deopt;
221 bool interactive_shell; 225 bool interactive_shell;
222 bool test_shell; 226 bool test_shell;
223 bool dump_heap_constants; 227 bool dump_heap_constants;
224 bool expected_to_throw; 228 bool expected_to_throw;
225 bool mock_arraybuffer_allocator; 229 bool mock_arraybuffer_allocator;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 static void ExternalArrayWeakCallback(Isolate* isolate, 393 static void ExternalArrayWeakCallback(Isolate* isolate,
390 Persistent<Object>* object, 394 Persistent<Object>* object,
391 uint8_t* data); 395 uint8_t* data);
392 }; 396 };
393 397
394 398
395 } // namespace v8 399 } // namespace v8
396 400
397 401
398 #endif // V8_D8_H_ 402 #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