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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 static int NumberOfParallelSystemThreads(ParallelSystemComponent type); | 315 static int NumberOfParallelSystemThreads(ParallelSystemComponent type); |
316 | 316 |
317 static const int kMaxThreads = 4; | 317 static const int kMaxThreads = 4; |
318 }; | 318 }; |
319 | 319 |
320 | 320 |
321 #ifdef ENABLE_DEBUGGER_SUPPORT | 321 #ifdef ENABLE_DEBUGGER_SUPPORT |
322 | 322 |
323 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ | 323 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ |
324 V(v8::Debug::EventCallback, debug_event_callback, NULL) \ | |
325 V(DebuggerAgent*, debugger_agent_instance, NULL) | 324 V(DebuggerAgent*, debugger_agent_instance, NULL) |
326 #else | 325 #else |
327 | 326 |
328 #define ISOLATE_DEBUGGER_INIT_LIST(V) | 327 #define ISOLATE_DEBUGGER_INIT_LIST(V) |
329 | 328 |
330 #endif | 329 #endif |
331 | 330 |
332 #ifdef DEBUG | 331 #ifdef DEBUG |
333 | 332 |
334 #define ISOLATE_INIT_DEBUG_ARRAY_LIST(V) \ | 333 #define ISOLATE_INIT_DEBUG_ARRAY_LIST(V) \ |
(...skipping 19 matching lines...) Expand all Loading... |
354 #define ISOLATE_INIT_LIST(V) \ | 353 #define ISOLATE_INIT_LIST(V) \ |
355 /* SerializerDeserializer state. */ \ | 354 /* SerializerDeserializer state. */ \ |
356 V(int, serialize_partial_snapshot_cache_length, 0) \ | 355 V(int, serialize_partial_snapshot_cache_length, 0) \ |
357 V(int, serialize_partial_snapshot_cache_capacity, 0) \ | 356 V(int, serialize_partial_snapshot_cache_capacity, 0) \ |
358 V(Object**, serialize_partial_snapshot_cache, NULL) \ | 357 V(Object**, serialize_partial_snapshot_cache, NULL) \ |
359 /* Assembler state. */ \ | 358 /* Assembler state. */ \ |
360 /* A previously allocated buffer of kMinimalBufferSize bytes, or NULL. */ \ | 359 /* A previously allocated buffer of kMinimalBufferSize bytes, or NULL. */ \ |
361 V(byte*, assembler_spare_buffer, NULL) \ | 360 V(byte*, assembler_spare_buffer, NULL) \ |
362 V(FatalErrorCallback, exception_behavior, NULL) \ | 361 V(FatalErrorCallback, exception_behavior, NULL) \ |
363 V(AllowCodeGenerationFromStringsCallback, allow_code_gen_callback, NULL) \ | 362 V(AllowCodeGenerationFromStringsCallback, allow_code_gen_callback, NULL) \ |
364 V(v8::Debug::MessageHandler, message_handler, NULL) \ | |
365 /* To distinguish the function templates, so that we can find them in the */ \ | 363 /* To distinguish the function templates, so that we can find them in the */ \ |
366 /* function cache of the native context. */ \ | 364 /* function cache of the native context. */ \ |
367 V(int, next_serial_number, 0) \ | 365 V(int, next_serial_number, 0) \ |
368 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, NULL) \ | 366 V(ExternalReferenceRedirectorPointer*, external_reference_redirector, NULL) \ |
369 V(bool, always_allow_natives_syntax, false) \ | 367 V(bool, always_allow_natives_syntax, false) \ |
370 /* Part of the state of liveedit. */ \ | 368 /* Part of the state of liveedit. */ \ |
371 V(FunctionInfoListener*, active_function_info_listener, NULL) \ | 369 V(FunctionInfoListener*, active_function_info_listener, NULL) \ |
372 /* State for Relocatable. */ \ | 370 /* State for Relocatable. */ \ |
373 V(Relocatable*, relocatable_top, NULL) \ | 371 V(Relocatable*, relocatable_top, NULL) \ |
374 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ | 372 V(DebugObjectCache*, string_stream_debug_object_cache, NULL) \ |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1516 | 1514 |
1517 // Mark the native context with out of memory. | 1515 // Mark the native context with out of memory. |
1518 inline void Context::mark_out_of_memory() { | 1516 inline void Context::mark_out_of_memory() { |
1519 native_context()->set_out_of_memory(HEAP->true_value()); | 1517 native_context()->set_out_of_memory(HEAP->true_value()); |
1520 } | 1518 } |
1521 | 1519 |
1522 | 1520 |
1523 } } // namespace v8::internal | 1521 } } // namespace v8::internal |
1524 | 1522 |
1525 #endif // V8_ISOLATE_H_ | 1523 #endif // V8_ISOLATE_H_ |
OLD | NEW |