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

Unified Diff: src/objects-inl.h

Issue 2197183002: [debugger] use handler table on unoptimized code for exception prediction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments and rebase Created 4 years, 4 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.cc ('k') | test/mjsunit/es6/debug-promises/throw-finally-caught-all.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index a7795a6c37238d4c2662a9e80a2ab890342c2b70..532211603e06c0eea09f581be0331e11fb817268 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5335,6 +5335,16 @@ ByteArray* AbstractCode::source_position_table() {
}
}
+int AbstractCode::LookupRangeInHandlerTable(
+ int code_offset, int* data, HandlerTable::CatchPrediction* prediction) {
+ if (IsCode()) {
+ return GetCode()->LookupRangeInHandlerTable(code_offset, data, prediction);
+ } else {
+ return GetBytecodeArray()->LookupRangeInHandlerTable(code_offset, data,
+ prediction);
+ }
+}
+
int AbstractCode::SizeIncludingMetadata() {
if (IsCode()) {
return GetCode()->SizeIncludingMetadata();
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/es6/debug-promises/throw-finally-caught-all.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698