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

Unified Diff: lib/runtime/dart_sdk.js

Issue 1988683004: Use _extensionType for detecting prototype inheritance. (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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:
Download patch
« no previous file with comments | « no previous file | tool/input_sdk/private/ddc_runtime/classes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_sdk.js
diff --git a/lib/runtime/dart_sdk.js b/lib/runtime/dart_sdk.js
index 955cf5c259eb4cd2ac4fc56f05c032ddccab75ef..c20b605ac83675c99549fc39097853ce94b0c16c 100644
--- a/lib/runtime/dart_sdk.js
+++ b/lib/runtime/dart_sdk.js
@@ -202,9 +202,9 @@ dart_library.library('dart_sdk', null, /* Imports */[
};
dart._installProperties = function(jsProto, extProto) {
let coreObjProto = core.Object.prototype;
- let installedParent = dart._installedDartPeers.get(jsProto.__proto__);
+ let parentsExtension = jsProto.__proto__[dart._extensionType];
+ let installedParent = parentsExtension && parentsExtension.prototype;
dart._installProperties2(jsProto, extProto, coreObjProto, installedParent);
- dart._installedDartPeers.set(jsProto, extProto);
};
dart._installProperties2 = function(jsProto, extProto, coreObjProto, installedParent) {
if (extProto === coreObjProto) {
@@ -1010,7 +1010,6 @@ dart_library.library('dart_sdk', null, /* Imports */[
dart._staticSig = Symbol("sigStatic");
dart._extensionType = Symbol("extensionType");
dart.dartx = dartx;
- dart._installedDartPeers = new Map();
dart._jsIterator = Symbol("_jsIterator");
dart._current = Symbol("_current");
dart._AsyncStarStreamController = class _AsyncStarStreamController {
« no previous file with comments | « no previous file | tool/input_sdk/private/ddc_runtime/classes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698