Chromium Code Reviews| 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); |