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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 private: | 212 private: |
213 const char* data_; | 213 const char* data_; |
214 size_t length_; | 214 size_t length_; |
215 }; | 215 }; |
216 | 216 |
217 | 217 |
218 class ShellOptions { | 218 class ShellOptions { |
219 public: | 219 public: |
220 ShellOptions() : | 220 ShellOptions() : |
221 #ifndef V8_SHARED | 221 #ifndef V8_SHARED |
222 use_preemption(true), | |
223 preemption_interval(10), | |
224 num_parallel_files(0), | 222 num_parallel_files(0), |
225 parallel_files(NULL), | 223 parallel_files(NULL), |
226 #endif // V8_SHARED | 224 #endif // V8_SHARED |
227 script_executed(false), | 225 script_executed(false), |
228 last_run(true), | 226 last_run(true), |
229 send_idle_notification(false), | 227 send_idle_notification(false), |
230 stress_opt(false), | 228 stress_opt(false), |
231 stress_deopt(false), | 229 stress_deopt(false), |
232 interactive_shell(false), | 230 interactive_shell(false), |
233 test_shell(false), | 231 test_shell(false), |
234 dump_heap_constants(false), | 232 dump_heap_constants(false), |
235 expected_to_throw(false), | 233 expected_to_throw(false), |
236 num_isolates(1), | 234 num_isolates(1), |
237 isolate_sources(NULL) { } | 235 isolate_sources(NULL) { } |
238 | 236 |
239 ~ShellOptions() { | 237 ~ShellOptions() { |
240 #ifndef V8_SHARED | 238 #ifndef V8_SHARED |
241 delete[] parallel_files; | 239 delete[] parallel_files; |
242 #endif // V8_SHARED | 240 #endif // V8_SHARED |
243 delete[] isolate_sources; | 241 delete[] isolate_sources; |
244 } | 242 } |
245 | 243 |
246 #ifndef V8_SHARED | 244 #ifndef V8_SHARED |
247 bool use_preemption; | |
248 int preemption_interval; | |
249 int num_parallel_files; | 245 int num_parallel_files; |
250 char** parallel_files; | 246 char** parallel_files; |
251 #endif // V8_SHARED | 247 #endif // V8_SHARED |
252 bool script_executed; | 248 bool script_executed; |
253 bool last_run; | 249 bool last_run; |
254 bool send_idle_notification; | 250 bool send_idle_notification; |
255 bool stress_opt; | 251 bool stress_opt; |
256 bool stress_deopt; | 252 bool stress_deopt; |
257 bool interactive_shell; | 253 bool interactive_shell; |
258 bool test_shell; | 254 bool test_shell; |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 static void ExternalArrayWeakCallback(Isolate* isolate, | 421 static void ExternalArrayWeakCallback(Isolate* isolate, |
426 Persistent<Object>* object, | 422 Persistent<Object>* object, |
427 uint8_t* data); | 423 uint8_t* data); |
428 }; | 424 }; |
429 | 425 |
430 | 426 |
431 } // namespace v8 | 427 } // namespace v8 |
432 | 428 |
433 | 429 |
434 #endif // V8_D8_H_ | 430 #endif // V8_D8_H_ |
OLD | NEW |