OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 parallel_files(NULL), | 225 parallel_files(NULL), |
226 #endif // V8_SHARED | 226 #endif // V8_SHARED |
227 script_executed(false), | 227 script_executed(false), |
228 last_run(true), | 228 last_run(true), |
229 send_idle_notification(false), | 229 send_idle_notification(false), |
230 stress_opt(false), | 230 stress_opt(false), |
231 stress_deopt(false), | 231 stress_deopt(false), |
232 interactive_shell(false), | 232 interactive_shell(false), |
233 test_shell(false), | 233 test_shell(false), |
234 dump_heap_constants(false), | 234 dump_heap_constants(false), |
| 235 expected_to_throw(false), |
235 num_isolates(1), | 236 num_isolates(1), |
236 isolate_sources(NULL) { } | 237 isolate_sources(NULL) { } |
237 | 238 |
238 ~ShellOptions() { | 239 ~ShellOptions() { |
239 #ifndef V8_SHARED | 240 #ifndef V8_SHARED |
240 delete[] parallel_files; | 241 delete[] parallel_files; |
241 #endif // V8_SHARED | 242 #endif // V8_SHARED |
242 delete[] isolate_sources; | 243 delete[] isolate_sources; |
243 } | 244 } |
244 | 245 |
245 #ifndef V8_SHARED | 246 #ifndef V8_SHARED |
246 bool use_preemption; | 247 bool use_preemption; |
247 int preemption_interval; | 248 int preemption_interval; |
248 int num_parallel_files; | 249 int num_parallel_files; |
249 char** parallel_files; | 250 char** parallel_files; |
250 #endif // V8_SHARED | 251 #endif // V8_SHARED |
251 bool script_executed; | 252 bool script_executed; |
252 bool last_run; | 253 bool last_run; |
253 bool send_idle_notification; | 254 bool send_idle_notification; |
254 bool stress_opt; | 255 bool stress_opt; |
255 bool stress_deopt; | 256 bool stress_deopt; |
256 bool interactive_shell; | 257 bool interactive_shell; |
257 bool test_shell; | 258 bool test_shell; |
258 bool dump_heap_constants; | 259 bool dump_heap_constants; |
| 260 bool expected_to_throw; |
259 int num_isolates; | 261 int num_isolates; |
260 SourceGroup* isolate_sources; | 262 SourceGroup* isolate_sources; |
261 }; | 263 }; |
262 | 264 |
263 #ifdef V8_SHARED | 265 #ifdef V8_SHARED |
264 class Shell { | 266 class Shell { |
265 #else | 267 #else |
266 class Shell : public i::AllStatic { | 268 class Shell : public i::AllStatic { |
267 #endif // V8_SHARED | 269 #endif // V8_SHARED |
268 | 270 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 static void ExternalArrayWeakCallback(Isolate* isolate, | 422 static void ExternalArrayWeakCallback(Isolate* isolate, |
421 Persistent<Object>* object, | 423 Persistent<Object>* object, |
422 uint8_t* data); | 424 uint8_t* data); |
423 }; | 425 }; |
424 | 426 |
425 | 427 |
426 } // namespace v8 | 428 } // namespace v8 |
427 | 429 |
428 | 430 |
429 #endif // V8_D8_H_ | 431 #endif // V8_D8_H_ |
OLD | NEW |