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

Unified Diff: src/harmony-typedarray.js

Issue 1100673002: Wrap harmony implementations in functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/harmony-tostring.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/harmony-typedarray.js
diff --git a/src/harmony-typedarray.js b/src/harmony-typedarray.js
index a3bbf1a9b1f16e9ac75f5b214cc5ccec0b9c01d5..7fc01cb801a9e6470899c042a9f09ce9a6c3992d 100644
--- a/src/harmony-typedarray.js
+++ b/src/harmony-typedarray.js
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+(function() {
+
"use strict";
-// This file relies on the fact that the following declaration has been made
-// in runtime.js:
-// var $Array = global.Array;
+%CheckIsBootstrapping();
// -------------------------------------------------------------------
@@ -72,10 +72,7 @@ endmacro
TYPED_ARRAYS(TYPED_ARRAY_HARMONY_ADDITIONS)
-function HarmonyTypedArrayExtendPrototypes() {
macro EXTEND_TYPED_ARRAY(ARRAY_ID, NAME, ELEMENT_SIZE)
- %CheckIsBootstrapping();
-
// Set up non-enumerable functions on the object.
InstallFunctions(global.NAME, DONT_ENUM | DONT_DELETE | READ_ONLY, [
"of", NAMEOf
@@ -87,7 +84,6 @@ macro EXTEND_TYPED_ARRAY(ARRAY_ID, NAME, ELEMENT_SIZE)
]);
endmacro
- TYPED_ARRAYS(EXTEND_TYPED_ARRAY)
-}
+TYPED_ARRAYS(EXTEND_TYPED_ARRAY)
-HarmonyTypedArrayExtendPrototypes();
+})();
« no previous file with comments | « src/harmony-tostring.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698