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

Side by Side Diff: src/assembler.h

Issue 2080173002: [debug] always add debug slot for statements. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/assembler.cc » ('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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 class AssemblerPositionsRecorder : public PositionsRecorder { 1145 class AssemblerPositionsRecorder : public PositionsRecorder {
1146 public: 1146 public:
1147 explicit AssemblerPositionsRecorder(Assembler* assembler) 1147 explicit AssemblerPositionsRecorder(Assembler* assembler)
1148 : assembler_(assembler), 1148 : assembler_(assembler),
1149 current_position_(RelocInfo::kNoPosition), 1149 current_position_(RelocInfo::kNoPosition),
1150 written_position_(RelocInfo::kNoPosition), 1150 written_position_(RelocInfo::kNoPosition),
1151 current_statement_position_(RelocInfo::kNoPosition), 1151 current_statement_position_(RelocInfo::kNoPosition),
1152 written_statement_position_(RelocInfo::kNoPosition) {} 1152 written_statement_position_(RelocInfo::kNoPosition) {}
1153 1153
1154 // Set current position to pos. 1154 // Set current position to pos.
1155 bool RecordPosition(int pos); 1155 void RecordPosition(int pos);
1156 1156
1157 // Set current statement position to pos. 1157 // Set current statement position to pos.
1158 bool RecordStatementPosition(int pos); 1158 void RecordStatementPosition(int pos);
1159 1159
1160 private: 1160 private:
1161 // Write recorded positions to relocation information. 1161 // Write recorded positions to relocation information.
1162 bool WriteRecordedPositions(); 1162 void WriteRecordedPositions();
1163 1163
1164 Assembler* assembler_; 1164 Assembler* assembler_;
1165 1165
1166 int current_position_; 1166 int current_position_;
1167 int written_position_; 1167 int written_position_;
1168 1168
1169 int current_statement_position_; 1169 int current_statement_position_;
1170 int written_statement_position_; 1170 int written_statement_position_;
1171 1171
1172 DISALLOW_COPY_AND_ASSIGN(AssemblerPositionsRecorder); 1172 DISALLOW_COPY_AND_ASSIGN(AssemblerPositionsRecorder);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 std::vector<ConstantPoolEntry> shared_entries; 1340 std::vector<ConstantPoolEntry> shared_entries;
1341 }; 1341 };
1342 1342
1343 Label emitted_label_; // Records pc_offset of emitted pool 1343 Label emitted_label_; // Records pc_offset of emitted pool
1344 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1344 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1345 }; 1345 };
1346 1346
1347 } // namespace internal 1347 } // namespace internal
1348 } // namespace v8 1348 } // namespace v8
1349 #endif // V8_ASSEMBLER_H_ 1349 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698