Commit 7214ddb0 authored by ricow@chromium.org's avatar ricow@chromium.org

Move const declarations out of if in assembler-x64.cc (correcting linux64 bit compile error)

Review URL: http://codereview.chromium.org/1595028

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4414 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent b7fd0858
...@@ -1138,9 +1138,9 @@ void Assembler::j(Condition cc, ...@@ -1138,9 +1138,9 @@ void Assembler::j(Condition cc,
void Assembler::jmp(Label* L) { void Assembler::jmp(Label* L) {
EnsureSpace ensure_space(this); EnsureSpace ensure_space(this);
last_pc_ = pc_; last_pc_ = pc_;
if (L->is_bound()) {
const int short_size = sizeof(int8_t); const int short_size = sizeof(int8_t);
const int long_size = sizeof(int32_t); const int long_size = sizeof(int32_t);
if (L->is_bound()) {
int offs = L->pos() - pc_offset() - 1; int offs = L->pos() - pc_offset() - 1;
ASSERT(offs <= 0); ASSERT(offs <= 0);
if (is_int8(offs - short_size)) { if (is_int8(offs - short_size)) {
......
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