Commit 446b1f44 authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Correct dumb assert.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3331 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ce20b5b4
...@@ -3328,7 +3328,7 @@ void CodeGenerator::GenerateFastCharCodeAt(ZoneList<Expression*>* args) { ...@@ -3328,7 +3328,7 @@ void CodeGenerator::GenerateFastCharCodeAt(ZoneList<Expression*>* args) {
// 2-byte string. We can add without shifting since the Smi tag size is the // 2-byte string. We can add without shifting since the Smi tag size is the
// log2 of the number of bytes in a two-byte character. // log2 of the number of bytes in a two-byte character.
ASSERT_EQ(1, kSmiTagSize); ASSERT_EQ(1, kSmiTagSize);
ASSERT_EQ(1, kSmiShiftSize); ASSERT_EQ(0, kSmiShiftSize);
__ add(r1, r1, Operand(r0)); __ add(r1, r1, Operand(r0));
__ ldrh(r0, FieldMemOperand(r1, SeqTwoByteString::kHeaderSize)); __ ldrh(r0, FieldMemOperand(r1, SeqTwoByteString::kHeaderSize));
__ mov(r0, Operand(r0, LSL, kSmiTagSize)); __ mov(r0, Operand(r0, LSL, kSmiTagSize));
......
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