Reviewers: Erik Corry,

Description:
Return the correct statement position.

Whether this was a typo or a deliberate decision at some point I don't know.
Anyway it was wrong.

[email protected]

Please review this at http://codereview.chromium.org/1752001/show

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/arm/assembler-arm.h
  M     src/arm/assembler-thumb2.h
  M     src/mips/assembler-mips.h


Index: src/mips/assembler-mips.h
===================================================================
--- src/mips/assembler-mips.h   (revision 4451)
+++ src/mips/assembler-mips.h   (working copy)
@@ -522,7 +522,9 @@

   int32_t pc_offset() const { return pc_ - buffer_; }
   int32_t current_position() const { return current_position_; }
-  int32_t current_statement_position() const { return current_position_; }
+  int32_t current_statement_position() const {
+    return current_statement_position_;
+  }

   // Check if there is less than kGap bytes available in the buffer.
   // If this is the case, we need to grow the buffer before emitting
Index: src/arm/assembler-arm.h
===================================================================
--- src/arm/assembler-arm.h     (revision 4451)
+++ src/arm/assembler-arm.h     (working copy)
@@ -944,7 +944,7 @@

   int pc_offset() const { return pc_ - buffer_; }
   int current_position() const { return current_position_; }
-  int current_statement_position() const { return current_position_; }
+ int current_statement_position() const { return current_statement_position_; }

  protected:
   int buffer_space() const { return reloc_info_writer.pos() - pc_; }
Index: src/arm/assembler-thumb2.h
===================================================================
--- src/arm/assembler-thumb2.h  (revision 4451)
+++ src/arm/assembler-thumb2.h  (working copy)
@@ -898,7 +898,7 @@

   int pc_offset() const { return pc_ - buffer_; }
   int current_position() const { return current_position_; }
-  int current_statement_position() const { return current_position_; }
+ int current_statement_position() const { return current_statement_position_; }

  protected:
   int buffer_space() const { return reloc_info_writer.pos() - pc_; }


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to