Skip to content

Commit

Permalink
Fix error about emit constant pool
Browse files Browse the repository at this point in the history
- Can't emit constant pool in deconstruct func.
- Forced emit when jump a target.
  • Loading branch information
luyahan authored and obycode committed Sep 17, 2020
1 parent cc79d24 commit f91ac74
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/codegen/riscv64/assembler-riscv64.h
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ class V8_EXPORT_PRIVATE Assembler : public AssemblerBase {
std::unique_ptr<AssemblerBuffer> = {});

virtual ~Assembler() {
ForceConstantPoolEmissionWithoutJump();
CHECK(constpool_.IsEmpty());
}

Expand Down
2 changes: 1 addition & 1 deletion src/codegen/riscv64/macro-assembler-riscv64.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2877,7 +2877,7 @@ void TurboAssembler::Jump(Register target, Condition cond, Register rs,
BlockTrampolinePoolScope block_trampoline_pool(this);
if (cond == cc_always) {
jr(target);
EmitConstPoolWithJumpIfNeeded();
ForceConstantPoolEmissionWithoutJump();
} else {
BRANCH_ARGS_CHECK(cond, rs, rt);
Branch(kInstrSize * 2, NegateCondition(cond), rs, rt);
Expand Down

0 comments on commit f91ac74

Please sign in to comment.