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

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

Issue 1413173003: Move error message makers off js builtins object. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 2 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
« no previous file with comments | « src/js/generator.js ('k') | src/js/harmony-array-includes.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 (function(global, utils) { 5 (function(global, utils) {
6 6
7 'use strict'; 7 'use strict';
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
11 // ------------------------------------------------------------------- 11 // -------------------------------------------------------------------
12 // Imports 12 // Imports
13 13
14 var FLAG_harmony_tolength; 14 var FLAG_harmony_tolength;
15 var GetIterator; 15 var GetIterator;
16 var GetMethod; 16 var GetMethod;
17 var GlobalArray = global.Array; 17 var GlobalArray = global.Array;
18 var iteratorSymbol = utils.ImportNow("iterator_symbol"); 18 var iteratorSymbol = utils.ImportNow("iterator_symbol");
19 var MakeTypeError;
19 var MaxSimple; 20 var MaxSimple;
20 var MinSimple; 21 var MinSimple;
21 var ObjectIsFrozen; 22 var ObjectIsFrozen;
22 var ObjectDefineProperty; 23 var ObjectDefineProperty;
23 24
24 utils.Import(function(from) { 25 utils.Import(function(from) {
25 FLAG_harmony_tolength = from.FLAG_harmony_tolength; 26 FLAG_harmony_tolength = from.FLAG_harmony_tolength;
26 GetIterator = from.GetIterator; 27 GetIterator = from.GetIterator;
27 GetMethod = from.GetMethod; 28 GetMethod = from.GetMethod;
29 MakeTypeError = from.MakeTypeError;
28 MaxSimple = from.MaxSimple; 30 MaxSimple = from.MaxSimple;
29 MinSimple = from.MinSimple; 31 MinSimple = from.MinSimple;
30 ObjectIsFrozen = from.ObjectIsFrozen; 32 ObjectIsFrozen = from.ObjectIsFrozen;
31 ObjectDefineProperty = from.ObjectDefineProperty; 33 ObjectDefineProperty = from.ObjectDefineProperty;
32 }); 34 });
33 35
34 // ------------------------------------------------------------------- 36 // -------------------------------------------------------------------
35 37
36 function InnerArrayCopyWithin(target, start, end, array, length) { 38 function InnerArrayCopyWithin(target, start, end, array, length) {
37 target = TO_INTEGER(target); 39 target = TO_INTEGER(target);
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 293
292 utils.Export(function(to) { 294 utils.Export(function(to) {
293 to.ArrayFrom = ArrayFrom; 295 to.ArrayFrom = ArrayFrom;
294 to.InnerArrayCopyWithin = InnerArrayCopyWithin; 296 to.InnerArrayCopyWithin = InnerArrayCopyWithin;
295 to.InnerArrayFill = InnerArrayFill; 297 to.InnerArrayFill = InnerArrayFill;
296 to.InnerArrayFind = InnerArrayFind; 298 to.InnerArrayFind = InnerArrayFind;
297 to.InnerArrayFindIndex = InnerArrayFindIndex; 299 to.InnerArrayFindIndex = InnerArrayFindIndex;
298 }); 300 });
299 301
300 }) 302 })
OLDNEW
« no previous file with comments | « src/js/generator.js ('k') | src/js/harmony-array-includes.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698