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 #import('../../lib/uri/uri.dart'); | 6 #import('../../uri/uri.dart'); |
7 #import('leg.dart'); | 7 #import('leg.dart'); |
8 #import('elements/elements.dart'); | 8 #import('elements/elements.dart'); |
9 #import('scanner/scannerlib.dart'); | 9 #import('scanner/scannerlib.dart'); |
10 #import('ssa/ssa.dart'); | 10 #import('ssa/ssa.dart'); |
11 #import('tree/tree.dart'); | 11 #import('tree/tree.dart'); |
12 #import('util/util.dart'); | 12 #import('util/util.dart'); |
13 | 13 |
14 void processNativeClasses(Compiler compiler, | 14 void processNativeClasses(Compiler compiler, |
15 Collection<LibraryElement> libraries) { | 15 Collection<LibraryElement> libraries) { |
16 for (LibraryElement library in libraries) { | 16 for (LibraryElement library in libraries) { |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 const LiteralDartString('void'), | 342 const LiteralDartString('void'), |
343 <HInstruction>[jsClosure])); | 343 <HInstruction>[jsClosure])); |
344 } | 344 } |
345 }); | 345 }); |
346 LiteralString jsCode = node.arguments.head; | 346 LiteralString jsCode = node.arguments.head; |
347 builder.push(new HForeign(jsCode.dartString, | 347 builder.push(new HForeign(jsCode.dartString, |
348 const LiteralDartString('Object'), | 348 const LiteralDartString('Object'), |
349 <HInstruction>[])); | 349 <HInstruction>[])); |
350 } | 350 } |
351 } | 351 } |
OLD | NEW |