summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r--compiler/optimizing/code_generator.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc
index a353d0758e..cabf94991d 100644
--- a/compiler/optimizing/code_generator.cc
+++ b/compiler/optimizing/code_generator.cc
@@ -982,6 +982,9 @@ void CodeGenerator::AllocateLocations(HInstruction* instruction) {
if (locations != nullptr) {
if (locations->CanCall()) {
MarkNotLeaf();
+ if (locations->NeedsSuspendCheckEntry()) {
+ MarkNeedsSuspendCheckEntry();
+ }
} else if (locations->Intrinsified() &&
instruction->IsInvokeStaticOrDirect() &&
!instruction->AsInvokeStaticOrDirect()->HasCurrentMethodInput()) {
@@ -1061,6 +1064,7 @@ CodeGenerator::CodeGenerator(HGraph* graph,
current_slow_path_(nullptr),
current_block_index_(0),
is_leaf_(true),
+ needs_suspend_check_entry_(false),
requires_current_method_(false),
code_generation_data_() {
if (GetGraph()->IsCompilingOsr()) {