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

Unified Diff: vm/compiler.cc

Issue 10030001: Resubmit change 6302 after fixing the compiler warning on older GCC compiler versions: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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
Index: vm/compiler.cc
===================================================================
--- vm/compiler.cc (revision 6329)
+++ vm/compiler.cc (working copy)
@@ -7,7 +7,6 @@
#include "vm/assembler.h"
#include "vm/ast_printer.h"
#include "vm/code_generator.h"
-#include "vm/code_index_table.h"
#include "vm/code_patcher.h"
#include "vm/dart_entry.h"
#include "vm/debugger.h"
@@ -129,8 +128,6 @@
Parser::ParseFunction(&parsed_function);
parsed_function.AllocateVariables();
- CodeIndexTable* code_index_table = isolate->code_index_table();
- ASSERT(code_index_table != NULL);
bool is_compiled = false;
if (FLAG_use_new_compiler) {
ASSERT(!optimized);
@@ -162,7 +159,6 @@
function.set_unoptimized_code(code);
function.SetCode(code);
ASSERT(CodePatcher::CodeIsPatchable(code));
- code_index_table->AddCode(code);
is_compiled = true;
} else {
// We bailed out.
@@ -200,7 +196,6 @@
code_gen.FinalizeStackmaps(code);
code_gen.FinalizeExceptionHandlers(code);
function.SetCode(code);
- code_index_table->AddCode(code);
CodePatcher::PatchEntry(Code::Handle(function.unoptimized_code()));
if (FLAG_trace_compiler) {
OS::Print("--> patching entry 0x%x\n",
@@ -223,7 +218,6 @@
function.set_unoptimized_code(code);
function.SetCode(code);
ASSERT(CodePatcher::CodeIsPatchable(code));
- code_index_table->AddCode(code);
} else {
// Disable optimized code.
ASSERT(function.HasOptimizedCode());
@@ -378,12 +372,6 @@
const Code& code = Code::Handle(Code::FinalizeCode(kEvalConst, &assembler));
func.SetCode(code);
- CodeIndexTable* code_index_table = isolate->code_index_table();
- ASSERT(code_index_table != NULL);
- code_index_table->AddCode(code);
- // TODO(hausner): We need a way to remove these one-time execution
- // functions from the global code description (PC mapping) tables so
- // we don't pollute the system unnecessarily with stale data.
code_gen.FinalizePcDescriptors(code);
code_gen.FinalizeStackmaps(code);
code_gen.FinalizeExceptionHandlers(code);
« no previous file with comments | « vm/code_index_table_test.cc ('k') | vm/debugger.cc » ('j') | vm/stack_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698