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

Unified Diff: src/source-position-table.cc

Issue 2111793002: Simplify JIT event logging. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix forward declaration 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/source-position-table.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/source-position-table.cc
diff --git a/src/source-position-table.cc b/src/source-position-table.cc
index 7010fdaba907757bba6493ec402420633500565e..5f5af76227699220f6aa5a74ff727ece208f0ecc 100644
--- a/src/source-position-table.cc
+++ b/src/source-position-table.cc
@@ -4,6 +4,7 @@
#include "src/source-position-table.h"
+#include "src/log.h"
#include "src/objects-inl.h"
#include "src/objects.h"
@@ -103,6 +104,23 @@ void DecodeEntry(ByteArray* bytes, int* index, PositionTableEntry* entry) {
} // namespace
+SourcePositionTableBuilder::SourcePositionTableBuilder(Isolate* isolate,
+ Zone* zone)
+ : isolate_(isolate),
+ bytes_(zone),
+#ifdef ENABLE_SLOW_DCHECKS
+ raw_entries_(zone),
+#endif
+ previous_(),
+ jit_handler_data_(nullptr) {
+ LOG_CODE_EVENT(isolate_, CodeStartLinePosInfoRecordEvent(&jit_handler_data_));
+}
+
+void SourcePositionTableBuilder::EndJitLogging(AbstractCode* code) {
+ LOG_CODE_EVENT(isolate_,
+ CodeEndLinePosInfoRecordEvent(code, jit_handler_data_));
+}
+
void SourcePositionTableBuilder::AddPosition(size_t code_offset,
int source_position,
bool is_statement) {
« no previous file with comments | « src/source-position-table.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698