summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/access-info.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/access-info.h')
-rw-r--r--deps/v8/src/compiler/access-info.h32
1 files changed, 4 insertions, 28 deletions
diff --git a/deps/v8/src/compiler/access-info.h b/deps/v8/src/compiler/access-info.h
index b430dacd3a..93215ea0a0 100644
--- a/deps/v8/src/compiler/access-info.h
+++ b/deps/v8/src/compiler/access-info.h
@@ -305,6 +305,10 @@ class AccessInfoFactory final {
MaybeHandle<JSObject> holder, InternalIndex descriptor,
AccessMode access_mode) const;
+ PropertyAccessInfo Invalid() const {
+ return PropertyAccessInfo::Invalid(zone());
+ }
+
void MergePropertyAccessInfos(ZoneVector<PropertyAccessInfo> infos,
AccessMode access_mode,
ZoneVector<PropertyAccessInfo>* result) const;
@@ -313,28 +317,6 @@ class AccessInfoFactory final {
Handle<Name> name, InternalIndex* index_out,
PropertyDetails* details_out) const;
- bool should_lock_mutex() const { return map_updater_mutex_depth_ == 0; }
-
- class MapUpdaterMutexDepthScope final {
- public:
- explicit MapUpdaterMutexDepthScope(const AccessInfoFactory* ptr)
- : ptr_(ptr),
- initial_map_updater_mutex_depth_(ptr->map_updater_mutex_depth_) {
- ptr_->map_updater_mutex_depth_++;
- }
-
- ~MapUpdaterMutexDepthScope() {
- ptr_->map_updater_mutex_depth_--;
- DCHECK_EQ(initial_map_updater_mutex_depth_,
- ptr_->map_updater_mutex_depth_);
- USE(initial_map_updater_mutex_depth_);
- }
-
- private:
- const AccessInfoFactory* const ptr_;
- const int initial_map_updater_mutex_depth_;
- };
-
CompilationDependencies* dependencies() const { return dependencies_; }
JSHeapBroker* broker() const { return broker_; }
Isolate* isolate() const;
@@ -345,12 +327,6 @@ class AccessInfoFactory final {
TypeCache const* const type_cache_;
Zone* const zone_;
- // ComputePropertyAccessInfo can be called recursively, thus we need to
- // emulate a recursive mutex. This field holds the locking depth, i.e. how
- // many times the mutex has been recursively locked. Only the outermost
- // locker actually locks underneath.
- mutable int map_updater_mutex_depth_ = 0;
-
// TODO(nicohartmann@): Move to public
AccessInfoFactory(const AccessInfoFactory&) = delete;
AccessInfoFactory& operator=(const AccessInfoFactory&) = delete;