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

Side by Side Diff: src/harmony-typedarray.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/harmony-regexp.js ('k') | src/i18n.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 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
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 var InnerArrayJoin; 44 var InnerArrayJoin;
45 var InnerArrayLastIndexOf; 45 var InnerArrayLastIndexOf;
46 var InnerArrayMap; 46 var InnerArrayMap;
47 var InnerArraySome; 47 var InnerArraySome;
48 var InnerArraySort; 48 var InnerArraySort;
49 var InnerArrayToLocaleString; 49 var InnerArrayToLocaleString;
50 var IsNaN; 50 var IsNaN;
51 var MathMax; 51 var MathMax;
52 var MathMin; 52 var MathMin;
53 var PackedArrayReverse; 53 var PackedArrayReverse;
54 var ToNumber;
54 55
55 utils.Import(function(from) { 56 utils.Import(function(from) {
56 ArrayFrom = from.ArrayFrom; 57 ArrayFrom = from.ArrayFrom;
57 ArrayToString = from.ArrayToString; 58 ArrayToString = from.ArrayToString;
58 InnerArrayCopyWithin = from.InnerArrayCopyWithin; 59 InnerArrayCopyWithin = from.InnerArrayCopyWithin;
59 InnerArrayEvery = from.InnerArrayEvery; 60 InnerArrayEvery = from.InnerArrayEvery;
60 InnerArrayFill = from.InnerArrayFill; 61 InnerArrayFill = from.InnerArrayFill;
61 InnerArrayFilter = from.InnerArrayFilter; 62 InnerArrayFilter = from.InnerArrayFilter;
62 InnerArrayFind = from.InnerArrayFind; 63 InnerArrayFind = from.InnerArrayFind;
63 InnerArrayFindIndex = from.InnerArrayFindIndex; 64 InnerArrayFindIndex = from.InnerArrayFindIndex;
64 InnerArrayForEach = from.InnerArrayForEach; 65 InnerArrayForEach = from.InnerArrayForEach;
65 InnerArrayIndexOf = from.InnerArrayIndexOf; 66 InnerArrayIndexOf = from.InnerArrayIndexOf;
66 InnerArrayJoin = from.InnerArrayJoin; 67 InnerArrayJoin = from.InnerArrayJoin;
67 InnerArrayLastIndexOf = from.InnerArrayLastIndexOf; 68 InnerArrayLastIndexOf = from.InnerArrayLastIndexOf;
68 InnerArrayMap = from.InnerArrayMap; 69 InnerArrayMap = from.InnerArrayMap;
69 InnerArrayReduce = from.InnerArrayReduce; 70 InnerArrayReduce = from.InnerArrayReduce;
70 InnerArrayReduceRight = from.InnerArrayReduceRight; 71 InnerArrayReduceRight = from.InnerArrayReduceRight;
71 InnerArraySome = from.InnerArraySome; 72 InnerArraySome = from.InnerArraySome;
72 InnerArraySort = from.InnerArraySort; 73 InnerArraySort = from.InnerArraySort;
73 InnerArrayToLocaleString = from.InnerArrayToLocaleString; 74 InnerArrayToLocaleString = from.InnerArrayToLocaleString;
74 IsNaN = from.IsNaN; 75 IsNaN = from.IsNaN;
75 MathMax = from.MathMax; 76 MathMax = from.MathMax;
76 MathMin = from.MathMin; 77 MathMin = from.MathMin;
77 PackedArrayReverse = from.PackedArrayReverse; 78 PackedArrayReverse = from.PackedArrayReverse;
79 ToNumber = from.ToNumber;
78 }); 80 });
79 81
80 // ------------------------------------------------------------------- 82 // -------------------------------------------------------------------
81 83
82 function ConstructTypedArray(constructor, arg) { 84 function ConstructTypedArray(constructor, arg) {
83 // TODO(littledan): This is an approximation of the spec, which requires 85 // TODO(littledan): This is an approximation of the spec, which requires
84 // that only real TypedArray classes should be accepted (22.2.2.1.1) 86 // that only real TypedArray classes should be accepted (22.2.2.1.1)
85 if (!%IsConstructor(constructor) || IS_UNDEFINED(constructor.prototype) || 87 if (!%IsConstructor(constructor) || IS_UNDEFINED(constructor.prototype) ||
86 !%HasOwnProperty(constructor.prototype, "BYTES_PER_ELEMENT")) { 88 !%HasOwnProperty(constructor.prototype, "BYTES_PER_ELEMENT")) {
87 throw MakeTypeError(kNotTypedArray); 89 throw MakeTypeError(kNotTypedArray);
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 "some", TypedArraySome, 406 "some", TypedArraySome,
405 "sort", TypedArraySort, 407 "sort", TypedArraySort,
406 "toString", TypedArrayToString, 408 "toString", TypedArrayToString,
407 "toLocaleString", TypedArrayToLocaleString 409 "toLocaleString", TypedArrayToLocaleString
408 ]); 410 ]);
409 endmacro 411 endmacro
410 412
411 TYPED_ARRAYS(EXTEND_TYPED_ARRAY) 413 TYPED_ARRAYS(EXTEND_TYPED_ARRAY)
412 414
413 }) 415 })
OLDNEW
« no previous file with comments | « src/harmony-regexp.js ('k') | src/i18n.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698