| Index: src/x64/lithium-codegen-x64.cc
|
| diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
|
| index ff9caa527c5649ba12481ad1bc132a342467376e..e006ba8492842606ec3901d6e1f8dfa271c4c276 100644
|
| --- a/src/x64/lithium-codegen-x64.cc
|
| +++ b/src/x64/lithium-codegen-x64.cc
|
| @@ -3929,6 +3929,10 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
|
| if (representation.IsSmi() &&
|
| hinstr->value()->representation().IsInteger32()) {
|
| ASSERT(hinstr->store_mode() == STORE_TO_INITIALIZED_ENTRY);
|
| +#ifdef DEBUG
|
| + __ movq(kScratchRegister, FieldOperand(write_register, offset));
|
| + __ AssertSmi(kScratchRegister);
|
| +#endif
|
| // Store int value directly to upper half of the smi.
|
| STATIC_ASSERT(kSmiTag == 0);
|
| STATIC_ASSERT(kSmiTagSize + kSmiShiftSize == 32);
|
|
|