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

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

Issue 6793016: Record AST ids in relocation info at spots where we collect dynamic type feedback. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: last change Created 9 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 | « no previous file | src/arm/assembler-arm.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 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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 void BlockConstPoolFor(int instructions); 1159 void BlockConstPoolFor(int instructions);
1160 1160
1161 // Debugging 1161 // Debugging
1162 1162
1163 // Mark address of the ExitJSFrame code. 1163 // Mark address of the ExitJSFrame code.
1164 void RecordJSReturn(); 1164 void RecordJSReturn();
1165 1165
1166 // Mark address of a debug break slot. 1166 // Mark address of a debug break slot.
1167 void RecordDebugBreakSlot(); 1167 void RecordDebugBreakSlot();
1168 1168
1169 // Record the AST id of the CallIC being compiled, so that it can be placed
1170 // in the relocation information.
1171 void RecordAstId(unsigned ast_id) { ast_id_for_reloc_info_ = ast_id; }
1172
1169 // Record a comment relocation entry that can be used by a disassembler. 1173 // Record a comment relocation entry that can be used by a disassembler.
1170 // Use --code-comments to enable. 1174 // Use --code-comments to enable.
1171 void RecordComment(const char* msg); 1175 void RecordComment(const char* msg);
1172 1176
1173 // Writes a single byte or word of data in the code stream. Used 1177 // Writes a single byte or word of data in the code stream. Used
1174 // for inline tables, e.g., jump-tables. The constant pool should be 1178 // for inline tables, e.g., jump-tables. The constant pool should be
1175 // emitted before any use of db and dd to ensure that constant pools 1179 // emitted before any use of db and dd to ensure that constant pools
1176 // are not emitted as part of the tables generated. 1180 // are not emitted as part of the tables generated.
1177 void db(uint8_t data); 1181 void db(uint8_t data);
1178 void dd(uint32_t data); 1182 void dd(uint32_t data);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 static bool IsCmpRegister(Instr instr); 1220 static bool IsCmpRegister(Instr instr);
1217 static bool IsCmpImmediate(Instr instr); 1221 static bool IsCmpImmediate(Instr instr);
1218 static Register GetCmpImmediateRegister(Instr instr); 1222 static Register GetCmpImmediateRegister(Instr instr);
1219 static int GetCmpImmediateRawImmediate(Instr instr); 1223 static int GetCmpImmediateRawImmediate(Instr instr);
1220 static bool IsNop(Instr instr, int type = NON_MARKING_NOP); 1224 static bool IsNop(Instr instr, int type = NON_MARKING_NOP);
1221 1225
1222 // Check if is time to emit a constant pool for pending reloc info entries 1226 // Check if is time to emit a constant pool for pending reloc info entries
1223 void CheckConstPool(bool force_emit, bool require_jump); 1227 void CheckConstPool(bool force_emit, bool require_jump);
1224 1228
1225 protected: 1229 protected:
1230 // Relocation for a type-recording IC has the AST id added to it. This
1231 // member variable is a way to pass the information from the call site to
1232 // the relocation info.
1233 unsigned ast_id_for_reloc_info_;
1234
1226 bool emit_debug_code() const { return emit_debug_code_; } 1235 bool emit_debug_code() const { return emit_debug_code_; }
1227 1236
1228 int buffer_space() const { return reloc_info_writer.pos() - pc_; } 1237 int buffer_space() const { return reloc_info_writer.pos() - pc_; }
1229 1238
1230 // Read/patch instructions 1239 // Read/patch instructions
1231 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } 1240 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); }
1232 void instr_at_put(int pos, Instr instr) { 1241 void instr_at_put(int pos, Instr instr) {
1233 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; 1242 *reinterpret_cast<Instr*>(buffer_ + pos) = instr;
1234 } 1243 }
1235 1244
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 public: 1372 public:
1364 explicit EnsureSpace(Assembler* assembler) { 1373 explicit EnsureSpace(Assembler* assembler) {
1365 assembler->CheckBuffer(); 1374 assembler->CheckBuffer();
1366 } 1375 }
1367 }; 1376 };
1368 1377
1369 1378
1370 } } // namespace v8::internal 1379 } } // namespace v8::internal
1371 1380
1372 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1381 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698