Index: src/arm/assembler-arm.h |
=================================================================== |
--- src/arm/assembler-arm.h (revision 8667) |
+++ src/arm/assembler-arm.h (working copy) |
@@ -1178,8 +1178,18 @@ |
// Record the AST id of the CallIC being compiled, so that it can be placed |
// in the relocation information. |
- void RecordAstId(unsigned ast_id) { ast_id_for_reloc_info_ = ast_id; } |
+ void SetRecordedAstId(unsigned ast_id) { |
+ ASSERT(recorded_ast_id_ == kNoASTId); |
+ recorded_ast_id_ = ast_id; |
+ } |
+ unsigned RecordedAstId() { |
+ ASSERT(recorded_ast_id_ != kNoASTId); |
+ return recorded_ast_id_; |
+ } |
+ |
+ void ClearRecordedAstId() { recorded_ast_id_ = kNoASTId; } |
+ |
// Record a comment relocation entry that can be used by a disassembler. |
// Use --code-comments to enable. |
void RecordComment(const char* msg); |
@@ -1244,7 +1254,7 @@ |
// Relocation for a type-recording IC has the AST id added to it. This |
// member variable is a way to pass the information from the call site to |
// the relocation info. |
- unsigned ast_id_for_reloc_info_; |
+ unsigned recorded_ast_id_; |
bool emit_debug_code() const { return emit_debug_code_; } |