Index: src/full-codegen.h |
diff --git a/src/full-codegen.h b/src/full-codegen.h |
index 364f0c3536a7dae1aca8ba848e0810b86171d0dc..c25076a0b13e603940dee80af80bf7a0df205ebf 100644 |
--- a/src/full-codegen.h |
+++ b/src/full-codegen.h |
@@ -451,14 +451,13 @@ class FullCodeGenerator: public AstVisitor { |
// neither a with nor a catch context. |
void EmitDebugCheckDeclarationContext(Variable* variable); |
- // Platform-specific code for checking the stack limit at the back edge of |
- // a loop. |
// This is meant to be called at loop back edges, |back_edge_target| is |
// the jump target of the back edge and is used to approximate the amount |
// of code inside the loop. |
- void EmitStackCheck(IterationStatement* stmt, Label* back_edge_target); |
- // Record the OSR AST id corresponding to a stack check in the code. |
- void RecordStackCheck(BailoutId osr_ast_id); |
+ void EmitBackEdgeBookkeeping(IterationStatement* stmt, |
+ Label* back_edge_target); |
+ // Record the OSR AST id corresponding to a back edge in the code. |
+ void RecordBackEdge(BailoutId osr_ast_id); |
// Emit a table of stack check ids and pcs into the code stream. Return |
// the offset of the start of the table. |
unsigned EmitStackCheckTable(); |
@@ -817,6 +816,8 @@ class FullCodeGenerator: public AstVisitor { |
int module_index_; |
const ExpressionContext* context_; |
ZoneList<BailoutEntry> bailout_entries_; |
+ // TODO(svenpanne) Rename this to something like back_edges_ and rename |
+ // related functions accordingly. |
ZoneList<BailoutEntry> stack_checks_; |
ZoneList<TypeFeedbackCellEntry> type_feedback_cells_; |
int ic_total_count_; |