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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart

Issue 18026002: Get rid of this code. Doesn't seem necessary anymore. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
index e502f250bf7fed1141a5ba8c4230a62406e86f1d..8896b991262d6438f6b6d486d841e18dec40aac7 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart
@@ -2883,16 +2883,6 @@ if (typeof document !== "undefined" && document.readyState !== "complete") {
js.if_(js('receiver instanceof #',
js(namer.isolateAccess(compiler.objectClass))),
js.return_(js('receiver'))));
-
- // TODO(sra): Fold this 'Object' check into the `getNativeInterceptor`
- // check by patching `Object.prototype` with a special hook function.
- // TODO(9556): This test is needed in plain non-browser code because
- // 'holders' are not Dart classes.
- block.statements.add(
- js.if_(
- js('Object.getPrototypeOf(receiver) === Object.prototype'),
- buildReturnInterceptor(backend.jsInterceptorClass)));
-
block.statements.add(
js.return_(
js(namer.isolateAccess(backend.getNativeInterceptorMethod))(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698