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

Unified Diff: vm/flow_graph_builder.cc

Issue 12207023: Rename the accessor functions saved_context_var and set_saved_context_var to saved_entry_context_va… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | vm/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/flow_graph_builder.cc
===================================================================
--- vm/flow_graph_builder.cc (revision 18152)
+++ vm/flow_graph_builder.cc (working copy)
@@ -692,9 +692,9 @@
intptr_t current_context_level = owner()->context_level();
ASSERT(current_context_level >= 0);
- if (owner()->parsed_function().saved_context_var() != NULL) {
+ if (owner()->parsed_function().saved_entry_context_var() != NULL) {
// CTX on entry was saved, but not linked as context parent.
- BuildLoadContext(*owner()->parsed_function().saved_context_var());
+ BuildLoadContext(*owner()->parsed_function().saved_entry_context_var());
} else {
while (current_context_level-- > 0) {
UnchainContext();
@@ -2763,7 +2763,7 @@
bool EffectGraphVisitor::MustSaveRestoreContext(SequenceNode* node) const {
return (node == owner()->parsed_function().node_sequence()) &&
- (owner()->parsed_function().saved_context_var() != NULL);
+ (owner()->parsed_function().saved_entry_context_var() != NULL);
}
@@ -2803,7 +2803,7 @@
// In this case, the parser pre-allocates a variable to save the context.
if (MustSaveRestoreContext(node)) {
Value* current_context = Bind(new CurrentContextInstr());
- Do(BuildStoreTemp(*owner()->parsed_function().saved_context_var(),
+ Do(BuildStoreTemp(*owner()->parsed_function().saved_entry_context_var(),
current_context));
Value* null_context = Bind(new ConstantInstr(Object::ZoneHandle()));
AddInstruction(new StoreContextInstr(null_context));
@@ -2902,7 +2902,7 @@
if (is_open()) {
if (MustSaveRestoreContext(node)) {
ASSERT(num_context_variables > 0);
- BuildLoadContext(*owner()->parsed_function().saved_context_var());
+ BuildLoadContext(*owner()->parsed_function().saved_entry_context_var());
} else if (num_context_variables > 0) {
UnchainContext();
}
« no previous file with comments | « no previous file | vm/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698