| 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 |
| 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 Loading... |
| 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 } |
| OLD | NEW |