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

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

Issue 7605026: ARM: Support record write stubs for incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Fix un-nop-ish nop instruction. Created 9 years, 4 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/code-stubs-arm.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 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 // emitted before any use of db and dd to ensure that constant pools 1199 // emitted before any use of db and dd to ensure that constant pools
1200 // are not emitted as part of the tables generated. 1200 // are not emitted as part of the tables generated.
1201 void db(uint8_t data); 1201 void db(uint8_t data);
1202 void dd(uint32_t data); 1202 void dd(uint32_t data);
1203 1203
1204 int pc_offset() const { return pc_ - buffer_; } 1204 int pc_offset() const { return pc_ - buffer_; }
1205 1205
1206 PositionsRecorder* positions_recorder() { return &positions_recorder_; } 1206 PositionsRecorder* positions_recorder() { return &positions_recorder_; }
1207 1207
1208 // Read/patch instructions 1208 // Read/patch instructions
1209 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); }
1210 void instr_at_put(int pos, Instr instr) {
1211 *reinterpret_cast<Instr*>(buffer_ + pos) = instr;
1212 }
1209 static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); } 1213 static Instr instr_at(byte* pc) { return *reinterpret_cast<Instr*>(pc); }
1210 static void instr_at_put(byte* pc, Instr instr) { 1214 static void instr_at_put(byte* pc, Instr instr) {
1211 *reinterpret_cast<Instr*>(pc) = instr; 1215 *reinterpret_cast<Instr*>(pc) = instr;
1212 } 1216 }
1213 static Condition GetCondition(Instr instr); 1217 static Condition GetCondition(Instr instr);
1214 static bool IsBranch(Instr instr); 1218 static bool IsBranch(Instr instr);
1215 static int GetBranchOffset(Instr instr); 1219 static int GetBranchOffset(Instr instr);
1216 static bool IsLdrRegisterImmediate(Instr instr); 1220 static bool IsLdrRegisterImmediate(Instr instr);
1217 static int GetLdrRegisterImmediateOffset(Instr instr); 1221 static int GetLdrRegisterImmediateOffset(Instr instr);
1218 static Instr SetLdrRegisterImmediateOffset(Instr instr, int offset); 1222 static Instr SetLdrRegisterImmediateOffset(Instr instr, int offset);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 protected: 1257 protected:
1254 // Relocation for a type-recording IC has the AST id added to it. This 1258 // Relocation for a type-recording IC has the AST id added to it. This
1255 // member variable is a way to pass the information from the call site to 1259 // member variable is a way to pass the information from the call site to
1256 // the relocation info. 1260 // the relocation info.
1257 unsigned recorded_ast_id_; 1261 unsigned recorded_ast_id_;
1258 1262
1259 bool emit_debug_code() const { return emit_debug_code_; } 1263 bool emit_debug_code() const { return emit_debug_code_; }
1260 1264
1261 int buffer_space() const { return reloc_info_writer.pos() - pc_; } 1265 int buffer_space() const { return reloc_info_writer.pos() - pc_; }
1262 1266
1263 // Read/patch instructions
1264 Instr instr_at(int pos) { return *reinterpret_cast<Instr*>(buffer_ + pos); }
1265 void instr_at_put(int pos, Instr instr) {
1266 *reinterpret_cast<Instr*>(buffer_ + pos) = instr;
1267 }
1268
1269 // Decode branch instruction at pos and return branch target pos 1267 // Decode branch instruction at pos and return branch target pos
1270 int target_at(int pos); 1268 int target_at(int pos);
1271 1269
1272 // Patch branch instruction at pos to branch to given branch target pos 1270 // Patch branch instruction at pos to branch to given branch target pos
1273 void target_at_put(int pos, int target_pos); 1271 void target_at_put(int pos, int target_pos);
1274 1272
1275 // Prevent contant pool emission until EndBlockConstPool is called. 1273 // Prevent contant pool emission until EndBlockConstPool is called.
1276 // Call to this function can be nested but must be followed by an equal 1274 // Call to this function can be nested but must be followed by an equal
1277 // number of call to EndBlockConstpool. 1275 // number of call to EndBlockConstpool.
1278 void StartBlockConstPool() { 1276 void StartBlockConstPool() {
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 public: 1410 public:
1413 explicit EnsureSpace(Assembler* assembler) { 1411 explicit EnsureSpace(Assembler* assembler) {
1414 assembler->CheckBuffer(); 1412 assembler->CheckBuffer();
1415 } 1413 }
1416 }; 1414 };
1417 1415
1418 1416
1419 } } // namespace v8::internal 1417 } } // namespace v8::internal
1420 1418
1421 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1419 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698