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

Unified Diff: src/hydrogen.h

Issue 900223002: Revert of Externalize deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/disassembler.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index 0ca78e9f594d44ba8ff9f8c9e582f82be7a1aa74..7a6eae449c5b8952b90669f9d346b98db0222b77 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -1475,7 +1475,7 @@
HValue* EnforceNumberType(HValue* number, Type* expected);
HValue* TruncateToNumber(HValue* value, Type** expected);
- void FinishExitWithHardDeoptimization(Deoptimizer::DeoptReason reason);
+ void FinishExitWithHardDeoptimization(const char* reason);
void AddIncrementCounter(StatsCounter* counter);
@@ -1623,12 +1623,12 @@
void Else();
void End();
- void Deopt(Deoptimizer::DeoptReason reason);
- void ThenDeopt(Deoptimizer::DeoptReason reason) {
+ void Deopt(const char* reason);
+ void ThenDeopt(const char* reason) {
Then();
Deopt(reason);
}
- void ElseDeopt(Deoptimizer::DeoptReason reason) {
+ void ElseDeopt(const char* reason) {
Else();
Deopt(reason);
}
@@ -1938,9 +1938,9 @@
};
-template <>
+template<>
inline HDeoptimize* HGraphBuilder::Add<HDeoptimize>(
- Deoptimizer::DeoptReason reason, Deoptimizer::BailoutType type) {
+ const char* reason, Deoptimizer::BailoutType type) {
if (type == Deoptimizer::SOFT) {
isolate()->counters()->soft_deopts_requested()->Increment();
if (FLAG_always_opt) return NULL;
@@ -1958,9 +1958,9 @@
}
-template <>
+template<>
inline HInstruction* HGraphBuilder::AddUncasted<HDeoptimize>(
- Deoptimizer::DeoptReason reason, Deoptimizer::BailoutType type) {
+ const char* reason, Deoptimizer::BailoutType type) {
return Add<HDeoptimize>(reason, type);
}
« no previous file with comments | « src/disassembler.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698