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 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 // Debugging | 1202 // Debugging |
1203 | 1203 |
1204 // Mark address of the ExitJSFrame code. | 1204 // Mark address of the ExitJSFrame code. |
1205 void RecordJSReturn(); | 1205 void RecordJSReturn(); |
1206 | 1206 |
1207 // Mark address of a debug break slot. | 1207 // Mark address of a debug break slot. |
1208 void RecordDebugBreakSlot(); | 1208 void RecordDebugBreakSlot(); |
1209 | 1209 |
1210 // Record the AST id of the CallIC being compiled, so that it can be placed | 1210 // Record the AST id of the CallIC being compiled, so that it can be placed |
1211 // in the relocation information. | 1211 // in the relocation information. |
1212 void SetRecordedAstId(unsigned ast_id) { | 1212 void SetRecordedAstId(TypeFeedbackId ast_id) { |
1213 ASSERT(recorded_ast_id_ == kNoASTId); | 1213 ASSERT(recorded_ast_id_.IsNone()); |
1214 recorded_ast_id_ = ast_id; | 1214 recorded_ast_id_ = ast_id; |
1215 } | 1215 } |
1216 | 1216 |
1217 unsigned RecordedAstId() { | 1217 TypeFeedbackId RecordedAstId() { |
1218 ASSERT(recorded_ast_id_ != kNoASTId); | 1218 ASSERT(!recorded_ast_id_.IsNone()); |
1219 return recorded_ast_id_; | 1219 return recorded_ast_id_; |
1220 } | 1220 } |
1221 | 1221 |
1222 void ClearRecordedAstId() { recorded_ast_id_ = kNoASTId; } | 1222 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); } |
1223 | 1223 |
1224 // Record a comment relocation entry that can be used by a disassembler. | 1224 // Record a comment relocation entry that can be used by a disassembler. |
1225 // Use --code-comments to enable. | 1225 // Use --code-comments to enable. |
1226 void RecordComment(const char* msg); | 1226 void RecordComment(const char* msg); |
1227 | 1227 |
1228 // Record the emission of a constant pool. | 1228 // Record the emission of a constant pool. |
1229 // | 1229 // |
1230 // The emission of constant pool depends on the size of the code generated and | 1230 // The emission of constant pool depends on the size of the code generated and |
1231 // the number of RelocInfo recorded. | 1231 // the number of RelocInfo recorded. |
1232 // The Debug mechanism needs to map code offsets between two versions of a | 1232 // The Debug mechanism needs to map code offsets between two versions of a |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 // instructions. | 1301 // instructions. |
1302 void BlockConstPoolFor(int instructions); | 1302 void BlockConstPoolFor(int instructions); |
1303 | 1303 |
1304 // Check if is time to emit a constant pool. | 1304 // Check if is time to emit a constant pool. |
1305 void CheckConstPool(bool force_emit, bool require_jump); | 1305 void CheckConstPool(bool force_emit, bool require_jump); |
1306 | 1306 |
1307 protected: | 1307 protected: |
1308 // Relocation for a type-recording IC has the AST id added to it. This | 1308 // Relocation for a type-recording IC has the AST id added to it. This |
1309 // member variable is a way to pass the information from the call site to | 1309 // member variable is a way to pass the information from the call site to |
1310 // the relocation info. | 1310 // the relocation info. |
1311 unsigned recorded_ast_id_; | 1311 TypeFeedbackId recorded_ast_id_; |
1312 | 1312 |
1313 bool emit_debug_code() const { return emit_debug_code_; } | 1313 bool emit_debug_code() const { return emit_debug_code_; } |
1314 | 1314 |
1315 int buffer_space() const { return reloc_info_writer.pos() - pc_; } | 1315 int buffer_space() const { return reloc_info_writer.pos() - pc_; } |
1316 | 1316 |
1317 // Decode branch instruction at pos and return branch target pos | 1317 // Decode branch instruction at pos and return branch target pos |
1318 int target_at(int pos); | 1318 int target_at(int pos); |
1319 | 1319 |
1320 // Patch branch instruction at pos to branch to given branch target pos | 1320 // Patch branch instruction at pos to branch to given branch target pos |
1321 void target_at_put(int pos, int target_pos); | 1321 void target_at_put(int pos, int target_pos); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1460 public: | 1460 public: |
1461 explicit EnsureSpace(Assembler* assembler) { | 1461 explicit EnsureSpace(Assembler* assembler) { |
1462 assembler->CheckBuffer(); | 1462 assembler->CheckBuffer(); |
1463 } | 1463 } |
1464 }; | 1464 }; |
1465 | 1465 |
1466 | 1466 |
1467 } } // namespace v8::internal | 1467 } } // namespace v8::internal |
1468 | 1468 |
1469 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1469 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |