[interpreter] Fix GCMole warning.
authorrmcilroy <rmcilroy@chromium.org>
Thu, 23 Jul 2015 15:57:01 +0000 (08:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Jul 2015 15:57:12 +0000 (15:57 +0000)
Fix GCMole warning from r29814 (7877c4e0c77b5c2b97678406eab7e9ad6eba4a4d).

BUG=v8:4280
LOG=N
NOTREECHECKS=true
TBR=machenbach,mstarzinger

Review URL: https://codereview.chromium.org/1243893004

Cr-Commit-Position: refs/heads/master@{#29818}

src/interpreter/interpreter.cc

index 4e16d28199c8e0d04dacdc4c4322cd3bd93e5714..b6c9ebfb6869562da930ea5350b6050eca71095e 100644 (file)
@@ -30,13 +30,13 @@ void Interpreter::Initialize(bool create_heap_objects) {
         static_cast<int>(Bytecode::kLast) + 1, TENURED);
     isolate_->heap()->public_set_interpreter_table(*handler_table);
 
-#define GENERATE_CODE(Name, _)                                     \
-    {                                                              \
-      compiler::InterpreterAssembler assembler(isolate_, &zone,     \
-                                               Bytecode::k##Name); \
-      Do##Name(&assembler);                                        \
-      handler_table->set(static_cast<int>(Bytecode::k##Name),      \
-                         *assembler.GenerateCode());               \
+#define GENERATE_CODE(Name, _)                                         \
+    {                                                                  \
+      compiler::InterpreterAssembler assembler(isolate_, &zone,        \
+                                               Bytecode::k##Name);     \
+      Do##Name(&assembler);                                            \
+      Handle<Code> code = assembler.GenerateCode();                    \
+      handler_table->set(static_cast<int>(Bytecode::k##Name), *code);  \
     }
     BYTECODE_LIST(GENERATE_CODE)
 #undef GENERATE_CODE