OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // assembler.h, where it is defined, here. | 81 // assembler.h, where it is defined, here. |
82 typedef void* ExternalReferenceRedirectorPointer(); | 82 typedef void* ExternalReferenceRedirectorPointer(); |
83 | 83 |
84 | 84 |
85 class Debug; | 85 class Debug; |
86 class Debugger; | 86 class Debugger; |
87 class PromiseOnStack; | 87 class PromiseOnStack; |
88 class Redirection; | 88 class Redirection; |
89 class Simulator; | 89 class Simulator; |
90 | 90 |
| 91 namespace interpreter { |
| 92 class Interpreter; |
| 93 } |
91 | 94 |
92 // Static indirection table for handles to constants. If a frame | 95 // Static indirection table for handles to constants. If a frame |
93 // element represents a constant, the data contains an index into | 96 // element represents a constant, the data contains an index into |
94 // this table of handles to the actual constants. | 97 // this table of handles to the actual constants. |
95 // Static indirection table for handles to constants. If a Result | 98 // Static indirection table for handles to constants. If a Result |
96 // represents a constant, the data contains an index into this table | 99 // represents a constant, the data contains an index into this table |
97 // of handles to the actual constants. | 100 // of handles to the actual constants. |
98 typedef ZoneList<Handle<Object> > ZoneObjectList; | 101 typedef ZoneList<Handle<Object> > ZoneObjectList; |
99 | 102 |
100 #define RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate) \ | 103 #define RETURN_FAILURE_IF_SCHEDULED_EXCEPTION(isolate) \ |
(...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1319 // A static array of histogram info for each type. | 1322 // A static array of histogram info for each type. |
1320 HistogramInfo heap_histograms_[LAST_TYPE + 1]; | 1323 HistogramInfo heap_histograms_[LAST_TYPE + 1]; |
1321 JSObject::SpillInformation js_spill_information_; | 1324 JSObject::SpillInformation js_spill_information_; |
1322 #endif | 1325 #endif |
1323 | 1326 |
1324 Debug* debug_; | 1327 Debug* debug_; |
1325 CpuProfiler* cpu_profiler_; | 1328 CpuProfiler* cpu_profiler_; |
1326 HeapProfiler* heap_profiler_; | 1329 HeapProfiler* heap_profiler_; |
1327 FunctionEntryHook function_entry_hook_; | 1330 FunctionEntryHook function_entry_hook_; |
1328 | 1331 |
| 1332 interpreter::Interpreter* interpreter_; |
| 1333 |
1329 typedef std::pair<InterruptCallback, void*> InterruptEntry; | 1334 typedef std::pair<InterruptCallback, void*> InterruptEntry; |
1330 std::queue<InterruptEntry> api_interrupts_queue_; | 1335 std::queue<InterruptEntry> api_interrupts_queue_; |
1331 | 1336 |
1332 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ | 1337 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ |
1333 type name##_; | 1338 type name##_; |
1334 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) | 1339 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) |
1335 #undef GLOBAL_BACKING_STORE | 1340 #undef GLOBAL_BACKING_STORE |
1336 | 1341 |
1337 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ | 1342 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ |
1338 type name##_[length]; | 1343 type name##_[length]; |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1597 } | 1602 } |
1598 | 1603 |
1599 EmbeddedVector<char, 128> filename_; | 1604 EmbeddedVector<char, 128> filename_; |
1600 FILE* file_; | 1605 FILE* file_; |
1601 int scope_depth_; | 1606 int scope_depth_; |
1602 }; | 1607 }; |
1603 | 1608 |
1604 } } // namespace v8::internal | 1609 } } // namespace v8::internal |
1605 | 1610 |
1606 #endif // V8_ISOLATE_H_ | 1611 #endif // V8_ISOLATE_H_ |
OLD | NEW |