OLD | NEW |
1 // Copyright 2006-2012 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 (function(global, utils) { | 5 (function(global, utils) { |
6 "use strict"; | 6 "use strict"; |
7 | 7 |
8 // ---------------------------------------------------------------------------- | 8 // ---------------------------------------------------------------------------- |
9 // Imports | 9 // Imports |
10 | 10 |
11 var GlobalArray = global.Array; | 11 var GlobalArray = global.Array; |
12 var IsNaN = global.isNaN; | 12 var IsNaN = global.isNaN; |
13 var JSONStringify = global.JSON.stringify; | 13 var JSONStringify = global.JSON.stringify; |
14 var MapEntries = global.Map.prototype.entries; | 14 var MapEntries; |
15 var MapIteratorNext = (new global.Map).entries().next; | 15 var MapIteratorNext; |
16 var SetIteratorNext = (new global.Set).values().next; | 16 var SetIteratorNext; |
17 var SetValues = global.Set.prototype.values; | 17 var SetValues; |
| 18 |
| 19 utils.Import(function(from) { |
| 20 MapEntries = from.MapEntries; |
| 21 MapIteratorNext = from.MapIteratorNext; |
| 22 SetIteratorNext = from.SetIteratorNext; |
| 23 SetValues = from.SetValues; |
| 24 }); |
18 | 25 |
19 // ---------------------------------------------------------------------------- | 26 // ---------------------------------------------------------------------------- |
20 | 27 |
21 // Mirror hierarchy: | 28 // Mirror hierarchy: |
22 // - Mirror | 29 // - Mirror |
23 // - ValueMirror | 30 // - ValueMirror |
24 // - UndefinedMirror | 31 // - UndefinedMirror |
25 // - NullMirror | 32 // - NullMirror |
26 // - BooleanMirror | 33 // - BooleanMirror |
27 // - NumberMirror | 34 // - NumberMirror |
(...skipping 2366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2394 "GeneratorMirror", GeneratorMirror, | 2401 "GeneratorMirror", GeneratorMirror, |
2395 "PropertyMirror", PropertyMirror, | 2402 "PropertyMirror", PropertyMirror, |
2396 "InternalPropertyMirror", InternalPropertyMirror, | 2403 "InternalPropertyMirror", InternalPropertyMirror, |
2397 "FrameMirror", FrameMirror, | 2404 "FrameMirror", FrameMirror, |
2398 "ScriptMirror", ScriptMirror, | 2405 "ScriptMirror", ScriptMirror, |
2399 "ScopeMirror", ScopeMirror, | 2406 "ScopeMirror", ScopeMirror, |
2400 "FrameDetails", FrameDetails, | 2407 "FrameDetails", FrameDetails, |
2401 ]); | 2408 ]); |
2402 | 2409 |
2403 }) | 2410 }) |
OLD | NEW |