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 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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 DCHECK(!recorded_ast_id_.IsNone()); | 1048 DCHECK(!recorded_ast_id_.IsNone()); |
1049 return recorded_ast_id_; | 1049 return recorded_ast_id_; |
1050 } | 1050 } |
1051 | 1051 |
1052 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); } | 1052 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); } |
1053 | 1053 |
1054 // Record a comment relocation entry that can be used by a disassembler. | 1054 // Record a comment relocation entry that can be used by a disassembler. |
1055 // Use --code-comments to enable. | 1055 // Use --code-comments to enable. |
1056 void RecordComment(const char* msg); | 1056 void RecordComment(const char* msg); |
1057 | 1057 |
| 1058 // Record a deoptimization reason that can be used by a log or cpu profiler. |
| 1059 // Use --trace-deopt to enable. |
| 1060 void RecordDeoptReason(const int reason, const int raw_position); |
| 1061 |
1058 static int RelocateInternalReference(byte* pc, intptr_t pc_delta); | 1062 static int RelocateInternalReference(byte* pc, intptr_t pc_delta); |
1059 | 1063 |
1060 // Writes a single byte or word of data in the code stream. Used for | 1064 // Writes a single byte or word of data in the code stream. Used for |
1061 // inline tables, e.g., jump-tables. | 1065 // inline tables, e.g., jump-tables. |
1062 void db(uint8_t data); | 1066 void db(uint8_t data); |
1063 void dd(uint32_t data); | 1067 void dd(uint32_t data); |
1064 | 1068 |
1065 // Emits the address of the code stub's first instruction. | 1069 // Emits the address of the code stub's first instruction. |
1066 void emit_code_stub_address(Code* stub); | 1070 void emit_code_stub_address(Code* stub); |
1067 | 1071 |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 class EnsureSpace BASE_EMBEDDED { | 1418 class EnsureSpace BASE_EMBEDDED { |
1415 public: | 1419 public: |
1416 explicit EnsureSpace(Assembler* assembler) { | 1420 explicit EnsureSpace(Assembler* assembler) { |
1417 assembler->CheckBuffer(); | 1421 assembler->CheckBuffer(); |
1418 } | 1422 } |
1419 }; | 1423 }; |
1420 | 1424 |
1421 } } // namespace v8::internal | 1425 } } // namespace v8::internal |
1422 | 1426 |
1423 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1427 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |