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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 10939031: Replace start_env with initial_definitions in GraphEntryInstr. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review comments Created 8 years, 3 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/intermediate_language.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index f81bc35e8099da29729a7fb45126a3e9bca93817..ca4ae64cc0978f0b84212c5304111d680d0eea07 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -138,12 +138,19 @@ GraphEntryInstr::GraphEntryInstr(TargetEntryInstr* normal_entry)
: BlockEntryInstr(CatchClauseNode::kInvalidTryIndex),
normal_entry_(normal_entry),
catch_entries_(),
- start_env_(NULL),
- constant_null_(NULL),
+ initial_definitions_(),
spill_slot_count_(0) {
}
+ConstantInstr* GraphEntryInstr::constant_null() {
+ ASSERT(initial_definitions_.length() > 0 &&
+ initial_definitions_[0]->IsConstant() &&
+ initial_definitions_[0]->AsConstant()->value().IsNull());
+ return initial_definitions_[0]->AsConstant();
+}
+
+
static bool CompareNames(const Library& lib,
const char* test_name,
const String& name) {
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698