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

Unified Diff: src/crankshaft/lithium-codegen.h

Issue 2101523003: Use source position table for crankshaft code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@sourcepos
Patch Set: rebase 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/crankshaft/lithium.cc ('k') | src/crankshaft/lithium-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/lithium-codegen.h
diff --git a/src/crankshaft/lithium-codegen.h b/src/crankshaft/lithium-codegen.h
index 70b889719c91d74a493eb85fadd2565b88c2bcc6..8b6ed9a7f0cd6211da5431b891e78a3e98c3924f 100644
--- a/src/crankshaft/lithium-codegen.h
+++ b/src/crankshaft/lithium-codegen.h
@@ -8,6 +8,7 @@
#include "src/bailout-reason.h"
#include "src/compiler.h"
#include "src/deoptimizer.h"
+#include "src/source-position-table.h"
namespace v8 {
namespace internal {
@@ -34,6 +35,9 @@ class LCodeGenBase BASE_EMBEDDED {
Zone* zone() const { return zone_; }
LPlatformChunk* chunk() const { return chunk_; }
HGraph* graph() const;
+ SourcePositionTableBuilder* source_position_table_builder() {
+ return &source_position_table_builder_;
+ }
void PRINTF_FORMAT(2, 3) Comment(const char* format, ...);
void DeoptComment(const Deoptimizer::DeoptInfo& deopt_info);
@@ -45,7 +49,7 @@ class LCodeGenBase BASE_EMBEDDED {
virtual void GenerateBodyInstructionPost(LInstruction* instr) {}
virtual void EnsureSpaceForLazyDeopt(int space_needed) = 0;
- virtual void RecordAndWritePosition(int position) = 0;
+ void RecordAndWritePosition(int position);
int GetNextEmittedBlock() const;
@@ -85,6 +89,7 @@ class LCodeGenBase BASE_EMBEDDED {
int inlined_function_count_;
int last_lazy_deopt_pc_;
int osr_pc_offset_;
+ SourcePositionTableBuilder source_position_table_builder_;
bool is_unused() const { return status_ == UNUSED; }
bool is_generating() const { return status_ == GENERATING; }
« no previous file with comments | « src/crankshaft/lithium.cc ('k') | src/crankshaft/lithium-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698