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

Unified Diff: runtime/vm/object.cc

Issue 23480005: Change Bool::Get to return a handle instead of a pointer to a raw object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/object.h ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 2a364a82f3ad41a3e9d241f3099dc8f55db95043..f34b16400c55f5e8c73668d34622f152ddf326f6 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -9100,7 +9100,7 @@ bool ContextScope::IsFinalAt(intptr_t scope_index) const {
void ContextScope::SetIsFinalAt(intptr_t scope_index, bool is_final) const {
- VariableDescAddr(scope_index)->is_final = Bool::Get(is_final);
+ VariableDescAddr(scope_index)->is_final = Bool::Get(is_final).raw();
}
@@ -9110,7 +9110,7 @@ bool ContextScope::IsConstAt(intptr_t scope_index) const {
void ContextScope::SetIsConstAt(intptr_t scope_index, bool is_const) const {
- VariableDescAddr(scope_index)->is_const = Bool::Get(is_const);
+ VariableDescAddr(scope_index)->is_const = Bool::Get(is_const).raw();
}
« runtime/vm/object.h ('K') | « runtime/vm/object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698