| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 expected_to_throw(false), |
| 236 mock_arraybuffer_allocator(false), |
| 236 num_isolates(1), | 237 num_isolates(1), |
| 237 isolate_sources(NULL) { } | 238 isolate_sources(NULL) { } |
| 238 | 239 |
| 239 ~ShellOptions() { | 240 ~ShellOptions() { |
| 240 #ifndef V8_SHARED | 241 #ifndef V8_SHARED |
| 241 delete[] parallel_files; | 242 delete[] parallel_files; |
| 242 #endif // V8_SHARED | 243 #endif // V8_SHARED |
| 243 delete[] isolate_sources; | 244 delete[] isolate_sources; |
| 244 } | 245 } |
| 245 | 246 |
| 246 #ifndef V8_SHARED | 247 #ifndef V8_SHARED |
| 247 bool use_preemption; | 248 bool use_preemption; |
| 248 int preemption_interval; | 249 int preemption_interval; |
| 249 int num_parallel_files; | 250 int num_parallel_files; |
| 250 char** parallel_files; | 251 char** parallel_files; |
| 251 #endif // V8_SHARED | 252 #endif // V8_SHARED |
| 252 bool script_executed; | 253 bool script_executed; |
| 253 bool last_run; | 254 bool last_run; |
| 254 bool send_idle_notification; | 255 bool send_idle_notification; |
| 255 bool stress_opt; | 256 bool stress_opt; |
| 256 bool stress_deopt; | 257 bool stress_deopt; |
| 257 bool interactive_shell; | 258 bool interactive_shell; |
| 258 bool test_shell; | 259 bool test_shell; |
| 259 bool dump_heap_constants; | 260 bool dump_heap_constants; |
| 260 bool expected_to_throw; | 261 bool expected_to_throw; |
| 262 bool mock_arraybuffer_allocator; |
| 261 int num_isolates; | 263 int num_isolates; |
| 262 SourceGroup* isolate_sources; | 264 SourceGroup* isolate_sources; |
| 263 }; | 265 }; |
| 264 | 266 |
| 265 #ifdef V8_SHARED | 267 #ifdef V8_SHARED |
| 266 class Shell { | 268 class Shell { |
| 267 #else | 269 #else |
| 268 class Shell : public i::AllStatic { | 270 class Shell : public i::AllStatic { |
| 269 #endif // V8_SHARED | 271 #endif // V8_SHARED |
| 270 | 272 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 static void ExternalArrayWeakCallback(Isolate* isolate, | 427 static void ExternalArrayWeakCallback(Isolate* isolate, |
| 426 Persistent<Object>* object, | 428 Persistent<Object>* object, |
| 427 uint8_t* data); | 429 uint8_t* data); |
| 428 }; | 430 }; |
| 429 | 431 |
| 430 | 432 |
| 431 } // namespace v8 | 433 } // namespace v8 |
| 432 | 434 |
| 433 | 435 |
| 434 #endif // V8_D8_H_ | 436 #endif // V8_D8_H_ |
| OLD | NEW |