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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 JumpTarget* false_target() const { return state_->false_target(); } | 208 JumpTarget* false_target() const { return state_->false_target(); } |
209 | 209 |
210 // We don't track loop nesting level on ARM yet. | 210 // We don't track loop nesting level on ARM yet. |
211 int loop_nesting() const { return 0; } | 211 int loop_nesting() const { return 0; } |
212 | 212 |
213 // Node visitors. | 213 // Node visitors. |
214 void VisitStatements(ZoneList<Statement*>* statements); | 214 void VisitStatements(ZoneList<Statement*>* statements); |
215 | 215 |
216 #define DEF_VISIT(type) \ | 216 #define DEF_VISIT(type) \ |
217 void Visit##type(type* node); | 217 void Visit##type(type* node); |
218 NODE_LIST(DEF_VISIT) | 218 AST_NODE_LIST(DEF_VISIT) |
219 #undef DEF_VISIT | 219 #undef DEF_VISIT |
220 | 220 |
221 // Visit a statement and then spill the virtual frame if control flow can | 221 // Visit a statement and then spill the virtual frame if control flow can |
222 // reach the end of the statement (ie, it does not exit via break, | 222 // reach the end of the statement (ie, it does not exit via break, |
223 // continue, return, or throw). This function is used temporarily while | 223 // continue, return, or throw). This function is used temporarily while |
224 // the code generator is being transformed. | 224 // the code generator is being transformed. |
225 void VisitAndSpill(Statement* statement); | 225 void VisitAndSpill(Statement* statement); |
226 | 226 |
227 // Visit a list of statements and then spill the virtual frame if control | 227 // Visit a list of statements and then spill the virtual frame if control |
228 // flow can reach the end of the list. | 228 // flow can reach the end of the list. |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 friend class JumpTarget; | 417 friend class JumpTarget; |
418 friend class Reference; | 418 friend class Reference; |
419 | 419 |
420 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 420 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
421 }; | 421 }; |
422 | 422 |
423 | 423 |
424 } } // namespace v8::internal | 424 } } // namespace v8::internal |
425 | 425 |
426 #endif // V8_ARM_CODEGEN_ARM_H_ | 426 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |