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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "optimizing-compiler-thread.h" | 44 #include "optimizing-compiler-thread.h" |
45 #include "regexp-stack.h" | 45 #include "regexp-stack.h" |
46 #include "runtime-profiler.h" | 46 #include "runtime-profiler.h" |
47 #include "runtime.h" | 47 #include "runtime.h" |
48 #include "zone.h" | 48 #include "zone.h" |
49 | 49 |
50 namespace v8 { | 50 namespace v8 { |
51 namespace internal { | 51 namespace internal { |
52 | 52 |
53 class Bootstrapper; | 53 class Bootstrapper; |
| 54 struct CallInterfaceDescriptor; |
54 class CodeGenerator; | 55 class CodeGenerator; |
55 class CodeRange; | 56 class CodeRange; |
56 struct CodeStubInterfaceDescriptor; | 57 struct CodeStubInterfaceDescriptor; |
57 struct CallInterfaceDescriptor; | |
58 class CodeTracer; | 58 class CodeTracer; |
59 class CompilationCache; | 59 class CompilationCache; |
| 60 class ConsStringIteratorOp; |
60 class ContextSlotCache; | 61 class ContextSlotCache; |
61 class Counters; | 62 class Counters; |
62 class CpuFeatures; | 63 class CpuFeatures; |
63 class CpuProfiler; | 64 class CpuProfiler; |
64 class DeoptimizerData; | 65 class DeoptimizerData; |
65 class Deserializer; | 66 class Deserializer; |
66 class EmptyStatement; | 67 class EmptyStatement; |
67 class ExternalCallbackScope; | 68 class ExternalCallbackScope; |
68 class ExternalReferenceTable; | 69 class ExternalReferenceTable; |
69 class Factory; | 70 class Factory; |
70 class FunctionInfoListener; | 71 class FunctionInfoListener; |
71 class HandleScopeImplementer; | 72 class HandleScopeImplementer; |
72 class HeapProfiler; | 73 class HeapProfiler; |
73 class HStatistics; | 74 class HStatistics; |
74 class HTracer; | 75 class HTracer; |
75 class InlineRuntimeFunctionsTable; | 76 class InlineRuntimeFunctionsTable; |
| 77 class InnerPointerToCodeCache; |
| 78 class MaterializedObjectStore; |
76 class NoAllocationStringAllocator; | 79 class NoAllocationStringAllocator; |
77 class InnerPointerToCodeCache; | |
78 class RandomNumberGenerator; | 80 class RandomNumberGenerator; |
79 class RegExpStack; | 81 class RegExpStack; |
80 class SaveContext; | 82 class SaveContext; |
81 class UnicodeCache; | |
82 class ConsStringIteratorOp; | |
83 class StringTracker; | 83 class StringTracker; |
84 class StubCache; | 84 class StubCache; |
85 class SweeperThread; | 85 class SweeperThread; |
86 class ThreadManager; | 86 class ThreadManager; |
87 class ThreadState; | 87 class ThreadState; |
88 class ThreadVisitor; // Defined in v8threads.h | 88 class ThreadVisitor; // Defined in v8threads.h |
| 89 class UnicodeCache; |
89 template <StateTag Tag> class VMState; | 90 template <StateTag Tag> class VMState; |
90 | 91 |
91 // 'void function pointer', used to roundtrip the | 92 // 'void function pointer', used to roundtrip the |
92 // ExternalReference::ExternalReferenceRedirector since we can not include | 93 // ExternalReference::ExternalReferenceRedirector since we can not include |
93 // assembler.h, where it is defined, here. | 94 // assembler.h, where it is defined, here. |
94 typedef void* ExternalReferenceRedirectorPointer(); | 95 typedef void* ExternalReferenceRedirectorPointer(); |
95 | 96 |
96 | 97 |
97 #ifdef ENABLE_DEBUGGER_SUPPORT | 98 #ifdef ENABLE_DEBUGGER_SUPPORT |
98 class Debug; | 99 class Debug; |
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
866 // the isolate is fully initialized. | 867 // the isolate is fully initialized. |
867 ASSERT(logger_ != NULL); | 868 ASSERT(logger_ != NULL); |
868 return logger_; | 869 return logger_; |
869 } | 870 } |
870 StackGuard* stack_guard() { return &stack_guard_; } | 871 StackGuard* stack_guard() { return &stack_guard_; } |
871 Heap* heap() { return &heap_; } | 872 Heap* heap() { return &heap_; } |
872 StatsTable* stats_table(); | 873 StatsTable* stats_table(); |
873 StubCache* stub_cache() { return stub_cache_; } | 874 StubCache* stub_cache() { return stub_cache_; } |
874 DeoptimizerData* deoptimizer_data() { return deoptimizer_data_; } | 875 DeoptimizerData* deoptimizer_data() { return deoptimizer_data_; } |
875 ThreadLocalTop* thread_local_top() { return &thread_local_top_; } | 876 ThreadLocalTop* thread_local_top() { return &thread_local_top_; } |
| 877 MaterializedObjectStore* materialized_object_store() { |
| 878 return materialized_object_store_; |
| 879 } |
876 | 880 |
877 MemoryAllocator* memory_allocator() { | 881 MemoryAllocator* memory_allocator() { |
878 return memory_allocator_; | 882 return memory_allocator_; |
879 } | 883 } |
880 | 884 |
881 KeyedLookupCache* keyed_lookup_cache() { | 885 KeyedLookupCache* keyed_lookup_cache() { |
882 return keyed_lookup_cache_; | 886 return keyed_lookup_cache_; |
883 } | 887 } |
884 | 888 |
885 ContextSlotCache* context_slot_cache() { | 889 ContextSlotCache* context_slot_cache() { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1076 bool IsFastArrayConstructorPrototypeChainIntact(); | 1080 bool IsFastArrayConstructorPrototypeChainIntact(); |
1077 | 1081 |
1078 CodeStubInterfaceDescriptor* | 1082 CodeStubInterfaceDescriptor* |
1079 code_stub_interface_descriptor(int index); | 1083 code_stub_interface_descriptor(int index); |
1080 | 1084 |
1081 enum CallDescriptorKey { | 1085 enum CallDescriptorKey { |
1082 KeyedCall, | 1086 KeyedCall, |
1083 NamedCall, | 1087 NamedCall, |
1084 CallHandler, | 1088 CallHandler, |
1085 ArgumentAdaptorCall, | 1089 ArgumentAdaptorCall, |
| 1090 ApiFunctionCall, |
1086 NUMBER_OF_CALL_DESCRIPTORS | 1091 NUMBER_OF_CALL_DESCRIPTORS |
1087 }; | 1092 }; |
1088 | 1093 |
1089 CallInterfaceDescriptor* call_descriptor(CallDescriptorKey index); | 1094 CallInterfaceDescriptor* call_descriptor(CallDescriptorKey index); |
1090 | 1095 |
1091 void IterateDeferredHandles(ObjectVisitor* visitor); | 1096 void IterateDeferredHandles(ObjectVisitor* visitor); |
1092 void LinkDeferredHandles(DeferredHandles* deferred_handles); | 1097 void LinkDeferredHandles(DeferredHandles* deferred_handles); |
1093 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); | 1098 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); |
1094 | 1099 |
1095 #ifdef DEBUG | 1100 #ifdef DEBUG |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 Counters* counters_; | 1278 Counters* counters_; |
1274 CodeRange* code_range_; | 1279 CodeRange* code_range_; |
1275 RecursiveMutex break_access_; | 1280 RecursiveMutex break_access_; |
1276 Atomic32 debugger_initialized_; | 1281 Atomic32 debugger_initialized_; |
1277 RecursiveMutex debugger_access_; | 1282 RecursiveMutex debugger_access_; |
1278 Logger* logger_; | 1283 Logger* logger_; |
1279 StackGuard stack_guard_; | 1284 StackGuard stack_guard_; |
1280 StatsTable* stats_table_; | 1285 StatsTable* stats_table_; |
1281 StubCache* stub_cache_; | 1286 StubCache* stub_cache_; |
1282 DeoptimizerData* deoptimizer_data_; | 1287 DeoptimizerData* deoptimizer_data_; |
| 1288 MaterializedObjectStore* materialized_object_store_; |
1283 ThreadLocalTop thread_local_top_; | 1289 ThreadLocalTop thread_local_top_; |
1284 bool capture_stack_trace_for_uncaught_exceptions_; | 1290 bool capture_stack_trace_for_uncaught_exceptions_; |
1285 int stack_trace_for_uncaught_exceptions_frame_limit_; | 1291 int stack_trace_for_uncaught_exceptions_frame_limit_; |
1286 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; | 1292 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; |
1287 MemoryAllocator* memory_allocator_; | 1293 MemoryAllocator* memory_allocator_; |
1288 KeyedLookupCache* keyed_lookup_cache_; | 1294 KeyedLookupCache* keyed_lookup_cache_; |
1289 ContextSlotCache* context_slot_cache_; | 1295 ContextSlotCache* context_slot_cache_; |
1290 DescriptorLookupCache* descriptor_lookup_cache_; | 1296 DescriptorLookupCache* descriptor_lookup_cache_; |
1291 HandleScopeData handle_scope_data_; | 1297 HandleScopeData handle_scope_data_; |
1292 HandleScopeImplementer* handle_scope_implementer_; | 1298 HandleScopeImplementer* handle_scope_implementer_; |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 } | 1587 } |
1582 | 1588 |
1583 EmbeddedVector<char, 128> filename_; | 1589 EmbeddedVector<char, 128> filename_; |
1584 FILE* file_; | 1590 FILE* file_; |
1585 int scope_depth_; | 1591 int scope_depth_; |
1586 }; | 1592 }; |
1587 | 1593 |
1588 } } // namespace v8::internal | 1594 } } // namespace v8::internal |
1589 | 1595 |
1590 #endif // V8_ISOLATE_H_ | 1596 #endif // V8_ISOLATE_H_ |
OLD | NEW |