Fix x64 compilation error. Patch from tfarina@chromium.org

http://codereview.chromium.org/3442004/show

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5466 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 4d99cef8
...@@ -1989,7 +1989,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) { ...@@ -1989,7 +1989,7 @@ void RegExpExecStub::Generate(MacroAssembler* masm) {
__ j(negative, &done); __ j(negative, &done);
// Read the value from the static offsets vector buffer and make it a smi. // Read the value from the static offsets vector buffer and make it a smi.
__ movl(rdi, Operand(rcx, rdx, times_int_size, 0)); __ movl(rdi, Operand(rcx, rdx, times_int_size, 0));
__ Integer32ToSmi(rdi, rdi, &runtime); __ Integer32ToSmi(rdi, rdi);
// Store the smi value in the last match info. // Store the smi value in the last match info.
__ movq(FieldOperand(rbx, __ movq(FieldOperand(rbx,
rdx, rdx,
......
// Copyright 2009 the V8 project authors. All rights reserved. // Copyright 2010 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without // Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are // modification, are permitted provided that the following conditions are
// met: // met:
...@@ -1015,7 +1015,6 @@ void MacroAssembler::SmiSub(Register dst, ...@@ -1015,7 +1015,6 @@ void MacroAssembler::SmiSub(Register dst,
const Operand& src2) { const Operand& src2) {
// No overflow checking. Use only when it's known that // No overflow checking. Use only when it's known that
// overflowing is impossible (e.g., subtracting two positive smis). // overflowing is impossible (e.g., subtracting two positive smis).
ASSERT(!dst.is(src2));
if (dst.is(src1)) { if (dst.is(src1)) {
subq(dst, src2); subq(dst, src2);
} else { } else {
......
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