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

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

Issue 6880036: Merge revision 7664 (revert of 7644 and 7632) to trunk. (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: 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
1173 // Record a comment relocation entry that can be used by a disassembler. 1169 // Record a comment relocation entry that can be used by a disassembler.
1174 // Use --code-comments to enable. 1170 // Use --code-comments to enable.
1175 void RecordComment(const char* msg); 1171 void RecordComment(const char* msg);
1176 1172
1177 // Writes a single byte or word of data in the code stream. Used 1173 // Writes a single byte or word of data in the code stream. Used
1178 // for inline tables, e.g., jump-tables. The constant pool should be 1174 // for inline tables, e.g., jump-tables. The constant pool should be
1179 // emitted before any use of db and dd to ensure that constant pools 1175 // emitted before any use of db and dd to ensure that constant pools
1180 // are not emitted as part of the tables generated. 1176 // are not emitted as part of the tables generated.
1181 void db(uint8_t data); 1177 void db(uint8_t data);
1182 void dd(uint32_t data); 1178 void dd(uint32_t data);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
1220 static bool IsCmpRegister(Instr instr); 1216 static bool IsCmpRegister(Instr instr);
1221 static bool IsCmpImmediate(Instr instr); 1217 static bool IsCmpImmediate(Instr instr);
1222 static Register GetCmpImmediateRegister(Instr instr); 1218 static Register GetCmpImmediateRegister(Instr instr);
1223 static int GetCmpImmediateRawImmediate(Instr instr); 1219 static int GetCmpImmediateRawImmediate(Instr instr);
1224 static bool IsNop(Instr instr, int type = NON_MARKING_NOP); 1220 static bool IsNop(Instr instr, int type = NON_MARKING_NOP);
1225 1221
1226 // Check if is time to emit a constant pool for pending reloc info entries 1222 // Check if is time to emit a constant pool for pending reloc info entries
1227 void CheckConstPool(bool force_emit, bool require_jump); 1223 void CheckConstPool(bool force_emit, bool require_jump);
1228 1224
1229 protected: 1225 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
1235 bool emit_debug_code() const { return emit_debug_code_; } 1226 bool emit_debug_code() const { return emit_debug_code_; }
1236 1227
1237 int buffer_space() const { return reloc_info_writer.pos() - pc_; } 1228 int buffer_space() const { return reloc_info_writer.pos() - pc_; }
1238 1229
1239 // Read/patch instructions 1230 // Read/patch instructions
1240 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); } 1231 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); }
1241 void instr_at_put(int pos, Instr instr) { 1232 void instr_at_put(int pos, Instr instr) {
1242 *reinterpret_cast<Instr*>(buffer_ + pos) = instr; 1233 *reinterpret_cast<Instr*>(buffer_ + pos) = instr;
1243 } 1234 }
1244 1235
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 public: 1363 public:
1373 explicit EnsureSpace(Assembler* assembler) { 1364 explicit EnsureSpace(Assembler* assembler) {
1374 assembler->CheckBuffer(); 1365 assembler->CheckBuffer();
1375 } 1366 }
1376 }; 1367 };
1377 1368
1378 1369
1379 } } // namespace v8::internal 1370 } } // namespace v8::internal
1380 1371
1381 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1372 #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