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

Unified Diff: src/objects.cc

Issue 1670983003: [interpreter] Rename HandlerTable::depth field. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_interpreter-test-enable
Patch Set: Rebased. Created 4 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/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index a9aba0ba239a3b4b4967b96665427eb9aba50ea8..864fceae6b892456087aeedea38fa397b87b81bc 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10977,8 +10977,7 @@ Handle<LiteralsArray> LiteralsArray::New(Isolate* isolate,
return casted_literals;
}
-
-int HandlerTable::LookupRange(int pc_offset, int* stack_depth_out,
+int HandlerTable::LookupRange(int pc_offset, int* data_out,
CatchPrediction* prediction_out) {
int innermost_handler = -1;
#ifdef DEBUG
@@ -10993,7 +10992,7 @@ int HandlerTable::LookupRange(int pc_offset, int* stack_depth_out,
int handler_field = Smi::cast(get(i + kRangeHandlerIndex))->value();
int handler_offset = HandlerOffsetField::decode(handler_field);
CatchPrediction prediction = HandlerPredictionField::decode(handler_field);
- int stack_depth = Smi::cast(get(i + kRangeDepthIndex))->value();
+ int handler_data = Smi::cast(get(i + kRangeDataIndex))->value();
if (pc_offset > start_offset && pc_offset <= end_offset) {
DCHECK_GE(start_offset, innermost_start);
DCHECK_LT(end_offset, innermost_end);
@@ -11002,7 +11001,7 @@ int HandlerTable::LookupRange(int pc_offset, int* stack_depth_out,
innermost_start = start_offset;
innermost_end = end_offset;
#endif
- *stack_depth_out = stack_depth;
+ if (data_out) *data_out = handler_data;
if (prediction_out) *prediction_out = prediction;
}
}
@@ -14831,10 +14830,10 @@ void HandlerTable::HandlerTableRangePrint(std::ostream& os) {
int handler_field = Smi::cast(get(i + kRangeHandlerIndex))->value();
int handler_offset = HandlerOffsetField::decode(handler_field);
CatchPrediction prediction = HandlerPredictionField::decode(handler_field);
- int depth = Smi::cast(get(i + kRangeDepthIndex))->value();
+ int data = Smi::cast(get(i + kRangeDataIndex))->value();
os << " (" << std::setw(4) << pc_start << "," << std::setw(4) << pc_end
<< ") -> " << std::setw(4) << handler_offset
- << " (prediction=" << prediction << ", depth=" << depth << ")\n";
+ << " (prediction=" << prediction << ", data=" << data << ")\n";
}
}
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698