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

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

Issue 1302533002: Native context: debug.js does not load from js builtins object anymore. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: make importing requirement more explicit Created 5 years, 4 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/debug/mirrors.js ('k') | src/harmony-atomics.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 GetIterator;
15 var GetMethod;
14 var GlobalArray = global.Array; 16 var GlobalArray = global.Array;
15 var GlobalSymbol = global.Symbol; 17 var GlobalSymbol = global.Symbol;
16
17 var GetIterator;
18 var GetMethod;
19 var MathMax; 18 var MathMax;
20 var MathMin; 19 var MathMin;
21 var ObjectIsFrozen; 20 var ObjectIsFrozen;
22 var ObjectDefineProperty; 21 var ObjectDefineProperty;
22 var ToNumber;
23 23
24 utils.Import(function(from) { 24 utils.Import(function(from) {
25 GetIterator = from.GetIterator; 25 GetIterator = from.GetIterator;
26 GetMethod = from.GetMethod; 26 GetMethod = from.GetMethod;
27 MathMax = from.MathMax; 27 MathMax = from.MathMax;
28 MathMin = from.MathMin; 28 MathMin = from.MathMin;
29 ObjectIsFrozen = from.ObjectIsFrozen; 29 ObjectIsFrozen = from.ObjectIsFrozen;
30 ObjectDefineProperty = from.ObjectDefineProperty; 30 ObjectDefineProperty = from.ObjectDefineProperty;
31 ToNumber = from.ToNumber;
31 }); 32 });
32 33
33 // ------------------------------------------------------------------- 34 // -------------------------------------------------------------------
34 35
35 function InnerArrayCopyWithin(target, start, end, array, length) { 36 function InnerArrayCopyWithin(target, start, end, array, length) {
36 target = TO_INTEGER(target); 37 target = TO_INTEGER(target);
37 var to; 38 var to;
38 if (target < 0) { 39 if (target < 0) {
39 to = MathMax(length + target, 0); 40 to = MathMax(length + target, 0);
40 } else { 41 } else {
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 313
313 utils.Export(function(to) { 314 utils.Export(function(to) {
314 to.ArrayFrom = ArrayFrom; 315 to.ArrayFrom = ArrayFrom;
315 to.InnerArrayCopyWithin = InnerArrayCopyWithin; 316 to.InnerArrayCopyWithin = InnerArrayCopyWithin;
316 to.InnerArrayFill = InnerArrayFill; 317 to.InnerArrayFill = InnerArrayFill;
317 to.InnerArrayFind = InnerArrayFind; 318 to.InnerArrayFind = InnerArrayFind;
318 to.InnerArrayFindIndex = InnerArrayFindIndex; 319 to.InnerArrayFindIndex = InnerArrayFindIndex;
319 }); 320 });
320 321
321 }) 322 })
OLDNEW
« no previous file with comments | « src/debug/mirrors.js ('k') | src/harmony-atomics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698