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

Unified Diff: src/frames.cc

Issue 5699002: RFC: Switch to ast ids (instead of positions) for type feedback. (Closed)
Patch Set: Cleanup Created 10 years 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
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 3af72887e9fd434e1a1308a745451ef913199e75..e208ead3955ecd640fa7d19a22afa261c230582b 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -682,7 +682,7 @@ void OptimizedFrame::Summarize(List<FrameSummary>* frames) {
ASSERT(frames->length() == 0);
ASSERT(is_optimized());
- int deopt_index = AstNode::kNoNumber;
+ AstId deopt_index = kNoAstId;
DeoptimizationInputData* data = GetDeoptimizationData(&deopt_index);
// BUG(3243555): Since we don't have a lazy-deopt registered at
@@ -763,7 +763,7 @@ void OptimizedFrame::Summarize(List<FrameSummary>* frames) {
DeoptimizationInputData* OptimizedFrame::GetDeoptimizationData(
- int* deopt_index) {
+ AstId* deopt_index) {
ASSERT(is_optimized());
JSFunction* opt_function = JSFunction::cast(function());
@@ -786,7 +786,7 @@ DeoptimizationInputData* OptimizedFrame::GetDeoptimizationData(
break;
}
}
- ASSERT(*deopt_index != AstNode::kNoNumber);
+ ASSERT(*deopt_index != kNoAstId);
return DeoptimizationInputData::cast(code->deoptimization_data());
}
@@ -796,7 +796,7 @@ void OptimizedFrame::GetFunctions(List<JSFunction*>* functions) {
ASSERT(functions->length() == 0);
ASSERT(is_optimized());
- int deopt_index = AstNode::kNoNumber;
+ AstId deopt_index = kNoAstId;
DeoptimizationInputData* data = GetDeoptimizationData(&deopt_index);
TranslationIterator it(data->TranslationByteArray(),

Powered by Google App Engine
This is Rietveld 408576698