Skip to content

Commit

Permalink
Merge pull request #651 from undingen/inc_jit_rewriter2
Browse files Browse the repository at this point in the history
Add a new JIT tier which is tightly coupled to the AST Interpreter
  • Loading branch information
kmod committed Jul 6, 2015
2 parents 1ef88c1 + 5358470 commit dbe7866
Show file tree
Hide file tree
Showing 20 changed files with 1,825 additions and 345 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ add_library(PYSTON_OBJECTS OBJECT ${OPTIONAL_SRCS}
capi/object.cpp
capi/typeobject.cpp
codegen/ast_interpreter.cpp
codegen/baseline_jit.cpp
codegen/codegen.cpp
codegen/compvars.cpp
codegen/entry.cpp
Expand Down
1 change: 0 additions & 1 deletion src/asm_writing/icinfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ void ICSlotRewrite::commit(CommitHook* hook) {
if (!do_commit)
return;

assert(assembler->isExactlyFull());
assert(!assembler->hasFailed());

for (int i = 0; i < dependencies.size(); i++) {
Expand Down
3 changes: 1 addition & 2 deletions src/asm_writing/icinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ class ICSlotRewrite {

ICSlotInfo* ic_entry;

ICSlotRewrite(ICInfo* ic, const char* debug_name);

public:
ICSlotRewrite(ICInfo* ic, const char* debug_name);
~ICSlotRewrite();

assembler::Assembler* getAssembler() { return assembler; }
Expand Down
2 changes: 1 addition & 1 deletion src/asm_writing/rewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ void Rewriter::_call(RewriterVar* result, bool has_side_effects, void* func_addr
assembler->callq(r);
} else {
assembler->call(assembler::Immediate(offset));
assert(asm_address == (uint64_t)assembler->curInstPointer());
assert(assembler->hasFailed() || asm_address == (uint64_t)assembler->curInstPointer());
}

assert(vars_by_location.count(assembler::RAX) == 0);
Expand Down

0 comments on commit dbe7866

Please sign in to comment.