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 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 void RunMicrotasks(); | 1091 void RunMicrotasks(); |
1092 | 1092 |
1093 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); | 1093 void SetUseCounterCallback(v8::Isolate::UseCounterCallback callback); |
1094 void CountUsage(v8::Isolate::UseCounterFeature feature); | 1094 void CountUsage(v8::Isolate::UseCounterFeature feature); |
1095 | 1095 |
1096 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); | 1096 BasicBlockProfiler* GetOrCreateBasicBlockProfiler(); |
1097 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } | 1097 BasicBlockProfiler* basic_block_profiler() { return basic_block_profiler_; } |
1098 | 1098 |
1099 static Isolate* NewForTesting() { return new Isolate(false); } | 1099 static Isolate* NewForTesting() { return new Isolate(false); } |
1100 | 1100 |
1101 std::string GetTurboCfgFileName(); | 1101 void GetTurboCfgFileName(Vector<char> buffer); |
1102 | 1102 |
1103 private: | 1103 private: |
1104 explicit Isolate(bool enable_serializer); | 1104 explicit Isolate(bool enable_serializer); |
1105 | 1105 |
1106 friend struct GlobalState; | 1106 friend struct GlobalState; |
1107 friend struct InitializeGlobalState; | 1107 friend struct InitializeGlobalState; |
1108 | 1108 |
1109 // These fields are accessed through the API, offsets must be kept in sync | 1109 // These fields are accessed through the API, offsets must be kept in sync |
1110 // with v8::internal::Internals (in include/v8.h) constants. This is also | 1110 // with v8::internal::Internals (in include/v8.h) constants. This is also |
1111 // verified in Isolate::Init() using runtime checks. | 1111 // verified in Isolate::Init() using runtime checks. |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1532 } | 1532 } |
1533 | 1533 |
1534 EmbeddedVector<char, 128> filename_; | 1534 EmbeddedVector<char, 128> filename_; |
1535 FILE* file_; | 1535 FILE* file_; |
1536 int scope_depth_; | 1536 int scope_depth_; |
1537 }; | 1537 }; |
1538 | 1538 |
1539 } } // namespace v8::internal | 1539 } } // namespace v8::internal |
1540 | 1540 |
1541 #endif // V8_ISOLATE_H_ | 1541 #endif // V8_ISOLATE_H_ |
OLD | NEW |