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

Unified Diff: frog/evaluator.dart

Issue 9107067: Work in progress: changes to interpretation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: work in progress Created 8 years, 11 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 | frog/frog_options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/evaluator.dart
diff --git a/frog/evaluator.dart b/frog/evaluator.dart
index bdc368f33f4584654f7aee3f4c377a484dff02a7..d096d1dea584b91f4bd02d348dedd93f13f6b034 100644
--- a/frog/evaluator.dart
+++ b/frog/evaluator.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -78,7 +78,7 @@ class Evaluator {
var parsed = new Parser(source, throwOnIncomplete: true,
optionalSemicolons: true).evalUnit();
var method = new MethodMember("_ifrog_dummy", _lib.topType, null);
- var methGen = new MethodGenerator(method, null);
+ var methGen = new MethodGenerator(method);
if (parsed is ExpressionStatement) {
var body = parsed.body;
@@ -107,9 +107,8 @@ class Evaluator {
_lib.topType.addMethod(methodName, parsed);
MethodMember definedMethod = _lib.topType.getMember(methodName);
definedMethod.resolve();
- var definedMethGen = new MethodGenerator(definedMethod, null);
- definedMethGen.run();
- definedMethGen.writeDefinition(world.gen.writer, null);
+ new MethodSpecializer(definedMethod).run();
+ definedMethod.generator.writeDefinition(world.gen.writer, null);
code = world.gen.writer.text;
} else if (parsed is TypeDefinition) {
_removeMember(parsed.name.name);
« no previous file with comments | « no previous file | frog/frog_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698