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

Unified Diff: src/codegen.cc

Issue 13339: Experimental: thread the virtual frame through the deferred code... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years 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/codegen.h ('k') | src/codegen-ia32.cc » ('j') | src/codegen-ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegen.cc
===================================================================
--- src/codegen.cc (revision 954)
+++ src/codegen.cc (working copy)
@@ -40,6 +40,8 @@
DeferredCode::DeferredCode(CodeGenerator* generator)
: masm_(generator->masm()),
generator_(generator),
+ enter_(generator),
+ exit_(generator),
statement_position_(masm_->last_statement_position()),
position_(masm_->last_position()) {
generator->AddDeferred(this);
@@ -61,11 +63,11 @@
masm->RecordPosition(code->position());
}
// Bind labels and generate the code.
- masm->bind(code->enter());
+ code->enter()->Bind();
Comment cmnt(masm, code->comment());
code->Generate();
if (code->exit()->is_bound()) {
- masm->jmp(code->exit()); // platform independent?
+ code->exit()->Jump();
}
}
}
@@ -122,9 +124,6 @@
return Handle<Code>::null();
}
- // Process any deferred code.
- cgen.ProcessDeferred();
-
// Allocate and install the code.
CodeDesc desc;
cgen.masm()->GetCode(&desc);
« no previous file with comments | « src/codegen.h ('k') | src/codegen-ia32.cc » ('j') | src/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698