Commit 4330070e authored by whesse@chromium.org's avatar whesse@chromium.org

Use Assembler::Set() to assign constants to registers in more places. Commit...

Use Assembler::Set() to assign constants to registers in more places.  Commit of http://codereview.chromium.org/6016007/ .


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6104 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 92d163e1
......@@ -379,7 +379,7 @@ void FullCodeGenerator::EffectContext::Plug(Handle<Object> lit) const {
void FullCodeGenerator::AccumulatorValueContext::Plug(
Handle<Object> lit) const {
__ mov(result_register(), lit);
__ Set(result_register(), Immediate(lit));
}
......
......@@ -940,7 +940,7 @@ void LCodeGen::DoSubI(LSubI* instr) {
void LCodeGen::DoConstantI(LConstantI* instr) {
ASSERT(instr->result()->IsRegister());
__ mov(ToRegister(instr->result()), instr->value());
__ Set(ToRegister(instr->result()), Immediate(instr->value()));
}
......@@ -973,7 +973,7 @@ void LCodeGen::DoConstantD(LConstantD* instr) {
void LCodeGen::DoConstantT(LConstantT* instr) {
ASSERT(instr->result()->IsRegister());
__ mov(ToRegister(instr->result()), Immediate(instr->value()));
__ Set(ToRegister(instr->result()), Immediate(instr->value()));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment