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

Side by Side Diff: lib/compiler/implementation/js_backend/constant_emitter.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of js_backend;
6
5 class ConstantEmitter implements ConstantVisitor { 7 class ConstantEmitter implements ConstantVisitor {
6 final Compiler compiler; 8 final Compiler compiler;
7 final Namer namer; 9 final Namer namer;
8 10
9 CodeBuffer buffer; 11 CodeBuffer buffer;
10 bool shouldEmitCanonicalVersion; 12 bool shouldEmitCanonicalVersion;
11 13
12 ConstantEmitter(this.compiler, this.namer); 14 ConstantEmitter(this.compiler, this.namer);
13 15
14 /** 16 /**
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 buffer.add(getJsConstructor(constant.type.element)); 245 buffer.add(getJsConstructor(constant.type.element));
244 buffer.add("("); 246 buffer.add("(");
245 for (int i = 0; i < constant.fields.length; i++) { 247 for (int i = 0; i < constant.fields.length; i++) {
246 if (i != 0) buffer.add(", "); 248 if (i != 0) buffer.add(", ");
247 _visit(constant.fields[i]); 249 _visit(constant.fields[i]);
248 } 250 }
249 buffer.add(")"); 251 buffer.add(")");
250 } 252 }
251 } 253 }
252 } 254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698