Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: pkg/fletchc/lib/src/fletch_backend.dart

Issue 1209033003: Work in progres, please take a look and give early feedback if this is the way we want to structure… (Closed) Base URL: git@github.com:dart-lang/fletch.git@master
Patch Set: address comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/typed_data/typed_data_patch.dart ('k') | pkg/service/lib/struct.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « lib/typed_data/typed_data_patch.dart ('k') | pkg/service/lib/struct.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698