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

Unified Diff: runtime/vm/parser.cc

Issue 1409173002: More work for background compilation; move pending_functions_ from ObjectStore to Thread. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Better code. Created 5 years, 2 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/object_store.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 94875a6b396097937e68d5d385f4aa508c38e3f5..15d13ff57e91c18e16b2249b4439893d590fe8a2 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -384,7 +384,7 @@ Parser::Parser(const Script& script,
Parser::~Parser() {
if (unregister_pending_function_) {
const GrowableObjectArray& pending_functions =
- GrowableObjectArray::Handle(I->object_store()->pending_functions());
+ GrowableObjectArray::Handle(T->pending_functions());
ASSERT(pending_functions.Length() > 0);
ASSERT(pending_functions.At(pending_functions.Length()-1) ==
current_function().raw());
@@ -2931,8 +2931,7 @@ SequenceNode* Parser::MakeImplicitConstructor(const Function& func) {
void Parser::CheckRecursiveInvocation() {
const GrowableObjectArray& pending_functions =
- GrowableObjectArray::Handle(Z,
- I->object_store()->pending_functions());
+ GrowableObjectArray::Handle(Z, T->pending_functions());
for (int i = 0; i < pending_functions.Length(); i++) {
if (pending_functions.At(i) == current_function().raw()) {
const String& fname =
« no previous file with comments | « runtime/vm/object_store.cc ('k') | runtime/vm/thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698