| 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 | 7 |
| 8 // This file relies on the fact that the following declaration has been made | 8 // This file relies on the fact that the following declaration has been made |
| 9 // in runtime.js: | 9 // in runtime.js: |
| 10 // var $Set = global.Set; | 10 // var $Set = global.Set; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 } | 80 } |
| 81 | 81 |
| 82 SetUpSetIterator(); | 82 SetUpSetIterator(); |
| 83 | 83 |
| 84 | 84 |
| 85 function ExtendSetPrototype() { | 85 function ExtendSetPrototype() { |
| 86 %CheckIsBootstrapping(); | 86 %CheckIsBootstrapping(); |
| 87 | 87 |
| 88 InstallFunctions($Set.prototype, DONT_ENUM, $Array( | 88 InstallFunctions($Set.prototype, DONT_ENUM, $Array( |
| 89 'entries', SetEntries, | 89 'entries', SetEntries, |
| 90 'keys', SetValues, |
| 90 'values', SetValues | 91 'values', SetValues |
| 91 )); | 92 )); |
| 92 | 93 |
| 93 %AddProperty($Set.prototype, symbolIterator, SetValues, DONT_ENUM); | 94 %AddProperty($Set.prototype, symbolIterator, SetValues, DONT_ENUM); |
| 94 } | 95 } |
| 95 | 96 |
| 96 ExtendSetPrototype(); | 97 ExtendSetPrototype(); |
| 97 | 98 |
| 98 | 99 |
| 99 | 100 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 InstallFunctions($Map.prototype, DONT_ENUM, $Array( | 185 InstallFunctions($Map.prototype, DONT_ENUM, $Array( |
| 185 'entries', MapEntries, | 186 'entries', MapEntries, |
| 186 'keys', MapKeys, | 187 'keys', MapKeys, |
| 187 'values', MapValues | 188 'values', MapValues |
| 188 )); | 189 )); |
| 189 | 190 |
| 190 %AddProperty($Map.prototype, symbolIterator, MapEntries, DONT_ENUM); | 191 %AddProperty($Map.prototype, symbolIterator, MapEntries, DONT_ENUM); |
| 191 } | 192 } |
| 192 | 193 |
| 193 ExtendMapPrototype(); | 194 ExtendMapPrototype(); |
| OLD | NEW |