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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 class CpuFeatures; | 61 class CpuFeatures; |
62 class CpuProfiler; | 62 class CpuProfiler; |
63 class DeoptimizerData; | 63 class DeoptimizerData; |
64 class Deserializer; | 64 class Deserializer; |
65 class EmptyStatement; | 65 class EmptyStatement; |
66 class ExternalReferenceTable; | 66 class ExternalReferenceTable; |
67 class Factory; | 67 class Factory; |
68 class FunctionInfoListener; | 68 class FunctionInfoListener; |
69 class HandleScopeImplementer; | 69 class HandleScopeImplementer; |
70 class HeapProfiler; | 70 class HeapProfiler; |
| 71 class HStatistics; |
71 class HTracer; | 72 class HTracer; |
72 class InlineRuntimeFunctionsTable; | 73 class InlineRuntimeFunctionsTable; |
73 class NoAllocationStringAllocator; | 74 class NoAllocationStringAllocator; |
74 class InnerPointerToCodeCache; | 75 class InnerPointerToCodeCache; |
75 class MarkingThread; | 76 class MarkingThread; |
76 class PreallocatedMemoryThread; | 77 class PreallocatedMemoryThread; |
77 class RegExpStack; | 78 class RegExpStack; |
78 class SaveContext; | 79 class SaveContext; |
79 class UnicodeCache; | 80 class UnicodeCache; |
80 class ConsStringIteratorOp; | 81 class ConsStringIteratorOp; |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 /* Serializer state. */ \ | 367 /* Serializer state. */ \ |
367 V(ExternalReferenceTable*, external_reference_table, NULL) \ | 368 V(ExternalReferenceTable*, external_reference_table, NULL) \ |
368 /* AstNode state. */ \ | 369 /* AstNode state. */ \ |
369 V(int, ast_node_id, 0) \ | 370 V(int, ast_node_id, 0) \ |
370 V(unsigned, ast_node_count, 0) \ | 371 V(unsigned, ast_node_count, 0) \ |
371 /* SafeStackFrameIterator activations count. */ \ | 372 /* SafeStackFrameIterator activations count. */ \ |
372 V(int, safe_stack_iterator_counter, 0) \ | 373 V(int, safe_stack_iterator_counter, 0) \ |
373 V(CpuProfiler*, cpu_profiler, NULL) \ | 374 V(CpuProfiler*, cpu_profiler, NULL) \ |
374 V(HeapProfiler*, heap_profiler, NULL) \ | 375 V(HeapProfiler*, heap_profiler, NULL) \ |
375 V(bool, observer_delivery_pending, false) \ | 376 V(bool, observer_delivery_pending, false) \ |
| 377 V(HStatistics*, hstatistics, NULL) \ |
376 V(HTracer*, htracer, NULL) \ | 378 V(HTracer*, htracer, NULL) \ |
377 ISOLATE_DEBUGGER_INIT_LIST(V) | 379 ISOLATE_DEBUGGER_INIT_LIST(V) |
378 | 380 |
379 class Isolate { | 381 class Isolate { |
380 // These forward declarations are required to make the friend declarations in | 382 // These forward declarations are required to make the friend declarations in |
381 // PerIsolateThreadData work on some older versions of gcc. | 383 // PerIsolateThreadData work on some older versions of gcc. |
382 class ThreadDataTable; | 384 class ThreadDataTable; |
383 class EntryStackItem; | 385 class EntryStackItem; |
384 public: | 386 public: |
385 ~Isolate(); | 387 ~Isolate(); |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1095 static v8::Isolate* GetDefaultIsolateForLocking(); | 1097 static v8::Isolate* GetDefaultIsolateForLocking(); |
1096 | 1098 |
1097 MarkingThread** marking_threads() { | 1099 MarkingThread** marking_threads() { |
1098 return marking_thread_; | 1100 return marking_thread_; |
1099 } | 1101 } |
1100 | 1102 |
1101 SweeperThread** sweeper_threads() { | 1103 SweeperThread** sweeper_threads() { |
1102 return sweeper_thread_; | 1104 return sweeper_thread_; |
1103 } | 1105 } |
1104 | 1106 |
| 1107 HStatistics* GetHStatistics(); |
1105 HTracer* GetHTracer(); | 1108 HTracer* GetHTracer(); |
1106 | 1109 |
1107 private: | 1110 private: |
1108 Isolate(); | 1111 Isolate(); |
1109 | 1112 |
1110 int id() const { return static_cast<int>(id_); } | 1113 int id() const { return static_cast<int>(id_); } |
1111 | 1114 |
1112 friend struct GlobalState; | 1115 friend struct GlobalState; |
1113 friend struct InitializeGlobalState; | 1116 friend struct InitializeGlobalState; |
1114 | 1117 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1486 | 1489 |
1487 // Mark the native context with out of memory. | 1490 // Mark the native context with out of memory. |
1488 inline void Context::mark_out_of_memory() { | 1491 inline void Context::mark_out_of_memory() { |
1489 native_context()->set_out_of_memory(HEAP->true_value()); | 1492 native_context()->set_out_of_memory(HEAP->true_value()); |
1490 } | 1493 } |
1491 | 1494 |
1492 | 1495 |
1493 } } // namespace v8::internal | 1496 } } // namespace v8::internal |
1494 | 1497 |
1495 #endif // V8_ISOLATE_H_ | 1498 #endif // V8_ISOLATE_H_ |
OLD | NEW |