Commit c91f5606 authored by lrn@chromium.org's avatar lrn@chromium.org

Fix smi-comparison to use correct macros in X64-SwapElements.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6079 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent e24362b5
...@@ -6784,9 +6784,9 @@ void CodeGenerator::GenerateSwapElements(ZoneList<Expression*>* args) { ...@@ -6784,9 +6784,9 @@ void CodeGenerator::GenerateSwapElements(ZoneList<Expression*>* args) {
// Check that both indices are valid. // Check that both indices are valid.
__ movq(tmp2.reg(), FieldOperand(object.reg(), JSArray::kLengthOffset)); __ movq(tmp2.reg(), FieldOperand(object.reg(), JSArray::kLengthOffset));
__ cmpl(tmp2.reg(), index1.reg()); __ SmiCompare(tmp2.reg(), index1.reg());
deferred->Branch(below_equal); deferred->Branch(below_equal);
__ cmpl(tmp2.reg(), index2.reg()); __ SmiCompare(tmp2.reg(), index2.reg());
deferred->Branch(below_equal); deferred->Branch(below_equal);
// Bring addresses into index1 and index2. // Bring addresses into index1 and index2.
......
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