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

Unified Diff: src/assembler-arm.h

Issue 14170: Refactored the recording of source position in the generated code. The code g... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years 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 | « no previous file | src/assembler-arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/assembler-arm.h
===================================================================
--- src/assembler-arm.h (revision 958)
+++ src/assembler-arm.h (working copy)
@@ -643,16 +643,12 @@
void RecordPosition(int pos);
void RecordStatementPosition(int pos);
+ void WriteRecordedPositions();
int pc_offset() const { return pc_ - buffer_; }
- int last_position() const { return last_position_; }
- bool last_position_is_statement() const {
- return last_position_is_statement_;
- }
+ int current_position() const { return current_position_; }
+ int current_statement_position() const { return current_position_; }
- // Temporary helper function. Used by codegen.cc.
- int last_statement_position() const { return last_position_; }
-
protected:
int buffer_space() const { return reloc_info_writer.pos() - pc_; }
@@ -754,8 +750,10 @@
int last_bound_pos_;
// source position information
- int last_position_;
- bool last_position_is_statement_;
+ int current_position_;
+ int current_statement_position_;
+ int written_position_;
+ int written_statement_position_;
// Code emission
inline void CheckBuffer();
« no previous file with comments | « no previous file | src/assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698