OLD | NEW |
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 | |
7 class NativeEmitter { | 5 class NativeEmitter { |
8 | 6 |
9 CodeEmitterTask emitter; | 7 CodeEmitterTask emitter; |
10 CodeBuffer nativeBuffer; | 8 CodeBuffer nativeBuffer; |
11 | 9 |
12 // Classes that participate in dynamic dispatch. These are the | 10 // Classes that participate in dynamic dispatch. These are the |
13 // classes that contain used members. | 11 // classes that contain used members. |
14 Set<ClassElement> classesWithDynamicDispatch; | 12 Set<ClassElement> classesWithDynamicDispatch; |
15 | 13 |
16 // Native classes found in the application. | 14 // Native classes found in the application. |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 if (!first) targetBuffer.add(",\n"); | 473 if (!first) targetBuffer.add(",\n"); |
476 targetBuffer.add(" $name: $function"); | 474 targetBuffer.add(" $name: $function"); |
477 first = false; | 475 first = false; |
478 }); | 476 }); |
479 targetBuffer.add("\n});\n\n"); | 477 targetBuffer.add("\n});\n\n"); |
480 } | 478 } |
481 targetBuffer.add(nativeBuffer); | 479 targetBuffer.add(nativeBuffer); |
482 targetBuffer.add('\n'); | 480 targetBuffer.add('\n'); |
483 } | 481 } |
484 } | 482 } |
OLD | NEW |