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

Unified Diff: src/crankshaft/hydrogen.h

Issue 2161543002: [turbofan] Add support for eager/soft deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Do the ports properly Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen.h
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h
index a81d244767610b11affbace1e5a55144f6996003..042bfae72579b3b928c12b3eb7c7c559182a1718 100644
--- a/src/crankshaft/hydrogen.h
+++ b/src/crankshaft/hydrogen.h
@@ -1517,7 +1517,7 @@ class HGraphBuilder {
HValue* EnforceNumberType(HValue* number, Type* expected);
HValue* TruncateToNumber(HValue* value, Type** expected);
- void FinishExitWithHardDeoptimization(Deoptimizer::DeoptReason reason);
+ void FinishExitWithHardDeoptimization(DeoptimizeReason reason);
void AddIncrementCounter(StatsCounter* counter);
@@ -1666,12 +1666,12 @@ class HGraphBuilder {
void End();
void EndUnreachable();
- void Deopt(Deoptimizer::DeoptReason reason);
- void ThenDeopt(Deoptimizer::DeoptReason reason) {
+ void Deopt(DeoptimizeReason reason);
+ void ThenDeopt(DeoptimizeReason reason) {
Then();
Deopt(reason);
}
- void ElseDeopt(Deoptimizer::DeoptReason reason) {
+ void ElseDeopt(DeoptimizeReason reason) {
Else();
Deopt(reason);
}
@@ -1928,10 +1928,9 @@ class HGraphBuilder {
int start_position_;
};
-
template <>
inline HDeoptimize* HGraphBuilder::Add<HDeoptimize>(
- Deoptimizer::DeoptReason reason, Deoptimizer::BailoutType type) {
+ DeoptimizeReason reason, Deoptimizer::BailoutType type) {
if (type == Deoptimizer::SOFT) {
isolate()->counters()->soft_deopts_requested()->Increment();
if (FLAG_always_opt) return NULL;
@@ -1948,10 +1947,9 @@ inline HDeoptimize* HGraphBuilder::Add<HDeoptimize>(
return instr;
}
-
template <>
inline HInstruction* HGraphBuilder::AddUncasted<HDeoptimize>(
- Deoptimizer::DeoptReason reason, Deoptimizer::BailoutType type) {
+ DeoptimizeReason reason, Deoptimizer::BailoutType type) {
return Add<HDeoptimize>(reason, type);
}
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698