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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/private/ddc_runtime/operations.dart

Issue 2477673006: Get the basics of deferred libraries working. (Closed)
Patch Set: Rebase against latest. Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// This library defines runtime operations on objects used by the code 5 /// This library defines runtime operations on objects used by the code
6 /// generator. 6 /// generator.
7 part of dart._runtime; 7 part of dart._runtime;
8 8
9 class InvocationImpl extends Invocation { 9 class InvocationImpl extends Invocation {
10 final Symbol memberName; 10 final Symbol memberName;
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 if (obj != null && getExtensionType(obj) != null) { 840 if (obj != null && getExtensionType(obj) != null) {
841 return JS('', 'dartx.#', name); 841 return JS('', 'dartx.#', name);
842 } 842 }
843 843
844 // Check for certain names that we can't use in JS 844 // Check for certain names that we can't use in JS
845 if (name == 'constructor' || name == 'prototype') { 845 if (name == 'constructor' || name == 'prototype') {
846 name = '+' + name; 846 name = '+' + name;
847 } 847 }
848 return name; 848 return name;
849 } 849 }
850
851 /// Emulates the implicit "loadLibrary" function provided by a deferred library.
852 ///
853 /// Libraries are not actually deferred in DDC, so this just returns a future
854 /// that completes immediately.
855 Future loadLibrary() => new Future.value();
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/browser/language_tests.js ('k') | pkg/dev_compiler/tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698