Revision: 6104
Author: [email protected]
Date: Wed Dec 22 01:55:19 2010
Log: Use Assembler::Set() to assign constants to registers in more places.
Commit of http://codereview.chromium.org/6016007/ .
http://code.google.com/p/v8/source/detail?r=6104
Modified:
/branches/bleeding_edge/src/ia32/full-codegen-ia32.cc
/branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc
=======================================
--- /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Mon Dec 20
05:52:14 2010
+++ /branches/bleeding_edge/src/ia32/full-codegen-ia32.cc Wed Dec 22
01:55:19 2010
@@ -379,7 +379,7 @@
void FullCodeGenerator::AccumulatorValueContext::Plug(
Handle<Object> lit) const {
- __ mov(result_register(), lit);
+ __ Set(result_register(), Immediate(lit));
}
=======================================
--- /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Mon Dec 20
05:52:14 2010
+++ /branches/bleeding_edge/src/ia32/lithium-codegen-ia32.cc Wed Dec 22
01:55:19 2010
@@ -940,7 +940,7 @@
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::DoConstantT(LConstantT* instr) {
ASSERT(instr->result()->IsRegister());
- __ mov(ToRegister(instr->result()), Immediate(instr->value()));
+ __ Set(ToRegister(instr->result()), Immediate(instr->value()));
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev