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 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 | 1094 |
1095 static void SetIsolateThreadLocals(Isolate* isolate, | 1095 static void SetIsolateThreadLocals(Isolate* isolate, |
1096 PerIsolateThreadData* data); | 1096 PerIsolateThreadData* data); |
1097 | 1097 |
1098 enum State { | 1098 enum State { |
1099 UNINITIALIZED, // Some components may not have been allocated. | 1099 UNINITIALIZED, // Some components may not have been allocated. |
1100 INITIALIZED // All components are fully initialized. | 1100 INITIALIZED // All components are fully initialized. |
1101 }; | 1101 }; |
1102 | 1102 |
1103 State state_; | 1103 State state_; |
| 1104 Heap heap_; |
1104 EntryStackItem* entry_stack_; | 1105 EntryStackItem* entry_stack_; |
1105 | 1106 |
1106 // Allocate and insert PerIsolateThreadData into the ThreadDataTable | 1107 // Allocate and insert PerIsolateThreadData into the ThreadDataTable |
1107 // (regardless of whether such data already exists). | 1108 // (regardless of whether such data already exists). |
1108 PerIsolateThreadData* AllocatePerIsolateThreadData(ThreadId thread_id); | 1109 PerIsolateThreadData* AllocatePerIsolateThreadData(ThreadId thread_id); |
1109 | 1110 |
1110 // Find the PerThread for this particular (isolate, thread) combination. | 1111 // Find the PerThread for this particular (isolate, thread) combination. |
1111 // If one does not yet exist, allocate a new one. | 1112 // If one does not yet exist, allocate a new one. |
1112 PerIsolateThreadData* FindOrAllocatePerThreadDataForThisThread(); | 1113 PerIsolateThreadData* FindOrAllocatePerThreadDataForThisThread(); |
1113 | 1114 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1154 NoAllocationStringAllocator* preallocated_message_space_; | 1155 NoAllocationStringAllocator* preallocated_message_space_; |
1155 | 1156 |
1156 Bootstrapper* bootstrapper_; | 1157 Bootstrapper* bootstrapper_; |
1157 RuntimeProfiler* runtime_profiler_; | 1158 RuntimeProfiler* runtime_profiler_; |
1158 CompilationCache* compilation_cache_; | 1159 CompilationCache* compilation_cache_; |
1159 Counters* counters_; | 1160 Counters* counters_; |
1160 CodeRange* code_range_; | 1161 CodeRange* code_range_; |
1161 Mutex* break_access_; | 1162 Mutex* break_access_; |
1162 Atomic32 debugger_initialized_; | 1163 Atomic32 debugger_initialized_; |
1163 Mutex* debugger_access_; | 1164 Mutex* debugger_access_; |
1164 Heap heap_; | |
1165 Logger* logger_; | 1165 Logger* logger_; |
1166 StackGuard stack_guard_; | 1166 StackGuard stack_guard_; |
1167 StatsTable* stats_table_; | 1167 StatsTable* stats_table_; |
1168 StubCache* stub_cache_; | 1168 StubCache* stub_cache_; |
1169 DeoptimizerData* deoptimizer_data_; | 1169 DeoptimizerData* deoptimizer_data_; |
1170 ThreadLocalTop thread_local_top_; | 1170 ThreadLocalTop thread_local_top_; |
1171 bool capture_stack_trace_for_uncaught_exceptions_; | 1171 bool capture_stack_trace_for_uncaught_exceptions_; |
1172 int stack_trace_for_uncaught_exceptions_frame_limit_; | 1172 int stack_trace_for_uncaught_exceptions_frame_limit_; |
1173 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; | 1173 StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; |
1174 TranscendentalCache* transcendental_cache_; | 1174 TranscendentalCache* transcendental_cache_; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 | 1406 |
1407 // Mark the global context with out of memory. | 1407 // Mark the global context with out of memory. |
1408 inline void Context::mark_out_of_memory() { | 1408 inline void Context::mark_out_of_memory() { |
1409 global_context()->set_out_of_memory(HEAP->true_value()); | 1409 global_context()->set_out_of_memory(HEAP->true_value()); |
1410 } | 1410 } |
1411 | 1411 |
1412 | 1412 |
1413 } } // namespace v8::internal | 1413 } } // namespace v8::internal |
1414 | 1414 |
1415 #endif // V8_ISOLATE_H_ | 1415 #endif // V8_ISOLATE_H_ |
OLD | NEW |