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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 338103004: Use metadata for patching. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | sdk/lib/_internal/compiler/implementation/patch_parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
index 03ff1305f2d5d77b54e410451bb36ea4dde2479d..9a780de48deeb433d90c12930d4f38ea6e7d2146 100644
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -646,6 +646,9 @@ abstract class Compiler implements DiagnosticListener {
/// The constant for the [proxy] variable defined in dart:core.
Constant proxyConstant;
+ /// The constant for the [patch] variable defined in dart:_js_helper.
+ Constant patchConstant;
+
// Initialized after symbolClass has been resolved.
FunctionElement symbolConstructor;
@@ -1073,6 +1076,9 @@ abstract class Compiler implements DiagnosticListener {
proxyConstant =
resolver.constantCompiler.compileConstant(coreLibrary.find('proxy'));
+ patchConstant = resolver.constantCompiler.compileConstant(
+ jsHelperLibrary.find('patch'));
+
if (jsInvocationMirrorClass != null) {
jsInvocationMirrorClass.ensureResolved(this);
invokeOnMethod = jsInvocationMirrorClass.lookupLocalMember(INVOKE_ON);
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/patch_parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698