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

Unified Diff: runtime/vm/scopes.h

Issue 10915022: Implement argument definition test in the vm. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: runtime/vm/scopes.h
===================================================================
--- runtime/vm/scopes.h (revision 11663)
+++ runtime/vm/scopes.h (working copy)
@@ -8,6 +8,7 @@
#include "vm/allocation.h"
#include "vm/assembler.h"
#include "vm/growable_array.h"
+#include "vm/symbols.h"
namespace dart {
@@ -78,10 +79,6 @@
// all parameters.
int BitIndexIn(intptr_t var_count) const;
- // Name of the internal variable that is used to save the context chain
- // on function entry.
- static const char* kSavedContextVarName;
-
private:
static const int kUnitializedIndex = INT_MIN;
@@ -134,7 +131,7 @@
return new SourceLabel(token_pos, *name, kind);
} else {
return new SourceLabel(token_pos,
- String::ZoneHandle(String::New(kDefaultLabelName)),
+ String::ZoneHandle(Symbols::DefaultLabel()),
kind);
}
}
@@ -188,7 +185,6 @@
JoinEntryInstr* join_for_break_;
JoinEntryInstr* join_for_continue_;
bool is_continue_target_; // Needed for CaseNode.
- static const char* kDefaultLabelName;
DISALLOW_COPY_AND_ASSIGN(SourceLabel);
};

Powered by Google App Engine
This is Rietveld 408576698