OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 inline Scope* scope(); | 300 inline Scope* scope(); |
301 | 301 |
302 // Generating deferred code. | 302 // Generating deferred code. |
303 void ProcessDeferred(); | 303 void ProcessDeferred(); |
304 | 304 |
305 static const int kInvalidSlotNumber = -1; | 305 static const int kInvalidSlotNumber = -1; |
306 | 306 |
307 int NumberOfSlot(Slot* slot); | 307 int NumberOfSlot(Slot* slot); |
308 | 308 |
309 // State | 309 // State |
310 bool has_cc() const { return cc_reg_ != al; } | 310 bool has_cc() const { return cc_reg_ != al; } |
311 JumpTarget* true_target() const { return state_->true_target(); } | 311 JumpTarget* true_target() const { return state_->true_target(); } |
312 JumpTarget* false_target() const { return state_->false_target(); } | 312 JumpTarget* false_target() const { return state_->false_target(); } |
313 | 313 |
314 // Track loop nesting level. | 314 // Track loop nesting level. |
315 int loop_nesting() const { return loop_nesting_; } | 315 int loop_nesting() const { return loop_nesting_; } |
316 void IncrementLoopNesting() { loop_nesting_++; } | 316 void IncrementLoopNesting() { loop_nesting_++; } |
317 void DecrementLoopNesting() { loop_nesting_--; } | 317 void DecrementLoopNesting() { loop_nesting_--; } |
318 | 318 |
319 // Node visitors. | 319 // Node visitors. |
320 void VisitStatements(ZoneList<Statement*>* statements); | 320 void VisitStatements(ZoneList<Statement*>* statements); |
321 | 321 |
322 #define DEF_VISIT(type) \ | 322 #define DEF_VISIT(type) \ |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 friend class FullCodeGenerator; | 604 friend class FullCodeGenerator; |
605 friend class FullCodeGenSyntaxChecker; | 605 friend class FullCodeGenSyntaxChecker; |
606 | 606 |
607 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 607 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
608 }; | 608 }; |
609 | 609 |
610 | 610 |
611 } } // namespace v8::internal | 611 } } // namespace v8::internal |
612 | 612 |
613 #endif // V8_ARM_CODEGEN_ARM_H_ | 613 #endif // V8_ARM_CODEGEN_ARM_H_ |
OLD | NEW |