Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Side by Side Diff: src/compiler/mips64/code-generator-mips64.cc

Issue 1435793002: MIPS64: Fix after [turbofan] Avoid unnecessary write barriers and improve code generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698