Revision: 7010 Author: [email protected] Date: Tue Mar 1 23:52:14 2011 Log: X64: Always use rax as left register from DoInstanceOfKnownGlobal.
On IA32 we use InstanceofStub::left(), but on x64 we have just used rax and rdx directly. This fixes the assertion crashes on x64 crankshaft.
Review URL: http://codereview.chromium.org/6596101 http://code.google.com/p/v8/source/detail?r=7010 Modified: /branches/bleeding_edge/src/x64/lithium-x64.cc ======================================= --- /branches/bleeding_edge/src/x64/lithium-x64.cc Tue Mar 1 08:32:30 2011 +++ /branches/bleeding_edge/src/x64/lithium-x64.cc Tue Mar 1 23:52:14 2011 @@ -1158,7 +1158,7 @@ LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( HInstanceOfKnownGlobal* instr) { LInstanceOfKnownGlobal* result = - new LInstanceOfKnownGlobal(UseRegisterAtStart(instr->value())); + new LInstanceOfKnownGlobal(UseFixed(instr->value(), rax)); return MarkAsCall(DefineFixed(result, rax), instr); } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
