Commit 5a8d9a42 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fix ARM debug build breakage caused by r4468

TBR=ager@chromium.org
Review URL: http://codereview.chromium.org/1730005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4469 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 968a5244
...@@ -368,7 +368,7 @@ bool Assembler::IsLdrRegisterImmediate(Instr instr) { ...@@ -368,7 +368,7 @@ bool Assembler::IsLdrRegisterImmediate(Instr instr) {
int Assembler::GetLdrRegisterImmediateOffset(Instr instr) { int Assembler::GetLdrRegisterImmediateOffset(Instr instr) {
ASSERT(IsLDRRegisterImmediate(instr)); ASSERT(IsLdrRegisterImmediate(instr));
bool positive = (instr & B23) == B23; bool positive = (instr & B23) == B23;
int offset = instr & Off12Mask; // Zero extended offset. int offset = instr & Off12Mask; // Zero extended offset.
return positive ? offset : -offset; return positive ? offset : -offset;
...@@ -376,7 +376,7 @@ int Assembler::GetLdrRegisterImmediateOffset(Instr instr) { ...@@ -376,7 +376,7 @@ int Assembler::GetLdrRegisterImmediateOffset(Instr instr) {
Instr Assembler::SetLdrRegisterImmediateOffset(Instr instr, int offset) { Instr Assembler::SetLdrRegisterImmediateOffset(Instr instr, int offset) {
ASSERT(IsLDRRegisterImmediate(instr)); ASSERT(IsLdrRegisterImmediate(instr));
bool positive = offset >= 0; bool positive = offset >= 0;
if (!positive) offset = -offset; if (!positive) offset = -offset;
ASSERT(is_uint12(offset)); ASSERT(is_uint12(offset));
......
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