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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 void RunMicrotasks(); | 1106 void RunMicrotasks(); |
1107 | 1107 |
1108 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1108 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
1109 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1109 void CountUsage(v8::Isolate::UseCounterFeature feature); |
1110 | 1110 |
1111 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1111 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
1112 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1112 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
1113 | 1113 |
1114 static Isolate* NewForTesting() { return new Isolate(false); } | 1114 static Isolate* NewForTesting() { return new Isolate(false); } |
1115 | 1115 |
1116 void GetTurboCfgFileName(Vector<char> buffer); | 1116 std::string GetTurboCfgFileName(); |
1117 | 1117 |
1118 private: | 1118 private: |
1119 explicit Isolate(bool enable_serializer); | 1119 explicit Isolate(bool enable_serializer); |
1120 | 1120 |
1121 friend struct GlobalState; | 1121 friend struct GlobalState; |
1122 friend struct InitializeGlobalState; | 1122 friend struct InitializeGlobalState; |
1123 | 1123 |
1124 // These fields are accessed through the API, offsets must be kept in sync | 1124 // These fields are accessed through the API, offsets must be kept in sync |
1125 // with v8::internal::Internals (in include/v8.h) constants. This is also | 1125 // with v8::internal::Internals (in include/v8.h) constants. This is also |
1126 // verified in Isolate::Init() using runtime checks. | 1126 // verified in Isolate::Init() using runtime checks. |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1551 } | 1551 } |
1552 | 1552 |
1553 EmbeddedVector<char, 128> filename_; | 1553 EmbeddedVector<char, 128> filename_; |
1554 FILE* file_; | 1554 FILE* file_; |
1555 int scope_depth_; | 1555 int scope_depth_; |
1556 }; | 1556 }; |
1557 | 1557 |
1558 } } // namespace v8::internal | 1558 } } // namespace v8::internal |
1559 | 1559 |
1560 #endif // V8_ISOLATE_H_ | 1560 #endif // V8_ISOLATE_H_ |
OLD | NEW |