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

Unified Diff: runtime/vm/parser.cc

Issue 256623005: - Remove unneeded creation of :saved_current_context_var (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 35347)
+++ runtime/vm/parser.cc (working copy)
@@ -1910,7 +1910,6 @@
/* is_super_getter */ true,
super_class,
function_name);
- EnsureSavedCurrentContext();
// 'this' is not passed as parameter to the closure.
ArgumentListNode* closure_arguments = new ArgumentListNode(supercall_pos);
for (int i = 1; i < arguments->length(); i++) {
@@ -6752,7 +6751,6 @@
if (condition->IsClosureNode() ||
(condition->IsStoreLocalNode() &&
condition->AsStoreLocalNode()->value()->IsClosureNode())) {
- EnsureSavedCurrentContext();
// Function literal in assert implies a call.
const intptr_t pos = condition->token_pos();
condition = BuildClosureCall(pos, condition, new ArgumentListNode(pos));
@@ -8268,7 +8266,6 @@
Object::empty_array());
if (!func.IsNull()) {
ASSERT(func.kind() != RawFunction::kImplicitStaticFinalGetter);
- EnsureSavedCurrentContext();
closure = new StaticGetterNode(call_pos,
NULL,
false,
@@ -8277,7 +8274,6 @@
return BuildClosureCall(call_pos, closure, arguments);
}
} else {
- EnsureSavedCurrentContext();
closure = GenerateStaticFieldLookup(field, call_pos);
return BuildClosureCall(call_pos, closure, arguments);
}
@@ -8317,7 +8313,6 @@
TRACE_PARSER("ParseClosureCall");
const intptr_t call_pos = TokenPos();
ASSERT(CurrentToken() == Token::kLPAREN);
- EnsureSavedCurrentContext();
ArgumentListNode* arguments = ParseActualParameters(NULL, kAllowConst);
return BuildClosureCall(call_pos, closure, arguments);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698