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

Unified Diff: src/mksnapshot.cc

Issue 551062: Fix issue 571: display descriptive names for code objects from snapshot. (Closed)
Patch Set: Created 10 years, 11 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/log.cc ('k') | src/serialize.h » ('j') | src/serialize.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/mksnapshot.cc
diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc
index b889e2e201613fbb1ebe468c7cc274e52f4efdf3..10138d916ed13119559f88272ce45d04883c8d7b 100644
--- a/src/mksnapshot.cc
+++ b/src/mksnapshot.cc
@@ -130,6 +130,10 @@ class CppByteSink : public i::SnapshotByteSink {
}
}
+ virtual int Position() {
+ return bytes_written_;
+ }
+
private:
FILE* fp_;
int bytes_written_;
« no previous file with comments | « src/log.cc ('k') | src/serialize.h » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698