| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 | 417 |
| 418 // Platform-specific code for a variable, constant, or function | 418 // Platform-specific code for a variable, constant, or function |
| 419 // declaration. Functions have an initial value. | 419 // declaration. Functions have an initial value. |
| 420 // Increments global_count_ for unallocated variables. | 420 // Increments global_count_ for unallocated variables. |
| 421 void EmitDeclaration(VariableProxy* proxy, | 421 void EmitDeclaration(VariableProxy* proxy, |
| 422 VariableMode mode, | 422 VariableMode mode, |
| 423 FunctionLiteral* function); | 423 FunctionLiteral* function); |
| 424 | 424 |
| 425 // Platform-specific code for checking the stack limit at the back edge of | 425 // Platform-specific code for checking the stack limit at the back edge of |
| 426 // a loop. | 426 // a loop. |
| 427 void EmitStackCheck(IterationStatement* stmt); | 427 // This is meant to be called at loop back edges, |back_edge_target| is |
| 428 // the jump target of the back edge and is used to approximate the amount |
| 429 // of code inside the loop. |
| 430 void EmitStackCheck(IterationStatement* stmt, Label* back_edge_target); |
| 428 // Record the OSR AST id corresponding to a stack check in the code. | 431 // Record the OSR AST id corresponding to a stack check in the code. |
| 429 void RecordStackCheck(unsigned osr_ast_id); | 432 void RecordStackCheck(unsigned osr_ast_id); |
| 430 // Emit a table of stack check ids and pcs into the code stream. Return | 433 // Emit a table of stack check ids and pcs into the code stream. Return |
| 431 // the offset of the start of the table. | 434 // the offset of the start of the table. |
| 432 unsigned EmitStackCheckTable(); | 435 unsigned EmitStackCheckTable(); |
| 433 | 436 |
| 434 // Platform-specific return sequence | 437 // Platform-specific return sequence |
| 435 void EmitReturnSequence(); | 438 void EmitReturnSequence(); |
| 436 | 439 |
| 437 // Platform-specific code sequences for calls | 440 // Platform-specific code sequences for calls |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 Scope* scope_; | 770 Scope* scope_; |
| 768 Label return_label_; | 771 Label return_label_; |
| 769 NestedStatement* nesting_stack_; | 772 NestedStatement* nesting_stack_; |
| 770 int loop_depth_; | 773 int loop_depth_; |
| 771 int global_count_; | 774 int global_count_; |
| 772 const ExpressionContext* context_; | 775 const ExpressionContext* context_; |
| 773 ZoneList<BailoutEntry> bailout_entries_; | 776 ZoneList<BailoutEntry> bailout_entries_; |
| 774 ZoneList<BailoutEntry> stack_checks_; | 777 ZoneList<BailoutEntry> stack_checks_; |
| 775 ZoneList<TypeFeedbackCellEntry> type_feedback_cells_; | 778 ZoneList<TypeFeedbackCellEntry> type_feedback_cells_; |
| 776 Handle<FixedArray> handler_table_; | 779 Handle<FixedArray> handler_table_; |
| 780 Handle<JSGlobalPropertyCell> profiling_counter_; |
| 777 | 781 |
| 778 friend class NestedStatement; | 782 friend class NestedStatement; |
| 779 | 783 |
| 780 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); | 784 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); |
| 781 }; | 785 }; |
| 782 | 786 |
| 783 | 787 |
| 784 } } // namespace v8::internal | 788 } } // namespace v8::internal |
| 785 | 789 |
| 786 #endif // V8_FULL_CODEGEN_H_ | 790 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |