Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/torque/global-context.h')
-rw-r--r--deps/v8/src/torque/global-context.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/deps/v8/src/torque/global-context.h b/deps/v8/src/torque/global-context.h
index bbfbb686ef4..6182762a6a2 100644
--- a/deps/v8/src/torque/global-context.h
+++ b/deps/v8/src/torque/global-context.h
@@ -67,6 +67,14 @@ class GlobalContext : public ContextualClass<GlobalContext> {
return Get().generated_per_file_[file];
}
+ static void SetInstanceTypesInitialized() {
+ DCHECK(!Get().instance_types_initialized_);
+ Get().instance_types_initialized_ = true;
+ }
+ static bool IsInstanceTypesInitialized() {
+ return Get().instance_types_initialized_;
+ }
+
private:
bool collect_language_server_data_;
bool force_assert_statements_;
@@ -76,6 +84,7 @@ class GlobalContext : public ContextualClass<GlobalContext> {
std::set<std::string> cpp_includes_;
std::map<SourceId, PerFileStreams> generated_per_file_;
std::map<std::string, size_t> fresh_ids_;
+ bool instance_types_initialized_ = false;
friend class LanguageServerData;
};
@@ -91,12 +100,16 @@ class TargetArchitecture : public ContextualClass<TargetArchitecture> {
static size_t TaggedSize() { return Get().tagged_size_; }
static size_t RawPtrSize() { return Get().raw_ptr_size_; }
+ static size_t ExternalPointerSize() { return Get().external_ptr_size_; }
static size_t MaxHeapAlignment() { return TaggedSize(); }
static bool ArePointersCompressed() { return TaggedSize() < RawPtrSize(); }
+ static int SmiTagAndShiftSize() { return Get().smi_tag_and_shift_size_; }
private:
const size_t tagged_size_;
const size_t raw_ptr_size_;
+ const int smi_tag_and_shift_size_;
+ const size_t external_ptr_size_;
};
} // namespace torque