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

Unified Diff: src/objects-inl.h

Issue 2248673002: Avoid accessing Isolate in source position logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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.h ('k') | src/source-position-table.h » ('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 7e4ba3ab098a99f4b8405400f068adb4add5f6b1..158a83fa6bf3d6e027ebfb92743fc3101f9b202c 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5340,6 +5340,14 @@ ByteArray* AbstractCode::source_position_table() {
}
}
+void AbstractCode::set_source_position_table(ByteArray* source_position_table) {
+ if (IsCode()) {
+ GetCode()->set_source_position_table(source_position_table);
+ } else {
+ GetBytecodeArray()->set_source_position_table(source_position_table);
+ }
+}
+
int AbstractCode::LookupRangeInHandlerTable(
int code_offset, int* data, HandlerTable::CatchPrediction* prediction) {
if (IsCode()) {
« no previous file with comments | « src/objects.h ('k') | src/source-position-table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698