| OLD | NEW |
| 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 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 937 // Record a comment relocation entry that can be used by a disassembler. | 937 // Record a comment relocation entry that can be used by a disassembler. |
| 938 // Use --debug_code to enable. | 938 // Use --debug_code to enable. |
| 939 void RecordComment(const char* msg); | 939 void RecordComment(const char* msg); |
| 940 | 940 |
| 941 void RecordPosition(int pos); | 941 void RecordPosition(int pos); |
| 942 void RecordStatementPosition(int pos); | 942 void RecordStatementPosition(int pos); |
| 943 void WriteRecordedPositions(); | 943 void WriteRecordedPositions(); |
| 944 | 944 |
| 945 int pc_offset() const { return pc_ - buffer_; } | 945 int pc_offset() const { return pc_ - buffer_; } |
| 946 int current_position() const { return current_position_; } | 946 int current_position() const { return current_position_; } |
| 947 int current_statement_position() const { return current_position_; } | 947 int current_statement_position() const { return current_statement_position_; } |
| 948 | 948 |
| 949 protected: | 949 protected: |
| 950 int buffer_space() const { return reloc_info_writer.pos() - pc_; } | 950 int buffer_space() const { return reloc_info_writer.pos() - pc_; } |
| 951 | 951 |
| 952 // Read/patch instructions | 952 // Read/patch instructions |
| 953 static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); } | 953 static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); } |
| 954 void instr_at_put(byte* pc, Instr instr) { | 954 void instr_at_put(byte* pc, Instr instr) { |
| 955 *reinterpret_cast<Instr*>(pc) = instr; | 955 *reinterpret_cast<Instr*>(pc) = instr; |
| 956 } | 956 } |
| 957 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } | 957 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); | 1073 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); |
| 1074 | 1074 |
| 1075 friend class RegExpMacroAssemblerARM; | 1075 friend class RegExpMacroAssemblerARM; |
| 1076 friend class RelocInfo; | 1076 friend class RelocInfo; |
| 1077 friend class CodePatcher; | 1077 friend class CodePatcher; |
| 1078 }; | 1078 }; |
| 1079 | 1079 |
| 1080 } } // namespace v8::internal | 1080 } } // namespace v8::internal |
| 1081 | 1081 |
| 1082 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1082 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
| OLD | NEW |