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

Side by Side Diff: src/arm/assembler-thumb2.h

Issue 1752001: Return the correct statement position.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 // Record a comment relocation entry that can be used by a disassembler. 891 // Record a comment relocation entry that can be used by a disassembler.
892 // Use --debug_code to enable. 892 // Use --debug_code to enable.
893 void RecordComment(const char* msg); 893 void RecordComment(const char* msg);
894 894
895 void RecordPosition(int pos); 895 void RecordPosition(int pos);
896 void RecordStatementPosition(int pos); 896 void RecordStatementPosition(int pos);
897 void WriteRecordedPositions(); 897 void WriteRecordedPositions();
898 898
899 int pc_offset() const { return pc_ - buffer_; } 899 int pc_offset() const { return pc_ - buffer_; }
900 int current_position() const { return current_position_; } 900 int current_position() const { return current_position_; }
901 int current_statement_position() const { return current_position_; } 901 int current_statement_position() const { return current_statement_position_; }
902 902
903 protected: 903 protected:
904 int buffer_space() const { return reloc_info_writer.pos() - pc_; } 904 int buffer_space() const { return reloc_info_writer.pos() - pc_; }
905 905
906 // Read/patch instructions 906 // Read/patch instructions
907 static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); } 907 static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); }
908 void instr_at_put(byte* pc, Instr instr) { 908 void instr_at_put(byte* pc, Instr instr) {
909 *reinterpret_cast<Instr*>(pc) = instr; 909 *reinterpret_cast<Instr*>(pc) = instr;
910 } 910 }
911 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } 911 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); }
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); 1027 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0);
1028 1028
1029 friend class RegExpMacroAssemblerARM; 1029 friend class RegExpMacroAssemblerARM;
1030 friend class RelocInfo; 1030 friend class RelocInfo;
1031 friend class CodePatcher; 1031 friend class CodePatcher;
1032 }; 1032 };
1033 1033
1034 } } // namespace v8::internal 1034 } } // namespace v8::internal
1035 1035
1036 #endif // V8_ARM_ASSEMBLER_THUMB2_H_ 1036 #endif // V8_ARM_ASSEMBLER_THUMB2_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698