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

Side by Side Diff: lib/compiler/implementation/js_backend/native_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 NativeEmitter { 7 class NativeEmitter {
6 8
7 CodeEmitterTask emitter; 9 CodeEmitterTask emitter;
8 CodeBuffer nativeBuffer; 10 CodeBuffer nativeBuffer;
9 11
10 // Classes that participate in dynamic dispatch. These are the 12 // Classes that participate in dynamic dispatch. These are the
11 // classes that contain used members. 13 // classes that contain used members.
12 Set<ClassElement> classesWithDynamicDispatch; 14 Set<ClassElement> classesWithDynamicDispatch;
13 15
14 // Native classes found in the application. 16 // Native classes found in the application.
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 if (!first) targetBuffer.add(",\n"); 475 if (!first) targetBuffer.add(",\n");
474 targetBuffer.add(" $name: $function"); 476 targetBuffer.add(" $name: $function");
475 first = false; 477 first = false;
476 }); 478 });
477 targetBuffer.add("\n});\n\n"); 479 targetBuffer.add("\n});\n\n");
478 } 480 }
479 targetBuffer.add(nativeBuffer); 481 targetBuffer.add(nativeBuffer);
480 targetBuffer.add('\n'); 482 targetBuffer.add('\n');
481 } 483 }
482 } 484 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/js_backend/namer.dart ('k') | lib/compiler/implementation/library_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698