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; | 14 var MapEntries = global.Map.prototype.entries; |
15 var MapIteratorNext; | 15 var MapIteratorNext = (new global.Map).entries().next; |
16 var SetIteratorNext; | 16 var SetIteratorNext = (new global.Set).values().next; |
17 var SetValues; | 17 var SetValues = global.Set.prototype.values; |
18 | |
19 utils.Import(function(from) { | |
20 MapEntries = from.MapEntries; | |
21 MapIteratorNext = from.MapIteratorNext; | |
22 SetIteratorNext = from.SetIteratorNext; | |
23 SetValues = from.SetValues; | |
24 }); | |
25 | 18 |
26 // ---------------------------------------------------------------------------- | 19 // ---------------------------------------------------------------------------- |
27 | 20 |
28 // Mirror hierarchy: | 21 // Mirror hierarchy: |
29 // - Mirror | 22 // - Mirror |
30 // - ValueMirror | 23 // - ValueMirror |
31 // - UndefinedMirror | 24 // - UndefinedMirror |
32 // - NullMirror | 25 // - NullMirror |
33 // - BooleanMirror | 26 // - BooleanMirror |
34 // - NumberMirror | 27 // - NumberMirror |
(...skipping 2366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2401 "GeneratorMirror", GeneratorMirror, | 2394 "GeneratorMirror", GeneratorMirror, |
2402 "PropertyMirror", PropertyMirror, | 2395 "PropertyMirror", PropertyMirror, |
2403 "InternalPropertyMirror", InternalPropertyMirror, | 2396 "InternalPropertyMirror", InternalPropertyMirror, |
2404 "FrameMirror", FrameMirror, | 2397 "FrameMirror", FrameMirror, |
2405 "ScriptMirror", ScriptMirror, | 2398 "ScriptMirror", ScriptMirror, |
2406 "ScopeMirror", ScopeMirror, | 2399 "ScopeMirror", ScopeMirror, |
2407 "FrameDetails", FrameDetails, | 2400 "FrameDetails", FrameDetails, |
2408 ]); | 2401 ]); |
2409 | 2402 |
2410 }) | 2403 }) |
OLD | NEW |