Index: src/x64/macro-assembler-x64.cc |
=================================================================== |
--- src/x64/macro-assembler-x64.cc (revision 2261) |
+++ src/x64/macro-assembler-x64.cc (working copy) |
@@ -688,7 +688,8 @@ |
ASSERT(function.is(rdi)); |
movq(rdx, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset)); |
movq(rsi, FieldOperand(function, JSFunction::kContextOffset)); |
- movl(rbx, FieldOperand(rdx, SharedFunctionInfo::kFormalParameterCountOffset)); |
+ movsxlq(rbx, |
+ FieldOperand(rdx, SharedFunctionInfo::kFormalParameterCountOffset)); |
movq(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset)); |
// Advances rdx to the end of the Code object header, to the start of |
// the executable code. |