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

Unified Diff: runtime/vm/scopes.h

Issue 14942010: Eliminate temporary locals for some expressions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scopes.h
===================================================================
--- runtime/vm/scopes.h (revision 23243)
+++ runtime/vm/scopes.h (working copy)
@@ -32,7 +32,7 @@
is_final_(false),
is_captured_(false),
is_invisible_(false),
- index_(LocalVariable::kUnitializedIndex) {
+ index_(LocalVariable::kUninitializedIndex) {
ASSERT(type.IsZoneHandle());
ASSERT(type.IsFinalized());
}
@@ -54,7 +54,7 @@
void set_is_captured() { is_captured_ = true; }
bool HasIndex() const {
- return index_ != kUnitializedIndex;
+ return index_ != kUninitializedIndex;
}
int index() const {
ASSERT(HasIndex());
@@ -63,8 +63,7 @@
// Assign an index to a local.
void set_index(int index) {
- ASSERT(!HasIndex());
- ASSERT(index != kUnitializedIndex);
+ ASSERT(index != kUninitializedIndex);
index_ = index;
}
@@ -95,7 +94,7 @@
int BitIndexIn(intptr_t var_count) const;
private:
- static const int kUnitializedIndex = INT_MIN;
+ static const int kUninitializedIndex = INT_MIN;
const intptr_t token_pos_;
const String& name_;
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698