| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.fletch_backend; | 5 library fletchc.fletch_backend; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 Future; | 8 Future; |
| 9 | 9 |
| 10 import 'package:compiler/src/dart2jslib.dart' show | 10 import 'package:compiler/src/dart2jslib.dart' show |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 mintClass = loadClass("_Mint", compiler.coreLibrary, true).element; | 332 mintClass = loadClass("_Mint", compiler.coreLibrary, true).element; |
| 333 stringClass = loadClass("_StringImpl", compiler.coreLibrary, true).element; | 333 stringClass = loadClass("_StringImpl", compiler.coreLibrary, true).element; |
| 334 // TODO(ahe): Register _ConstantList through ResolutionCallbacks. | 334 // TODO(ahe): Register _ConstantList through ResolutionCallbacks. |
| 335 loadClass(constantListName, fletchSystemLibrary, true); | 335 loadClass(constantListName, fletchSystemLibrary, true); |
| 336 loadClass(constantMapName, fletchSystemLibrary, true); | 336 loadClass(constantMapName, fletchSystemLibrary, true); |
| 337 loadClass("_DoubleImpl", compiler.coreLibrary, true); | 337 loadClass("_DoubleImpl", compiler.coreLibrary, true); |
| 338 loadClass("Null", compiler.coreLibrary, true); | 338 loadClass("Null", compiler.coreLibrary, true); |
| 339 loadClass("bool", compiler.coreLibrary, true); | 339 loadClass("bool", compiler.coreLibrary, true); |
| 340 coroutineClass = loadClass("Coroutine", compiler.coreLibrary, true).element; | 340 coroutineClass = loadClass("Coroutine", compiler.coreLibrary, true).element; |
| 341 loadClass("Port", compiler.coreLibrary, true); | 341 loadClass("Port", compiler.coreLibrary, true); |
| 342 loadClass("Foreign", fletchFFILibrary, true); | 342 loadClass("ForeignMemory", fletchFFILibrary, true); |
| 343 loadClass("ForeignPointer", fletchFFILibrary, true); |
| 343 | 344 |
| 344 growableListClass = | 345 growableListClass = |
| 345 loadClass(growableListName, fletchSystemLibrary).element; | 346 loadClass(growableListName, fletchSystemLibrary).element; |
| 346 // The linked hash map depends on LinkedHashMap. | 347 // The linked hash map depends on LinkedHashMap. |
| 347 loadClass("LinkedHashMap", collectionLibrary).element; | 348 loadClass("LinkedHashMap", collectionLibrary).element; |
| 348 linkedHashMapClass = | 349 linkedHashMapClass = |
| 349 loadClass(linkedHashMapName, collectionLibrary).element; | 350 loadClass(linkedHashMapName, collectionLibrary).element; |
| 350 // Register list constructors to world. | 351 // Register list constructors to world. |
| 351 // TODO(ahe): Register growableListClass through ResolutionCallbacks. | 352 // TODO(ahe): Register growableListClass through ResolutionCallbacks. |
| 352 growableListClass.constructors.forEach(world.registerStaticUse); | 353 growableListClass.constructors.forEach(world.registerStaticUse); |
| (...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1384 return false; | 1385 return false; |
| 1385 } | 1386 } |
| 1386 int index = 0; | 1387 int index = 0; |
| 1387 bool match = true; | 1388 bool match = true; |
| 1388 for (var parameter in signature.orderedOptionalParameters) { | 1389 for (var parameter in signature.orderedOptionalParameters) { |
| 1389 if (parameter.name != callStructure.namedArguments[index++]) return false; | 1390 if (parameter.name != callStructure.namedArguments[index++]) return false; |
| 1390 } | 1391 } |
| 1391 return true; | 1392 return true; |
| 1392 } | 1393 } |
| 1393 } | 1394 } |
| OLD | NEW |