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 library native; | 5 library native; |
6 | 6 |
7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
8 import 'dart:uri'; | |
9 import 'dart2jslib.dart' hide SourceString; | 8 import 'dart2jslib.dart' hide SourceString; |
10 import 'dart_types.dart'; | 9 import 'dart_types.dart'; |
11 import 'elements/elements.dart'; | 10 import 'elements/elements.dart'; |
12 import 'js_backend/js_backend.dart'; | 11 import 'js_backend/js_backend.dart'; |
13 import 'resolution/resolution.dart' show ResolverVisitor; | 12 import 'resolution/resolution.dart' show ResolverVisitor; |
14 import 'scanner/scannerlib.dart'; | 13 import 'scanner/scannerlib.dart'; |
15 import 'ssa/ssa.dart'; | 14 import 'ssa/ssa.dart'; |
16 import 'tree/tree.dart'; | 15 import 'tree/tree.dart'; |
17 import 'universe/universe.dart' show SideEffects; | 16 import 'universe/universe.dart' show SideEffects; |
18 import 'util/util.dart'; | 17 import 'util/util.dart'; |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 'native "..." syntax is restricted to functions with zero parameters', | 1015 'native "..." syntax is restricted to functions with zero parameters', |
1017 node: nativeBody); | 1016 node: nativeBody); |
1018 } | 1017 } |
1019 LiteralString jsCode = nativeBody.asLiteralString(); | 1018 LiteralString jsCode = nativeBody.asLiteralString(); |
1020 builder.push(new HForeign.statement( | 1019 builder.push(new HForeign.statement( |
1021 new js.LiteralStatement(jsCode.dartString.slowToString()), | 1020 new js.LiteralStatement(jsCode.dartString.slowToString()), |
1022 <HInstruction>[], | 1021 <HInstruction>[], |
1023 new SideEffects())); | 1022 new SideEffects())); |
1024 } | 1023 } |
1025 } | 1024 } |
OLD | NEW |