| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_PREPARSER_H | 5 #ifndef V8_PREPARSER_H |
| 6 #define V8_PREPARSER_H | 6 #define V8_PREPARSER_H |
| 7 | 7 |
| 8 #include "src/v8.h" |
| 9 |
| 8 #include "src/func-name-inferrer.h" | 10 #include "src/func-name-inferrer.h" |
| 9 #include "src/hashmap.h" | 11 #include "src/hashmap.h" |
| 12 #include "src/scanner.h" |
| 10 #include "src/scopes.h" | 13 #include "src/scopes.h" |
| 11 #include "src/token.h" | 14 #include "src/token.h" |
| 12 #include "src/scanner.h" | |
| 13 #include "src/v8.h" | |
| 14 | 15 |
| 15 namespace v8 { | 16 namespace v8 { |
| 16 namespace internal { | 17 namespace internal { |
| 17 | 18 |
| 18 // Common base class shared between parser and pre-parser. Traits encapsulate | 19 // Common base class shared between parser and pre-parser. Traits encapsulate |
| 19 // the differences between Parser and PreParser: | 20 // the differences between Parser and PreParser: |
| 20 | 21 |
| 21 // - Return types: For example, Parser functions return Expression* and | 22 // - Return types: For example, Parser functions return Expression* and |
| 22 // PreParser functions return PreParserExpression. | 23 // PreParser functions return PreParserExpression. |
| 23 | 24 |
| (...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2161 parser()->ReportMessage("accessor_get_set"); | 2162 parser()->ReportMessage("accessor_get_set"); |
| 2162 } | 2163 } |
| 2163 *ok = false; | 2164 *ok = false; |
| 2164 } | 2165 } |
| 2165 } | 2166 } |
| 2166 | 2167 |
| 2167 | 2168 |
| 2168 } } // v8::internal | 2169 } } // v8::internal |
| 2169 | 2170 |
| 2170 #endif // V8_PREPARSER_H | 2171 #endif // V8_PREPARSER_H |
| OLD | NEW |