Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Unified Diff: src/handles.h

Issue 2191823002: [turbofan] Refactor the lowering of element/property accesses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/field-index.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index ab8ed0920a4c637b6c0bc67775c801ee287f2ec1..a7cd0e2497f74372b2eed759b8b386721493ed5e 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -226,6 +226,10 @@ class MaybeHandle final {
}
}
+ // Returns the raw address where this handle is stored. This should only be
+ // used for hashing handles; do not ever try to dereference it.
+ V8_INLINE Address address() const { return bit_cast<Address>(location_); }
+
bool is_null() const { return location_ == nullptr; }
protected:
« no previous file with comments | « src/field-index.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698