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

Side by Side Diff: src/js/typedarray.js

Issue 1879053003: Replace DefineIndexedProperty with %CreateDataProperty (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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/runtime.js ('k') | src/runtime/runtime.h » ('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 AddIndexedProperty;
15 // array.js has to come before typedarray.js for this to work 14 // array.js has to come before typedarray.js for this to work
16 var ArrayToString = utils.ImportNow("ArrayToString"); 15 var ArrayToString = utils.ImportNow("ArrayToString");
17 var ArrayValues; 16 var ArrayValues;
18 var GetIterator; 17 var GetIterator;
19 var GetMethod; 18 var GetMethod;
20 var GlobalArray = global.Array; 19 var GlobalArray = global.Array;
21 var GlobalArrayBuffer = global.ArrayBuffer; 20 var GlobalArrayBuffer = global.ArrayBuffer;
22 var GlobalArrayBufferPrototype = GlobalArrayBuffer.prototype; 21 var GlobalArrayBufferPrototype = GlobalArrayBuffer.prototype;
23 var GlobalDataView = global.DataView; 22 var GlobalDataView = global.DataView;
24 var GlobalObject = global.Object; 23 var GlobalObject = global.Object;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 FUNCTION(9, Uint8ClampedArray, 1) 63 FUNCTION(9, Uint8ClampedArray, 1)
65 endmacro 64 endmacro
66 65
67 macro DECLARE_GLOBALS(INDEX, NAME, SIZE) 66 macro DECLARE_GLOBALS(INDEX, NAME, SIZE)
68 var GlobalNAME = global.NAME; 67 var GlobalNAME = global.NAME;
69 endmacro 68 endmacro
70 69
71 TYPED_ARRAYS(DECLARE_GLOBALS) 70 TYPED_ARRAYS(DECLARE_GLOBALS)
72 71
73 utils.Import(function(from) { 72 utils.Import(function(from) {
74 AddIndexedProperty = from.AddIndexedProperty;
75 ArrayValues = from.ArrayValues; 73 ArrayValues = from.ArrayValues;
76 GetIterator = from.GetIterator; 74 GetIterator = from.GetIterator;
77 GetMethod = from.GetMethod; 75 GetMethod = from.GetMethod;
78 InnerArrayCopyWithin = from.InnerArrayCopyWithin; 76 InnerArrayCopyWithin = from.InnerArrayCopyWithin;
79 InnerArrayEvery = from.InnerArrayEvery; 77 InnerArrayEvery = from.InnerArrayEvery;
80 InnerArrayFill = from.InnerArrayFill; 78 InnerArrayFill = from.InnerArrayFill;
81 InnerArrayFilter = from.InnerArrayFilter; 79 InnerArrayFilter = from.InnerArrayFilter;
82 InnerArrayFind = from.InnerArrayFind; 80 InnerArrayFind = from.InnerArrayFind;
83 InnerArrayFindIndex = from.InnerArrayFindIndex; 81 InnerArrayFindIndex = from.InnerArrayFindIndex;
84 InnerArrayForEach = from.InnerArrayForEach; 82 InnerArrayForEach = from.InnerArrayForEach;
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 "setUint32", DataViewSetUint32JS, 980 "setUint32", DataViewSetUint32JS,
983 981
984 "getFloat32", DataViewGetFloat32JS, 982 "getFloat32", DataViewGetFloat32JS,
985 "setFloat32", DataViewSetFloat32JS, 983 "setFloat32", DataViewSetFloat32JS,
986 984
987 "getFloat64", DataViewGetFloat64JS, 985 "getFloat64", DataViewGetFloat64JS,
988 "setFloat64", DataViewSetFloat64JS 986 "setFloat64", DataViewSetFloat64JS
989 ]); 987 ]);
990 988
991 }) 989 })
OLDNEW
« no previous file with comments | « src/js/runtime.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698