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

Unified Diff: runtime/vm/reusable_handles.h

Issue 181843007: 1. Added new versions of Api::UnWrapStringHandle Api::UnWrapInstanceHandle to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/reusable_handles.h
===================================================================
--- runtime/vm/reusable_handles.h (revision 33108)
+++ runtime/vm/reusable_handles.h (working copy)
@@ -42,7 +42,7 @@
isolate()->set_reusable_handle_scope_active(false);
Handle().raw_ = Object::null();
}
- Object& Handle() {
+ Object& Handle() const {
ASSERT(isolate_->Object_handle_ != NULL);
return *isolate_->Object_handle_;
}
@@ -75,7 +75,7 @@
}
#define REUSABLE_HANDLE_ACCESSORS(object) \
- object& object##Handle() { \
+ object& object##Handle() const { \
ASSERT(isolate_->object##_handle_ != NULL); \
return *isolate_->object##_handle_; \
} \
@@ -99,7 +99,7 @@
~ReusableObjectHandleScope() {
handle_->raw_ = Object::null();
}
- Object& Handle() {
+ Object& Handle() const {
ASSERT(handle_ != NULL);
return *handle_;
}
@@ -124,7 +124,7 @@
}
#define REUSABLE_HANDLE_ACCESSORS(object) \
- object& object##Handle() { \
+ object& object##Handle() const { \
ASSERT(isolate_->object##_handle_ != NULL); \
return *isolate_->object##_handle_; \
} \
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698