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

Unified Diff: dart/lib/compiler/implementation/js_backend/native_emitter.dart

Issue 10876008: Remove most superfluous getter arguments from dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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
Index: dart/lib/compiler/implementation/js_backend/native_emitter.dart
diff --git a/dart/lib/compiler/implementation/js_backend/native_emitter.dart b/dart/lib/compiler/implementation/js_backend/native_emitter.dart
index 6f8adae121dd20e5f4c77ee13f1887316ad46430..673c98822ac3d95ef585605ddb752b5020a8c739 100644
--- a/dart/lib/compiler/implementation/js_backend/native_emitter.dart
+++ b/dart/lib/compiler/implementation/js_backend/native_emitter.dart
@@ -47,46 +47,46 @@ class NativeEmitter {
redirectingMethods = new Map<FunctionElement, String>(),
nativeBuffer = new CodeBuffer();
- Compiler get compiler() => emitter.compiler;
+ Compiler get compiler => emitter.compiler;
void addRedirectingMethod(FunctionElement element, String name) {
redirectingMethods[element] = name;
}
- String get dynamicName() {
+ String get dynamicName {
Element element = compiler.findHelper(
const SourceString('dynamicFunction'));
return compiler.namer.isolateAccess(element);
}
- String get dynamicSetMetadataName() {
+ String get dynamicSetMetadataName {
Element element = compiler.findHelper(
const SourceString('dynamicSetMetadata'));
return compiler.namer.isolateAccess(element);
}
- String get typeNameOfName() {
+ String get typeNameOfName {
Element element = compiler.findHelper(
const SourceString('getTypeNameOf'));
return compiler.namer.isolateAccess(element);
}
- String get defPropName() {
+ String get defPropName {
Element element = compiler.findHelper(
const SourceString('defineProperty'));
return compiler.namer.isolateAccess(element);
}
- String get toStringHelperName() {
+ String get toStringHelperName {
Element element = compiler.findHelper(
const SourceString('toStringForNativeObject'));
return compiler.namer.isolateAccess(element);
}
- String get defineNativeClassName()
+ String get defineNativeClassName
=> '${compiler.namer.CURRENT_ISOLATE}.\$defineNativeClass';
- String get defineNativeClassFunction() {
+ String get defineNativeClassFunction {
return """
function(cls, fields, methods) {
var generateGetterSetter = ${emitter.generateGetterSetterFunction};
« no previous file with comments | « dart/lib/compiler/implementation/js_backend/emitter.dart ('k') | dart/lib/compiler/implementation/lib/coreimpl_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698