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

Unified Diff: src/objects-inl.h

Issue 2109673003: Use source position table in turbofan code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: drive-by fix for relocation info size reservation Created 4 years, 6 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') | src/profiler/profiler-listener.cc » ('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 04fb78e6dd2e8795821cb3bedeb9cad5577ee619..e5e8d55cce10b60c32e511c1b1e650195bf1f4f8 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5280,6 +5280,14 @@ int AbstractCode::instruction_size() {
}
}
+ByteArray* AbstractCode::source_position_table() {
+ if (IsCode()) {
+ return GetCode()->source_position_table();
+ } else {
+ return GetBytecodeArray()->source_position_table();
+ }
+}
+
int AbstractCode::SizeIncludingMetadata() {
if (IsCode()) {
return GetCode()->SizeIncludingMetadata();
« no previous file with comments | « src/objects.cc ('k') | src/profiler/profiler-listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698