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

Unified Diff: src/debug/mirrors.js

Issue 2732213005: Revert "This is a speculative chain of reverts to improve a Chrome" (Closed)
Patch Set: merge Created 3 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 | « src/builtins/builtins-sharedarraybuffer.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/mirrors.js
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js
index b534fecdc41bb4e741dd374802e61e58a931318a..8096f2c54e00607c6dc7697bb6902e297ad86c7b 100644
--- a/src/debug/mirrors.js
+++ b/src/debug/mirrors.js
@@ -11,17 +11,10 @@
var GlobalArray = global.Array;
var IsNaN = global.isNaN;
var JSONStringify = global.JSON.stringify;
-var MapEntries;
-var MapIteratorNext;
-var SetIteratorNext;
-var SetValues;
-
-utils.Import(function(from) {
- MapEntries = from.MapEntries;
- MapIteratorNext = from.MapIteratorNext;
- SetIteratorNext = from.SetIteratorNext;
- SetValues = from.SetValues;
-});
+var MapEntries = global.Map.prototype.entries;
+var MapIteratorNext = (new global.Map).entries().next;
+var SetIteratorNext = (new global.Set).values().next;
+var SetValues = global.Set.prototype.values;
// ----------------------------------------------------------------------------
« no previous file with comments | « src/builtins/builtins-sharedarraybuffer.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698