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

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

Issue 1161553002: Fix harmony-sharedarraybuffer implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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, shared, exports) { 5 (function(global, utils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
11 var GlobalSharedArrayBuffer = global.SharedArrayBuffer; 11 var GlobalSharedArrayBuffer = global.SharedArrayBuffer;
12 var GlobalObject = global.Object; 12 var GlobalObject = global.Object;
13 13
14 // ------------------------------------------------------------------- 14 // -------------------------------------------------------------------
15 15
(...skipping 23 matching lines...) Expand all
39 %SetCode(GlobalSharedArrayBuffer, SharedArrayBufferConstructor); 39 %SetCode(GlobalSharedArrayBuffer, SharedArrayBufferConstructor);
40 %FunctionSetPrototype(GlobalSharedArrayBuffer, new GlobalObject()); 40 %FunctionSetPrototype(GlobalSharedArrayBuffer, new GlobalObject());
41 41
42 // Set up the constructor property on the SharedArrayBuffer prototype object. 42 // Set up the constructor property on the SharedArrayBuffer prototype object.
43 %AddNamedProperty(GlobalSharedArrayBuffer.prototype, "constructor", 43 %AddNamedProperty(GlobalSharedArrayBuffer.prototype, "constructor",
44 GlobalSharedArrayBuffer, DONT_ENUM); 44 GlobalSharedArrayBuffer, DONT_ENUM);
45 45
46 %AddNamedProperty(GlobalSharedArrayBuffer.prototype, 46 %AddNamedProperty(GlobalSharedArrayBuffer.prototype,
47 symbolToStringTag, "SharedArrayBuffer", DONT_ENUM | READ_ONLY); 47 symbolToStringTag, "SharedArrayBuffer", DONT_ENUM | READ_ONLY);
48 48
49 $installGetter(GlobalSharedArrayBuffer.prototype, "byteLength", 49 utils.InstallGetter(GlobalSharedArrayBuffer.prototype, "byteLength",
50 SharedArrayBufferGetByteLen); 50 SharedArrayBufferGetByteLen);
51 51
52 $installFunctions(GlobalSharedArrayBuffer, DONT_ENUM, [ 52 utils.InstallFunctions(GlobalSharedArrayBuffer, DONT_ENUM, [
53 "isView", SharedArrayBufferIsViewJS 53 "isView", SharedArrayBufferIsViewJS
54 ]); 54 ]);
55 55
56 }) 56 })
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698