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

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

Issue 1714513003: [turbofan] Fix write barrier handling of map values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add arm64 Created 4 years, 10 months 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 | src/compiler/arm64/code-generator-arm64.cc » ('j') | 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 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 index_immediate_(index), 221 index_immediate_(index),
222 value_(value), 222 value_(value),
223 scratch0_(scratch0), 223 scratch0_(scratch0),
224 scratch1_(scratch1), 224 scratch1_(scratch1),
225 mode_(mode) {} 225 mode_(mode) {}
226 226
227 void Generate() final { 227 void Generate() final {
228 if (mode_ > RecordWriteMode::kValueIsPointer) { 228 if (mode_ > RecordWriteMode::kValueIsPointer) {
229 __ JumpIfSmi(value_, exit()); 229 __ JumpIfSmi(value_, exit());
230 } 230 }
231 if (mode_ > RecordWriteMode::kValueIsMap) { 231 __ CheckPageFlag(value_, scratch0_,
232 __ CheckPageFlag(value_, scratch0_, 232 MemoryChunk::kPointersToHereAreInterestingMask, eq,
233 MemoryChunk::kPointersToHereAreInterestingMask, eq, 233 exit());
234 exit());
235 }
236 SaveFPRegsMode const save_fp_mode = 234 SaveFPRegsMode const save_fp_mode =
237 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; 235 frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs;
238 if (!frame()->needs_frame()) { 236 if (!frame()->needs_frame()) {
239 // We need to save and restore lr if the frame was elided. 237 // We need to save and restore lr if the frame was elided.
240 __ Push(lr); 238 __ Push(lr);
241 } 239 }
242 RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_, 240 RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_,
243 EMIT_REMEMBERED_SET, save_fp_mode); 241 EMIT_REMEMBERED_SET, save_fp_mode);
244 if (index_.is(no_reg)) { 242 if (index_.is(no_reg)) {
245 __ add(scratch1_, object_, Operand(index_immediate_)); 243 __ add(scratch1_, object_, Operand(index_immediate_));
(...skipping 1220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1466 padding_size -= v8::internal::Assembler::kInstrSize; 1464 padding_size -= v8::internal::Assembler::kInstrSize;
1467 } 1465 }
1468 } 1466 }
1469 } 1467 }
1470 1468
1471 #undef __ 1469 #undef __
1472 1470
1473 } // namespace compiler 1471 } // namespace compiler
1474 } // namespace internal 1472 } // namespace internal
1475 } // namespace v8 1473 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm64/code-generator-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698