| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #ifndef V8_AST_INL_H_ | 28 #ifndef V8_AST_INL_H_ |
| 29 #define V8_AST_INL_H_ | 29 #define V8_AST_INL_H_ |
| 30 | 30 |
| 31 #include "v8.h" | 31 #include "v8.h" |
| 32 | 32 |
| 33 #include "ast.h" | 33 #include "ast.h" |
| 34 #include "jump-target-inl.h" | |
| 35 | 34 |
| 36 namespace v8 { | 35 namespace v8 { |
| 37 namespace internal { | 36 namespace internal { |
| 38 | 37 |
| 39 | 38 |
| 40 SwitchStatement::SwitchStatement(ZoneStringList* labels) | 39 SwitchStatement::SwitchStatement(ZoneStringList* labels) |
| 41 : BreakableStatement(labels, TARGET_FOR_ANONYMOUS), | 40 : BreakableStatement(labels, TARGET_FOR_ANONYMOUS), |
| 42 tag_(NULL), cases_(NULL) { | 41 tag_(NULL), cases_(NULL) { |
| 43 } | 42 } |
| 44 | 43 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 55 type_(type), | 54 type_(type), |
| 56 entry_id_(GetNextId()), | 55 entry_id_(GetNextId()), |
| 57 exit_id_(GetNextId()) { | 56 exit_id_(GetNextId()) { |
| 58 ASSERT(labels == NULL || labels->length() > 0); | 57 ASSERT(labels == NULL || labels->length() > 0); |
| 59 } | 58 } |
| 60 | 59 |
| 61 | 60 |
| 62 IterationStatement::IterationStatement(ZoneStringList* labels) | 61 IterationStatement::IterationStatement(ZoneStringList* labels) |
| 63 : BreakableStatement(labels, TARGET_FOR_ANONYMOUS), | 62 : BreakableStatement(labels, TARGET_FOR_ANONYMOUS), |
| 64 body_(NULL), | 63 body_(NULL), |
| 65 continue_target_(JumpTarget::BIDIRECTIONAL), | 64 continue_target_(), |
| 66 osr_entry_id_(GetNextId()) { | 65 osr_entry_id_(GetNextId()) { |
| 67 } | 66 } |
| 68 | 67 |
| 69 | 68 |
| 70 DoWhileStatement::DoWhileStatement(ZoneStringList* labels) | 69 DoWhileStatement::DoWhileStatement(ZoneStringList* labels) |
| 71 : IterationStatement(labels), | 70 : IterationStatement(labels), |
| 72 cond_(NULL), | 71 cond_(NULL), |
| 73 condition_position_(-1), | 72 condition_position_(-1), |
| 74 continue_id_(GetNextId()), | 73 continue_id_(GetNextId()), |
| 75 back_edge_id_(GetNextId()) { | 74 back_edge_id_(GetNextId()) { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 103 | 102 |
| 104 | 103 |
| 105 bool FunctionLiteral::strict_mode() const { | 104 bool FunctionLiteral::strict_mode() const { |
| 106 return scope()->is_strict_mode(); | 105 return scope()->is_strict_mode(); |
| 107 } | 106 } |
| 108 | 107 |
| 109 | 108 |
| 110 } } // namespace v8::internal | 109 } } // namespace v8::internal |
| 111 | 110 |
| 112 #endif // V8_AST_INL_H_ | 111 #endif // V8_AST_INL_H_ |
| OLD | NEW |