summaryrefslogtreecommitdiff
path: root/deps/v8/src/execution/local-isolate.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/execution/local-isolate.h')
-rw-r--r--deps/v8/src/execution/local-isolate.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/deps/v8/src/execution/local-isolate.h b/deps/v8/src/execution/local-isolate.h
index 1420ae7311..7cfa156fb7 100644
--- a/deps/v8/src/execution/local-isolate.h
+++ b/deps/v8/src/execution/local-isolate.h
@@ -36,7 +36,7 @@ class V8_EXPORT_PRIVATE LocalIsolate final : private HiddenLocalFactory {
public:
using HandleScopeType = LocalHandleScope;
- explicit LocalIsolate(Isolate* isolate);
+ explicit LocalIsolate(Isolate* isolate, ThreadKind kind);
~LocalIsolate();
// Kinda sketchy.
@@ -48,12 +48,10 @@ class V8_EXPORT_PRIVATE LocalIsolate final : private HiddenLocalFactory {
LocalHeap* heap() { return &heap_; }
inline Address isolate_root() const;
- inline ReadOnlyHeap* read_only_heap();
- inline Object root(RootIndex index);
+ inline ReadOnlyHeap* read_only_heap() const;
+ inline Object root(RootIndex index) const;
- StringTable* string_table() { return isolate_->string_table(); }
-
- const Isolate* GetIsolateForPtrCompr() const { return isolate_; }
+ StringTable* string_table() const { return isolate_->string_table(); }
v8::internal::LocalFactory* factory() {
// Upcast to the privately inherited base-class using c-style casts to avoid
@@ -77,10 +75,11 @@ class V8_EXPORT_PRIVATE LocalIsolate final : private HiddenLocalFactory {
int GetNextUniqueSharedFunctionInfoId();
#endif // V8_SFI_HAS_UNIQUE_ID
- bool is_collecting_type_profile();
+ bool is_collecting_type_profile() const;
- LocalLogger* logger() { return logger_.get(); }
- ThreadId thread_id() { return thread_id_; }
+ LocalLogger* logger() const { return logger_.get(); }
+ ThreadId thread_id() const { return thread_id_; }
+ Address stack_limit() const { return stack_limit_; }
private:
friend class v8::internal::LocalFactory;
@@ -89,10 +88,11 @@ class V8_EXPORT_PRIVATE LocalIsolate final : private HiddenLocalFactory {
// TODO(leszeks): Extract out the fields of the Isolate we want and store
// those instead of the whole thing.
- Isolate* isolate_;
+ Isolate* const isolate_;
std::unique_ptr<LocalLogger> logger_;
- ThreadId thread_id_;
+ ThreadId const thread_id_;
+ Address const stack_limit_;
};
} // namespace internal