diff options
Diffstat (limited to 'deps/v8/src/handles.h')
-rw-r--r-- | deps/v8/src/handles.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/src/handles.h b/deps/v8/src/handles.h index 5dc4a5ddd..577e83a90 100644 --- a/deps/v8/src/handles.h +++ b/deps/v8/src/handles.h @@ -5,7 +5,7 @@ #ifndef V8_HANDLES_H_ #define V8_HANDLES_H_ -#include "objects.h" +#include "src/objects.h" namespace v8 { namespace internal { @@ -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) { DCHECK(location_ != NULL); } + INLINE(void Check() const) { CHECK(location_ != NULL); } - INLINE(Handle<T> ToHandleChecked()) { + INLINE(Handle<T> ToHandleChecked()) const { Check(); return Handle<T>(location_); } |