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

Unified Diff: src/handles.h

Issue 314953006: Implement LookupIterator designed to replace LookupResult (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Adding to BUILD.gn Created 6 years, 6 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
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index 19e023b7a8f046c06312e2572fdd063a14901c28..3bd82e51e3a542d023d146e067c4c5e146d1539f 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -44,10 +44,10 @@ class MaybeHandle {
location_ = reinterpret_cast<T**>(maybe_handle.location_);
}
- INLINE(void Assert()) { ASSERT(location_ != NULL); }
- INLINE(void Check()) { CHECK(location_ != NULL); }
+ INLINE(void Assert() const) { ASSERT(location_ != NULL); }
+ INLINE(void Check() const) { CHECK(location_ != NULL); }
- INLINE(Handle<T> ToHandleChecked()) {
+ INLINE(Handle<T> ToHandleChecked()) const {
Check();
return Handle<T>(location_);
}
« no previous file with comments | « src/arm64/stub-cache-arm64.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | src/lookup.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698