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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 public: | 220 public: |
221 ShellOptions() : | 221 ShellOptions() : |
222 #ifndef V8_SHARED | 222 #ifndef V8_SHARED |
223 use_preemption(true), | 223 use_preemption(true), |
224 preemption_interval(10), | 224 preemption_interval(10), |
225 num_parallel_files(0), | 225 num_parallel_files(0), |
226 parallel_files(NULL), | 226 parallel_files(NULL), |
227 #endif // V8_SHARED | 227 #endif // V8_SHARED |
228 script_executed(false), | 228 script_executed(false), |
229 last_run(true), | 229 last_run(true), |
230 send_idle_notification(false), | |
231 stress_opt(false), | 230 stress_opt(false), |
232 stress_deopt(false), | 231 stress_deopt(false), |
233 interactive_shell(false), | 232 interactive_shell(false), |
234 test_shell(false), | 233 test_shell(false), |
235 num_isolates(1), | 234 num_isolates(1), |
236 isolate_sources(NULL) { } | 235 isolate_sources(NULL) { } |
237 | 236 |
238 ~ShellOptions() { | 237 ~ShellOptions() { |
239 #ifndef V8_SHARED | 238 #ifndef V8_SHARED |
240 delete[] parallel_files; | 239 delete[] parallel_files; |
241 #endif // V8_SHARED | 240 #endif // V8_SHARED |
242 delete[] isolate_sources; | 241 delete[] isolate_sources; |
243 } | 242 } |
244 | 243 |
245 #ifndef V8_SHARED | 244 #ifndef V8_SHARED |
246 bool use_preemption; | 245 bool use_preemption; |
247 int preemption_interval; | 246 int preemption_interval; |
248 int num_parallel_files; | 247 int num_parallel_files; |
249 char** parallel_files; | 248 char** parallel_files; |
250 #endif // V8_SHARED | 249 #endif // V8_SHARED |
251 bool script_executed; | 250 bool script_executed; |
252 bool last_run; | 251 bool last_run; |
253 bool send_idle_notification; | |
254 bool stress_opt; | 252 bool stress_opt; |
255 bool stress_deopt; | 253 bool stress_deopt; |
256 bool interactive_shell; | 254 bool interactive_shell; |
257 bool test_shell; | 255 bool test_shell; |
258 int num_isolates; | 256 int num_isolates; |
259 SourceGroup* isolate_sources; | 257 SourceGroup* isolate_sources; |
260 }; | 258 }; |
261 | 259 |
262 #ifdef V8_SHARED | 260 #ifdef V8_SHARED |
263 class Shell { | 261 class Shell { |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 ExternalArrayType type, | 401 ExternalArrayType type, |
404 int32_t element_size); | 402 int32_t element_size); |
405 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); | 403 static void ExternalArrayWeakCallback(Persistent<Value> object, void* data); |
406 }; | 404 }; |
407 | 405 |
408 | 406 |
409 } // namespace v8 | 407 } // namespace v8 |
410 | 408 |
411 | 409 |
412 #endif // V8_D8_H_ | 410 #endif // V8_D8_H_ |
OLD | NEW |