| OLD | NEW | 
|---|
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 | 6 | 
| 7 "use strict"; | 7 "use strict"; | 
| 8 | 8 | 
| 9 %CheckIsBootstrapping(); | 9 %CheckIsBootstrapping(); | 
| 10 | 10 | 
|  | 11 // ------------------------------------------------------------------- | 
|  | 12 // Imports | 
|  | 13 | 
| 11 var GlobalMap = global.Map; | 14 var GlobalMap = global.Map; | 
| 12 var GlobalSet = global.Set; | 15 var GlobalSet = global.Set; | 
| 13 var iteratorSymbol = utils.ImportNow("iterator_symbol"); | 16 var iteratorSymbol = utils.ImportNow("iterator_symbol"); | 
|  | 17 var MakeTypeError; | 
| 14 var MapIterator = utils.ImportNow("MapIterator"); | 18 var MapIterator = utils.ImportNow("MapIterator"); | 
| 15 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); | 19 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); | 
| 16 var SetIterator = utils.ImportNow("SetIterator"); | 20 var SetIterator = utils.ImportNow("SetIterator"); | 
| 17 | 21 | 
|  | 22 utils.Import(function(from) { | 
|  | 23   MakeTypeError = from.MakeTypeError; | 
|  | 24 }); | 
|  | 25 | 
| 18 // ------------------------------------------------------------------- | 26 // ------------------------------------------------------------------- | 
| 19 | 27 | 
| 20 function SetIteratorConstructor(set, kind) { | 28 function SetIteratorConstructor(set, kind) { | 
| 21   %SetIteratorInitialize(this, set, kind); | 29   %SetIteratorInitialize(this, set, kind); | 
| 22 } | 30 } | 
| 23 | 31 | 
| 24 | 32 | 
| 25 function SetIteratorNextJS() { | 33 function SetIteratorNextJS() { | 
| 26   if (!IS_SET_ITERATOR(this)) { | 34   if (!IS_SET_ITERATOR(this)) { | 
| 27     throw MakeTypeError(kIncompatibleMethodReceiver, | 35     throw MakeTypeError(kIncompatibleMethodReceiver, | 
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 166 // Exports | 174 // Exports | 
| 167 | 175 | 
| 168 utils.Export(function(to) { | 176 utils.Export(function(to) { | 
| 169   to.MapEntries = MapEntries; | 177   to.MapEntries = MapEntries; | 
| 170   to.MapIteratorNext = MapIteratorNextJS; | 178   to.MapIteratorNext = MapIteratorNextJS; | 
| 171   to.SetIteratorNext = SetIteratorNextJS; | 179   to.SetIteratorNext = SetIteratorNextJS; | 
| 172   to.SetValues = SetValues; | 180   to.SetValues = SetValues; | 
| 173 }); | 181 }); | 
| 174 | 182 | 
| 175 }) | 183 }) | 
| OLD | NEW | 
|---|