Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index f9e81f836abe0ec5a55db20f7fefc677a382109c..5250f474369a367a57016f6fa0f38c705bb85928 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4084,7 +4084,7 @@ void StringCharCodeAtGenerator::GenerateFast(MacroAssembler* masm) { |
Heap::kEmptyStringRootIndex); |
__ j(not_equal, &call_runtime_); |
// Get the first of the two strings and load its instance type. |
- ASSERT(kScratchRegister != scratch_); |
+ ASSERT(!kScratchRegister.is(scratch_)); |
__ movq(kScratchRegister, FieldOperand(object_, ConsString::kFirstOffset)); |
__ jmp(&assure_seq_string, Label::kNear); |