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

Unified Diff: src/harmony-sharedarraybuffer.js

Issue 1398733002: Move builtin JavaScript sources into own directory. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Also move macros.py file. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/harmony-regexp.js ('k') | src/harmony-simd.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-sharedarraybuffer.js
diff --git a/src/harmony-sharedarraybuffer.js b/src/harmony-sharedarraybuffer.js
deleted file mode 100644
index 3a72d6c353b1c8df75f96484152100e78d23e709..0000000000000000000000000000000000000000
--- a/src/harmony-sharedarraybuffer.js
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2015 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-(function(global, utils) {
-
-"use strict";
-
-%CheckIsBootstrapping();
-
-var GlobalSharedArrayBuffer = global.SharedArrayBuffer;
-var GlobalObject = global.Object;
-var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
-
-// -------------------------------------------------------------------
-
-function SharedArrayBufferConstructor(length) { // length = 1
- if (%_IsConstructCall()) {
- var byteLength = $toPositiveInteger(length, kInvalidArrayBufferLength);
- %ArrayBufferInitialize(this, byteLength, kShared);
- } else {
- throw MakeTypeError(kConstructorNotFunction, "SharedArrayBuffer");
- }
-}
-
-function SharedArrayBufferGetByteLen() {
- if (!IS_SHAREDARRAYBUFFER(this)) {
- throw MakeTypeError(kIncompatibleMethodReceiver,
- 'SharedArrayBuffer.prototype.byteLength', this);
- }
- return %_ArrayBufferGetByteLength(this);
-}
-
-function SharedArrayBufferIsViewJS(obj) {
- return %ArrayBufferIsView(obj);
-}
-
-
-// Set up the SharedArrayBuffer constructor function.
-%SetCode(GlobalSharedArrayBuffer, SharedArrayBufferConstructor);
-%FunctionSetPrototype(GlobalSharedArrayBuffer, new GlobalObject());
-
-// Set up the constructor property on the SharedArrayBuffer prototype object.
-%AddNamedProperty(GlobalSharedArrayBuffer.prototype, "constructor",
- GlobalSharedArrayBuffer, DONT_ENUM);
-
-%AddNamedProperty(GlobalSharedArrayBuffer.prototype,
- toStringTagSymbol, "SharedArrayBuffer", DONT_ENUM | READ_ONLY);
-
-utils.InstallGetter(GlobalSharedArrayBuffer.prototype, "byteLength",
- SharedArrayBufferGetByteLen);
-
-utils.InstallFunctions(GlobalSharedArrayBuffer, DONT_ENUM, [
- "isView", SharedArrayBufferIsViewJS
-]);
-
-})
« no previous file with comments | « src/harmony-regexp.js ('k') | src/harmony-simd.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698