OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 #include "src/compiler/code-generator-impl.h" | 6 #include "src/compiler/code-generator-impl.h" |
7 #include "src/compiler/gap-resolver.h" | 7 #include "src/compiler/gap-resolver.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/osr.h" | 9 #include "src/compiler/osr.h" |
10 #include "src/mips/macro-assembler-mips.h" | 10 #include "src/mips/macro-assembler-mips.h" |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 __ CheckPageFlag(value_, scratch0_, | 234 __ CheckPageFlag(value_, scratch0_, |
235 MemoryChunk::kPointersToHereAreInterestingMask, eq, | 235 MemoryChunk::kPointersToHereAreInterestingMask, eq, |
236 exit()); | 236 exit()); |
237 } | 237 } |
238 SaveFPRegsMode const save_fp_mode = | 238 SaveFPRegsMode const save_fp_mode = |
239 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; | 239 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; |
240 // TODO(turbofan): Once we get frame elision working, we need to save | 240 // TODO(turbofan): Once we get frame elision working, we need to save |
241 // and restore lr properly here if the frame was elided. | 241 // and restore lr properly here if the frame was elided. |
242 RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_, | 242 RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_, |
243 EMIT_REMEMBERED_SET, save_fp_mode); | 243 EMIT_REMEMBERED_SET, save_fp_mode); |
244 __ Addu(scratch1_, object_, index_); | 244 __ Daddu(scratch1_, object_, index_); |
245 __ CallStub(&stub); | 245 __ CallStub(&stub); |
246 } | 246 } |
247 | 247 |
248 private: | 248 private: |
249 Register const object_; | 249 Register const object_; |
250 Register const index_; | 250 Register const index_; |
251 Register const value_; | 251 Register const value_; |
252 Register const scratch0_; | 252 Register const scratch0_; |
253 Register const scratch1_; | 253 Register const scratch1_; |
254 RecordWriteMode const mode_; | 254 RecordWriteMode const mode_; |
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1661 padding_size -= v8::internal::Assembler::kInstrSize; | 1661 padding_size -= v8::internal::Assembler::kInstrSize; |
1662 } | 1662 } |
1663 } | 1663 } |
1664 } | 1664 } |
1665 | 1665 |
1666 #undef __ | 1666 #undef __ |
1667 | 1667 |
1668 } // namespace compiler | 1668 } // namespace compiler |
1669 } // namespace internal | 1669 } // namespace internal |
1670 } // namespace v8 | 1670 } // namespace v8 |
OLD | NEW |