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

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

Issue 928203003: Implement Function.apply in the new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor fix Created 5 years, 10 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 | pkg/compiler/lib/src/js_emitter/model.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/namer.dart
diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart
index ac3965889516ed15b83070d2484dfeb40a729e9e..8df84a562f0979f1430950e40e5191493520f089 100644
--- a/pkg/compiler/lib/src/js_backend/namer.dart
+++ b/pkg/compiler/lib/src/js_backend/namer.dart
@@ -223,7 +223,8 @@ class Namer implements ClosureNamer {
final String superPrefix = r'super$';
final String metadataField = '@';
final String callPrefix = 'call';
- final String callCatchAllName = r'call$catchAll';
+ final String callCatchAllName = r'call*';
+ final String callNameField = r'$callName';
final String reflectableField = r'$reflectable';
final String reflectionInfoField = r'$reflectionInfo';
final String reflectionNameField = r'$reflectionName';
@@ -233,6 +234,7 @@ class Namer implements ClosureNamer {
r'$methodsWithOptionalArguments';
final String classDescriptorProperty = r'^';
+ final String requiredParameterField = r'$requiredArgCount';
// Name of property in a class description for the native dispatch metadata.
final String nativeSpecProperty = '%';
@@ -307,6 +309,9 @@ class Namer implements ClosureNamer {
case 'CALL_CATCH_ALL': return callCatchAllName;
case 'REFLECTABLE': return reflectableField;
case 'CLASS_DESCRIPTOR_PROPERTY': return classDescriptorProperty;
+ case 'REQUIRED_PARAMETER_PROPERTY': return requiredParameterField;
+ case 'DEFAULT_VALUES_PROPERTY': return defaultValuesField;
+ case 'CALL_NAME_PROPERTY': return callNameField;
default:
compiler.reportError(
node, MessageKind.GENERIC,
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698