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

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

Issue 1666073002: [turbofan] Remove the function reload hack for OSR. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Work-around safe point 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 | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/ia32/code-generator-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/address-map.h" 7 #include "src/address-map.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/pipeline.h" 10 #include "src/compiler/pipeline.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 safepoints()->DefineSafepoint(masm(), kind, arguments, deopt_mode); 232 safepoints()->DefineSafepoint(masm(), kind, arguments, deopt_mode);
233 int stackSlotToSpillSlotDelta = 233 int stackSlotToSpillSlotDelta =
234 frame()->GetTotalFrameSlotCount() - frame()->GetSpillSlotCount(); 234 frame()->GetTotalFrameSlotCount() - frame()->GetSpillSlotCount();
235 for (auto& operand : references->reference_operands()) { 235 for (auto& operand : references->reference_operands()) {
236 if (operand.IsStackSlot()) { 236 if (operand.IsStackSlot()) {
237 int index = LocationOperand::cast(operand).index(); 237 int index = LocationOperand::cast(operand).index();
238 DCHECK(index >= 0); 238 DCHECK(index >= 0);
239 // Safepoint table indices are 0-based from the beginning of the spill 239 // Safepoint table indices are 0-based from the beginning of the spill
240 // slot area, adjust appropriately. 240 // slot area, adjust appropriately.
241 index -= stackSlotToSpillSlotDelta; 241 index -= stackSlotToSpillSlotDelta;
242 // We might index values in the fixed part of the frame (i.e. the
243 // closure pointer or the context pointer); these are not spill slots
244 // and therefore don't work with the SafepointTable currently, but
245 // we also don't need to worry about them, since the GC has special
246 // knowledge about those fields anyway.
247 if (index < 0) continue;
242 safepoint.DefinePointerSlot(index, zone()); 248 safepoint.DefinePointerSlot(index, zone());
243 } else if (operand.IsRegister() && (kind & Safepoint::kWithRegisters)) { 249 } else if (operand.IsRegister() && (kind & Safepoint::kWithRegisters)) {
244 Register reg = LocationOperand::cast(operand).GetRegister(); 250 Register reg = LocationOperand::cast(operand).GetRegister();
245 safepoint.DefinePointerRegister(reg, zone()); 251 safepoint.DefinePointerRegister(reg, zone());
246 } 252 }
247 } 253 }
248 } 254 }
249 255
250 256
251 bool CodeGenerator::IsMaterializableFromFrame(Handle<HeapObject> object, 257 bool CodeGenerator::IsMaterializableFromFrame(Handle<HeapObject> object,
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { 736 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) {
731 gen->ools_ = this; 737 gen->ools_ = this;
732 } 738 }
733 739
734 740
735 OutOfLineCode::~OutOfLineCode() {} 741 OutOfLineCode::~OutOfLineCode() {}
736 742
737 } // namespace compiler 743 } // namespace compiler
738 } // namespace internal 744 } // namespace internal
739 } // namespace v8 745 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698