| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 virtual BinaryOperation* AsBinaryOperation() { return NULL; } | 147 virtual BinaryOperation* AsBinaryOperation() { return NULL; } |
| 148 virtual Assignment* AsAssignment() { return NULL; } | 148 virtual Assignment* AsAssignment() { return NULL; } |
| 149 virtual FunctionLiteral* AsFunctionLiteral() { return NULL; } | 149 virtual FunctionLiteral* AsFunctionLiteral() { return NULL; } |
| 150 virtual MaterializedLiteral* AsMaterializedLiteral() { return NULL; } | 150 virtual MaterializedLiteral* AsMaterializedLiteral() { return NULL; } |
| 151 virtual ObjectLiteral* AsObjectLiteral() { return NULL; } | 151 virtual ObjectLiteral* AsObjectLiteral() { return NULL; } |
| 152 virtual ArrayLiteral* AsArrayLiteral() { return NULL; } | 152 virtual ArrayLiteral* AsArrayLiteral() { return NULL; } |
| 153 virtual CompareOperation* AsCompareOperation() { return NULL; } | 153 virtual CompareOperation* AsCompareOperation() { return NULL; } |
| 154 | 154 |
| 155 // True if the AST node is critical (its execution is needed or externally | 155 // True if the AST node is critical (its execution is needed or externally |
| 156 // visible in some way). | 156 // visible in some way). |
| 157 virtual bool IsCritical() { UNREACHABLE(); return true; } | 157 virtual bool IsCritical() { |
| 158 UNREACHABLE(); |
| 159 return true; |
| 160 } |
| 158 | 161 |
| 159 int num() { return num_; } | 162 int num() { return num_; } |
| 160 void set_num(int n) { num_ = n; } | 163 void set_num(int n) { num_ = n; } |
| 161 | 164 |
| 162 private: | 165 private: |
| 163 // Support for ast node numbering. | 166 // Support for ast node numbering. |
| 164 int num_; | 167 int num_; |
| 165 }; | 168 }; |
| 166 | 169 |
| 167 | 170 |
| (...skipping 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2155 | 2158 |
| 2156 // Holds the result of copying an expression. | 2159 // Holds the result of copying an expression. |
| 2157 Expression* expr_; | 2160 Expression* expr_; |
| 2158 // Holds the result of copying a statement. | 2161 // Holds the result of copying a statement. |
| 2159 Statement* stmt_; | 2162 Statement* stmt_; |
| 2160 }; | 2163 }; |
| 2161 | 2164 |
| 2162 } } // namespace v8::internal | 2165 } } // namespace v8::internal |
| 2163 | 2166 |
| 2164 #endif // V8_AST_H_ | 2167 #endif // V8_AST_H_ |
| OLD | NEW |