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

Unified Diff: src/bootstrapper.cc

Issue 3398014: Fix possible evaluation order problems. (Closed)
Patch Set: fixed more places Created 10 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
« src/api.cc ('K') | « src/api.cc ('k') | src/compilation-cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 1f125026843f98e7228de81f58d13cca725f66f0..f464e2c31580695fd12540ebe81028596eaa4ead 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1413,8 +1413,14 @@ void Genesis::InstallJSFunctionResultCaches() {
Handle<FixedArray> caches = Factory::NewFixedArray(kNumberOfCaches, TENURED);
int index = 0;
-#define F(size, func) caches->set(index++, CreateCache(size, func));
+
+#define F(size, func) do { \
+ FixedArray* cache = CreateCache(size, func); \
+ caches->set(index++, cache); \
+ } while (false);
Erik Corry 2010/09/23 07:53:28 You need to lose the semicolon here.
+
JSFUNCTION_RESULT_CACHE_LIST(F)
+
#undef F
global_context()->set_jsfunction_result_caches(*caches);
« src/api.cc ('K') | « src/api.cc ('k') | src/compilation-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698