Chromium Code Reviews| 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 "include/v8-debug.h" | 8 #include "include/v8-debug.h" |
| 9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
| 10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 class PromiseOnStack; | 81 class PromiseOnStack; |
| 82 | 82 |
| 83 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ | 83 #if !defined(__arm__) && V8_TARGET_ARCH_ARM || \ |
| 84 !defined(__aarch64__) && V8_TARGET_ARCH_ARM64 || \ | 84 !defined(__aarch64__) && V8_TARGET_ARCH_ARM64 || \ |
| 85 !defined(__mips__) && V8_TARGET_ARCH_MIPS || \ | 85 !defined(__mips__) && V8_TARGET_ARCH_MIPS || \ |
| 86 !defined(__mips__) && V8_TARGET_ARCH_MIPS64 | 86 !defined(__mips__) && V8_TARGET_ARCH_MIPS64 |
| 87 class Redirection; | 87 class Redirection; |
| 88 class Simulator; | 88 class Simulator; |
| 89 #endif | 89 #endif |
| 90 | 90 |
| 91 namespace compiler { | |
|
titzer
2014/09/23 14:14:09
The more I think about it, this thing can't (entir
| |
| 92 class BasicBlockProfiler; | |
| 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 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1100 void AddCallCompletedCallback(CallCompletedCallback callback); | 1103 void AddCallCompletedCallback(CallCompletedCallback callback); |
| 1101 void RemoveCallCompletedCallback(CallCompletedCallback callback); | 1104 void RemoveCallCompletedCallback(CallCompletedCallback callback); |
| 1102 void FireCallCompletedCallback(); | 1105 void FireCallCompletedCallback(); |
| 1103 | 1106 |
| 1104 void EnqueueMicrotask(Handle<Object> microtask); | 1107 void EnqueueMicrotask(Handle<Object> microtask); |
| 1105 void RunMicrotasks(); | 1108 void RunMicrotasks(); |
| 1106 | 1109 |
| 1107 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1110 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
| 1108 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1111 void CountUsage(v8::Isolate::UseCounterFeature feature); |
| 1109 | 1112 |
| 1113 compiler::BasicBlockProfiler* GetBasicBlockProfiler(); | |
| 1114 | |
| 1110 static Isolate* NewForTesting() { return new Isolate(); } | 1115 static Isolate* NewForTesting() { return new Isolate(); } |
| 1111 | 1116 |
| 1112 private: | 1117 private: |
| 1113 Isolate(); | 1118 Isolate(); |
| 1114 | 1119 |
| 1115 friend struct GlobalState; | 1120 friend struct GlobalState; |
| 1116 friend struct InitializeGlobalState; | 1121 friend struct InitializeGlobalState; |
| 1117 | 1122 |
| 1118 enum State { | 1123 enum State { |
| 1119 UNINITIALIZED, // Some components may not have been allocated. | 1124 UNINITIALIZED, // Some components may not have been allocated. |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1320 | 1325 |
| 1321 // Counts deopt points if deopt_every_n_times is enabled. | 1326 // Counts deopt points if deopt_every_n_times is enabled. |
| 1322 unsigned int stress_deopt_count_; | 1327 unsigned int stress_deopt_count_; |
| 1323 | 1328 |
| 1324 int next_optimization_id_; | 1329 int next_optimization_id_; |
| 1325 | 1330 |
| 1326 // List of callbacks when a Call completes. | 1331 // List of callbacks when a Call completes. |
| 1327 List<CallCompletedCallback> call_completed_callbacks_; | 1332 List<CallCompletedCallback> call_completed_callbacks_; |
| 1328 | 1333 |
| 1329 v8::Isolate::UseCounterCallback use_counter_callback_; | 1334 v8::Isolate::UseCounterCallback use_counter_callback_; |
| 1335 compiler::BasicBlockProfiler* basic_block_profiler_; | |
| 1330 | 1336 |
| 1331 friend class ExecutionAccess; | 1337 friend class ExecutionAccess; |
| 1332 friend class HandleScopeImplementer; | 1338 friend class HandleScopeImplementer; |
| 1333 friend class IsolateInitializer; | 1339 friend class IsolateInitializer; |
| 1334 friend class OptimizingCompilerThread; | 1340 friend class OptimizingCompilerThread; |
| 1335 friend class SweeperThread; | 1341 friend class SweeperThread; |
| 1336 friend class ThreadManager; | 1342 friend class ThreadManager; |
| 1337 friend class Simulator; | 1343 friend class Simulator; |
| 1338 friend class StackGuard; | 1344 friend class StackGuard; |
| 1339 friend class ThreadId; | 1345 friend class ThreadId; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1549 } | 1555 } |
| 1550 | 1556 |
| 1551 EmbeddedVector<char, 128> filename_; | 1557 EmbeddedVector<char, 128> filename_; |
| 1552 FILE* file_; | 1558 FILE* file_; |
| 1553 int scope_depth_; | 1559 int scope_depth_; |
| 1554 }; | 1560 }; |
| 1555 | 1561 |
| 1556 } } // namespace v8::internal | 1562 } } // namespace v8::internal |
| 1557 | 1563 |
| 1558 #endif // V8_ISOLATE_H_ | 1564 #endif // V8_ISOLATE_H_ |
| OLD | NEW |