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

Unified Diff: src/weakmap.js

Issue 7830036: Optimize isFinite and isNaN. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Made the change general by moving putting it in the NUMBER_IS_FINITE macro. Created 9 years, 3 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/v8natives.js ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/weakmap.js
diff --git a/src/weakmap.js b/src/weakmap.js
index 6c15e30fb6f3b6dfb82d565e1293818f3221165a..3d261e5afda2e18502f3af41661b96cdd977258b 100644
--- a/src/weakmap.js
+++ b/src/weakmap.js
@@ -80,8 +80,7 @@ function WeakMapDelete(key) {
// -------------------------------------------------------------------
-(function () {
- %CheckIsBootstrapping();
+function SetupWeakMap() {
// Set up the WeakMap constructor function.
%SetCode($WeakMap, WeakMapConstructor);
@@ -98,4 +97,7 @@ function WeakMapDelete(key) {
"has", WeakMapHas,
"delete", WeakMapDelete
));
-})();
+}
+
+
+SetupWeakMap();
« no previous file with comments | « src/v8natives.js ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698