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

Unified Diff: pkg/compiler/lib/src/js_backend/backend_impact.dart

Issue 1416253002: Remove requiredTypes (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. 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 | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/resolution/constructors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/backend_impact.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend_impact.dart b/pkg/compiler/lib/src/js_backend/backend_impact.dart
index 90dba81a60a36c13749ea139a811677cca40f1d9..650645ed9ef2c1a0dfe9cf18d06a6947126c9bee 100644
--- a/pkg/compiler/lib/src/js_backend/backend_impact.dart
+++ b/pkg/compiler/lib/src/js_backend/backend_impact.dart
@@ -151,6 +151,11 @@ class BackendImpacts {
staticUses: [
helpers.compiler.symbolValidatedConstructor]);
+ BackendImpact get constSymbol => new BackendImpact(
+ instantiatedClasses: [
+ compiler.symbolClass],
+ staticUses: [
+ compiler.symbolConstructor.declaration]);
BackendImpact get incDecOperation =>
needsInt('Needed for the `+ 1` or `- 1` operation of ++/--.');
@@ -220,6 +225,8 @@ class BackendImpacts {
helpers.createRuntimeType]);
BackendImpact get stackTraceInCatch => new BackendImpact(
+ instantiatedClasses: [
+ helpers.compiler.stackTraceClass],
staticUses: [
helpers.traceFromException]);
@@ -286,4 +293,8 @@ class BackendImpacts {
// JavaScript object prototype, so we make sure
// [:defineProperty:] is compiled.
helpers.defineProperty]);
+
+ BackendImpact get closure => new BackendImpact(
+ instantiatedClasses: [
+ helpers.compiler.functionClass]);
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/resolution/constructors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698