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

Side by Side Diff: lib/runtime/dart_runtime.js

Issue 1177563003: Generate metadata (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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
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 var dart, dartx; 5 var dart, dartx;
6 (function (dart) { 6 (function (dart) {
7 'use strict'; 7 'use strict';
8 8
9 const defineProperty = Object.defineProperty; 9 const defineProperty = Object.defineProperty;
10 const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 10 const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 defineProperty(subclass.prototype, fieldName, { 869 defineProperty(subclass.prototype, fieldName, {
870 get: function() { return this[symbol]; }, 870 get: function() { return this[symbol]; },
871 set: function(x) { this[symbol] = x; } 871 set: function(x) { this[symbol] = x; }
872 }); 872 });
873 } 873 }
874 dart.virtualField = virtualField; 874 dart.virtualField = virtualField;
875 875
876 /** The Symbol for storing type arguments on a specialized generic type. */ 876 /** The Symbol for storing type arguments on a specialized generic type. */
877 dart.mixins = Symbol('mixins'); 877 dart.mixins = Symbol('mixins');
878 dart.implements = Symbol('implements'); 878 dart.implements = Symbol('implements');
879 dart.metadata = Symbol('metadata');
879 880
880 /** 881 /**
881 * Returns a new type that mixes members from base and all mixins. 882 * Returns a new type that mixes members from base and all mixins.
882 * 883 *
883 * Each mixin applies in sequence, with further to the right ones overriding 884 * Each mixin applies in sequence, with further to the right ones overriding
884 * previous entries. 885 * previous entries.
885 * 886 *
886 * For each mixin, we only take its own properties, not anything from its 887 * For each mixin, we only take its own properties, not anything from its
887 * superclass (prototype). 888 * superclass (prototype).
888 */ 889 */
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
1428 1429
1429 // TODO(vsm): This is referenced (as init.globalState) from 1430 // TODO(vsm): This is referenced (as init.globalState) from
1430 // isolate_helper.dart. Where should it go? 1431 // isolate_helper.dart. Where should it go?
1431 // See: https://github.com/dart-lang/dev_compiler/issues/164 1432 // See: https://github.com/dart-lang/dev_compiler/issues/164
1432 dart.globalState = null; 1433 dart.globalState = null;
1433 1434
1434 /** Dart extension members. */ 1435 /** Dart extension members. */
1435 dartx = dartx || {}; 1436 dartx = dartx || {};
1436 } 1437 }
1437 })(dart || (dart = {})); 1438 })(dart || (dart = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698