Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 0f8c149c26dec7f45b91a0bd8bb38b35234defbe..83fb96c006ab9ec07ea02a9984c15b5780a71cc7 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -4001,7 +4001,6 @@ void BackEdgeTable::PatchAt(Code* unoptimized_code, |
*jns_offset_address = kJnsOffset; |
break; |
case ON_STACK_REPLACEMENT: |
- case OSR_AFTER_STACK_CHECK: |
// sub <profiling_counter>, <delta> ;; Not changed |
// nop |
// nop |
@@ -4039,15 +4038,10 @@ BackEdgeTable::BackEdgeState BackEdgeTable::GetBackEdgeState( |
DCHECK_EQ(kNopByteOne, *jns_instr_address); |
DCHECK_EQ(kNopByteTwo, *(call_target_address - 2)); |
- if (Assembler::target_address_at(call_target_address, unoptimized_code) == |
- isolate->builtins()->OnStackReplacement()->entry()) { |
- return ON_STACK_REPLACEMENT; |
- } |
- |
- DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
- Assembler::target_address_at(call_target_address, |
- unoptimized_code)); |
- return OSR_AFTER_STACK_CHECK; |
+ DCHECK_EQ( |
+ isolate->builtins()->OnStackReplacement()->entry(), |
+ Assembler::target_address_at(call_target_address, unoptimized_code)); |
+ return ON_STACK_REPLACEMENT; |
} |