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

Unified Diff: lib/runtime/dart/core.js

Issue 1043003002: keep mixin and interface implementation info at runtime (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/core.js
diff --git a/lib/runtime/dart/core.js b/lib/runtime/dart/core.js
index e7f8d94a451a7fd5c57b897a8076b3f9d974bd8c..64d5a5661df6d324d1eaf0bc34950d3de9d2e322 100644
--- a/lib/runtime/dart/core.js
+++ b/lib/runtime/dart/core.js
@@ -315,6 +315,7 @@ var core;
return dart.as(_js_helper.Primitives.getWeekday(this), int);
}
}
+ DateTime[dart.implements] = [Comparable];
dart.defineNamedConstructor(DateTime, 'utc');
dart.defineNamedConstructor(DateTime, 'now');
dart.defineNamedConstructor(DateTime, 'fromMillisecondsSinceEpoch');
@@ -371,6 +372,7 @@ var core;
return 0.0;
}
}
+ num[dart.implements] = [Comparable$(num)];
num._parseError = false;
class double extends num {
static parse(source, onError) {
@@ -493,6 +495,7 @@ var core;
return new Duration[_microseconds](-dart.notNull(this[_duration]));
}
}
+ Duration[dart.implements] = [Comparable$(Duration)];
dart.defineNamedConstructor(Duration, _microseconds);
Duration.MICROSECONDS_PER_MILLISECOND = 1000;
Duration.MILLISECONDS_PER_SECOND = 1000;
@@ -718,6 +721,7 @@ var core;
return `RangeError: ${this.message} (${target}[${this.invalidValue}]): ${explanation}`;
}
}
+ IndexError[dart.implements] = [RangeError];
class FallThroughError extends Error {
FallThroughError() {
super.Error();
@@ -807,6 +811,7 @@ var core;
return this.message !== null ? `UnimplementedError: ${this.message}` : "UnimplementedError";
}
}
+ UnimplementedError[dart.implements] = [UnsupportedError];
class StateError extends Error {
StateError(message) {
this.message = message;
@@ -840,6 +845,7 @@ var core;
return null;
}
}
+ OutOfMemoryError[dart.implements] = [Error];
class StackOverflowError extends Object {
StackOverflowError() {
}
@@ -850,6 +856,7 @@ var core;
return null;
}
}
+ StackOverflowError[dart.implements] = [Error];
class CyclicInitializationError extends Error {
CyclicInitializationError(variableName) {
if (variableName === void 0)
@@ -880,6 +887,7 @@ var core;
return `Exception: ${this.message}`;
}
}
+ _ExceptionImplementation[dart.implements] = [Exception];
class FormatException extends Object {
FormatException(message, source, offset) {
if (message === void 0)
@@ -968,6 +976,7 @@ var core;
return `${report}${prefix}${slice}${postfix}\n${String['*'](" ", markOffset)}^\n`;
}
}
+ FormatException[dart.implements] = [Exception];
class IntegerDivisionByZeroException extends Object {
IntegerDivisionByZeroException() {
}
@@ -975,6 +984,7 @@ var core;
return "IntegerDivisionByZeroException";
}
}
+ IntegerDivisionByZeroException[dart.implements] = [Exception];
let _EXPANDO_PROPERTY_NAME = dart.JsSymbol('_EXPANDO_PROPERTY_NAME');
let _getKey = dart.JsSymbol('_getKey');
let _KEY_PROPERTY_NAME = dart.JsSymbol('_KEY_PROPERTY_NAME');
@@ -1134,6 +1144,7 @@ var core;
return n;
}
}
+ _GeneratorIterable[dart.implements] = [_internal.EfficientLength];
dart.defineNamedConstructor(_GeneratorIterable, 'slice');
return _GeneratorIterable;
});
@@ -1162,12 +1173,14 @@ var core;
return this[_current];
}
}
+ _GeneratorIterator[dart.implements] = [Iterator$(E)];
return _GeneratorIterator;
});
let _GeneratorIterator = _GeneratorIterator$(dart.dynamic);
let BidirectionalIterator$ = dart.generic(function(E) {
class BidirectionalIterator extends Object {
}
+ BidirectionalIterator[dart.implements] = [Iterator$(E)];
return BidirectionalIterator;
});
let BidirectionalIterator = BidirectionalIterator$(dart.dynamic);
@@ -1217,6 +1230,7 @@ var core;
return result;
}
}
+ List[dart.implements] = [Iterable$(E), _internal.EfficientLength];
dart.defineNamedConstructor(List, 'filled');
dart.defineNamedConstructor(List, 'from');
dart.defineNamedConstructor(List, 'generate');
@@ -1278,6 +1292,7 @@ var core;
return new _js_helper.JSSyntaxRegExp(source, {multiLine: multiLine, caseSensitive: caseSensitive});
}
}
+ RegExp[dart.implements] = [Pattern];
let Set$ = dart.generic(function(E) {
class Set extends collection.IterableBase$(E) {
Set() {
@@ -1290,6 +1305,7 @@ var core;
return new collection.LinkedHashSet.from(elements);
}
}
+ Set[dart.implements] = [_internal.EfficientLength];
dart.defineNamedConstructor(Set, 'identity');
dart.defineNamedConstructor(Set, 'from');
return Set;
@@ -1424,6 +1440,7 @@ var core;
return _js_helper.Primitives.stringFromCharCodes(list);
}
}
+ String[dart.implements] = [Comparable$(String), Pattern];
dart.defineNamedConstructor(String, 'fromCharCodes');
dart.defineNamedConstructor(String, 'fromCharCode');
dart.defineNamedConstructor(String, 'fromEnvironment');
@@ -1561,6 +1578,7 @@ var core;
return true;
}
}
+ RuneIterator[dart.implements] = [BidirectionalIterator$(int)];
dart.defineNamedConstructor(RuneIterator, 'at');
let _contents = dart.JsSymbol('_contents');
let _writeString = dart.JsSymbol('_writeString');
@@ -1619,6 +1637,7 @@ var core;
this[_contents] = _js_helper.Primitives.stringConcatUnchecked(this[_contents], dart.as(str, String));
}
}
+ StringBuffer[dart.implements] = [StringSink];
class StringSink extends Object {
}
class Symbol extends Object {
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698