OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 // Track loop nesting level. | 352 // Track loop nesting level. |
353 int loop_nesting() const { return loop_nesting_; } | 353 int loop_nesting() const { return loop_nesting_; } |
354 void IncrementLoopNesting() { loop_nesting_++; } | 354 void IncrementLoopNesting() { loop_nesting_++; } |
355 void DecrementLoopNesting() { loop_nesting_--; } | 355 void DecrementLoopNesting() { loop_nesting_--; } |
356 | 356 |
357 // Node visitors. | 357 // Node visitors. |
358 void VisitStatements(ZoneList<Statement*>* statements); | 358 void VisitStatements(ZoneList<Statement*>* statements); |
359 | 359 |
360 #define DEF_VISIT(type) \ | 360 #define DEF_VISIT(type) \ |
361 void Visit##type(type* node); | 361 void Visit##type(type* node); |
362 NODE_LIST(DEF_VISIT) | 362 AST_NODE_LIST(DEF_VISIT) |
363 #undef DEF_VISIT | 363 #undef DEF_VISIT |
364 | 364 |
365 // Visit a statement and then spill the virtual frame if control flow can | 365 // Visit a statement and then spill the virtual frame if control flow can |
366 // reach the end of the statement (ie, it does not exit via break, | 366 // reach the end of the statement (ie, it does not exit via break, |
367 // continue, return, or throw). This function is used temporarily while | 367 // continue, return, or throw). This function is used temporarily while |
368 // the code generator is being transformed. | 368 // the code generator is being transformed. |
369 void VisitAndSpill(Statement* statement); | 369 void VisitAndSpill(Statement* statement); |
370 | 370 |
371 // Visit a list of statements and then spill the virtual frame if control | 371 // Visit a list of statements and then spill the virtual frame if control |
372 // flow can reach the end of the list. | 372 // flow can reach the end of the list. |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 | 605 |
606 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc | 606 friend class CodeGeneratorPatcher; // Used in test-log-ia32.cc |
607 | 607 |
608 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 608 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
609 }; | 609 }; |
610 | 610 |
611 | 611 |
612 } } // namespace v8::internal | 612 } } // namespace v8::internal |
613 | 613 |
614 #endif // V8_IA32_CODEGEN_IA32_H_ | 614 #endif // V8_IA32_CODEGEN_IA32_H_ |
OLD | NEW |