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

Side by Side Diff: src/array-iterator.js

Issue 1309243003: ES6: Array.prototype.slice and friends should use ToLength instead of ToUint32 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use a TO_LENGTH macro instead of the ToLengthFlagged function Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 var $arrayValues; 5 var $arrayValues;
6 6
7 (function(global, utils) { 7 (function(global, utils) {
8 8
9 "use strict"; 9 "use strict";
10 10
11 %CheckIsBootstrapping(); 11 %CheckIsBootstrapping();
12 12
13 // ----------------------------------------------------------------------- 13 // -----------------------------------------------------------------------
14 // Imports 14 // Imports
15 15
16 var arrayIterationKindSymbol = 16 var arrayIterationKindSymbol =
17 utils.ImportNow("array_iteration_kind_symbol"); 17 utils.ImportNow("array_iteration_kind_symbol");
18 var arrayIteratorNextIndexSymbol = 18 var arrayIteratorNextIndexSymbol =
19 utils.ImportNow("array_iterator_next_symbol"); 19 utils.ImportNow("array_iterator_next_symbol");
20 var arrayIteratorObjectSymbol = 20 var arrayIteratorObjectSymbol =
21 utils.ImportNow("array_iterator_object_symbol"); 21 utils.ImportNow("array_iterator_object_symbol");
22 var GlobalArray = global.Array; 22 var GlobalArray = global.Array;
23 var iteratorSymbol = utils.ImportNow("iterator_symbol"); 23 var iteratorSymbol = utils.ImportNow("iterator_symbol");
24 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); 24 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
25 25
26
26 macro TYPED_ARRAYS(FUNCTION) 27 macro TYPED_ARRAYS(FUNCTION)
27 FUNCTION(Uint8Array) 28 FUNCTION(Uint8Array)
28 FUNCTION(Int8Array) 29 FUNCTION(Int8Array)
29 FUNCTION(Uint16Array) 30 FUNCTION(Uint16Array)
30 FUNCTION(Int16Array) 31 FUNCTION(Int16Array)
31 FUNCTION(Uint32Array) 32 FUNCTION(Uint32Array)
32 FUNCTION(Int32Array) 33 FUNCTION(Int32Array)
33 FUNCTION(Float32Array) 34 FUNCTION(Float32Array)
34 FUNCTION(Float64Array) 35 FUNCTION(Float64Array)
35 FUNCTION(Uint8ClampedArray) 36 FUNCTION(Uint8ClampedArray)
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 TYPED_ARRAYS(EXTEND_TYPED_ARRAY) 160 TYPED_ARRAYS(EXTEND_TYPED_ARRAY)
160 161
161 // ------------------------------------------------------------------- 162 // -------------------------------------------------------------------
162 // Exports 163 // Exports
163 164
164 $arrayValues = ArrayValues; 165 $arrayValues = ArrayValues;
165 166
166 %InstallToContext(["array_values_iterator", ArrayValues]); 167 %InstallToContext(["array_values_iterator", ArrayValues]);
167 168
168 }) 169 })
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/bootstrapper.cc » ('j') | src/heap/heap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698