Basic ContextPromotionPass and some opcode info rearranging.

This commit is contained in:
Ben Vanik
2013-12-07 04:39:48 -08:00
parent 51d0be0f0a
commit 329b554c7a
25 changed files with 907 additions and 617 deletions

View File

@@ -15,9 +15,11 @@
using namespace alloy;
using namespace alloy::compiler;
using namespace alloy::hir;
using namespace alloy::runtime;
Compiler::Compiler() {
Compiler::Compiler(Runtime* runtime) :
runtime_(runtime) {
alloy::tracing::WriteEvent(EventType::Init({
}));
}
@@ -35,6 +37,7 @@ Compiler::~Compiler() {
}
void Compiler::AddPass(Pass* pass) {
pass->Initialize(this);
passes_.push_back(pass);
}