LInstruction* LChunkBuilder::DoStoreContextSlot(HStoreContextSlot* instr) {
- Abort("Unimplemented: DoStoreContextSlot"); // Temporarily disabled (whesse).
LOperand* context;
LOperand* value;
if (instr->NeedsWriteBarrier()) {
if (FLAG_debug_code) {
// Check that the object is not in new space.
NearLabel not_in_new_space;
- InNewSpace(object, scratch, not_equal, ¬_in_new_space);
+ if (addr.is(kScratchRegister)) {
+ push(kScratchRegister);
+ InNewSpace(object, scratch, not_equal, ¬_in_new_space);
+ pop(kScratchRegister);
+ } else {
+ InNewSpace(object, scratch, not_equal, ¬_in_new_space);
+ }
Abort("new-space object passed to RecordWriteHelper");
bind(¬_in_new_space);
}