| 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_PARSER_H_ | 5 #ifndef V8_PARSER_H_ |
| 6 #define V8_PARSER_H_ | 6 #define V8_PARSER_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/ast.h" | 9 #include "src/ast.h" |
| 10 #include "src/compiler.h" // For CachedDataMode | 10 #include "src/compiler.h" // For CachedDataMode |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 #define LAST(x) last_added_ = x; | 216 #define LAST(x) last_added_ = x; |
| 217 #else | 217 #else |
| 218 #define LAST(x) | 218 #define LAST(x) |
| 219 #endif | 219 #endif |
| 220 }; | 220 }; |
| 221 | 221 |
| 222 | 222 |
| 223 class RegExpParser BASE_EMBEDDED { | 223 class RegExpParser BASE_EMBEDDED { |
| 224 public: | 224 public: |
| 225 RegExpParser(FlatStringReader* in, Handle<String>* error, bool multiline_mode, | 225 RegExpParser(FlatStringReader* in, Handle<String>* error, bool multiline_mode, |
| 226 bool unicode, Zone* zone); | 226 bool unicode, Isolate* isolate, Zone* zone); |
| 227 | 227 |
| 228 static bool ParseRegExp(FlatStringReader* input, bool multiline, bool unicode, | 228 static bool ParseRegExp(Isolate* isolate, Zone* zone, FlatStringReader* input, |
| 229 RegExpCompileData* result, Zone* zone); | 229 bool multiline, bool unicode, |
| 230 RegExpCompileData* result); |
| 230 | 231 |
| 231 RegExpTree* ParsePattern(); | 232 RegExpTree* ParsePattern(); |
| 232 RegExpTree* ParseDisjunction(); | 233 RegExpTree* ParseDisjunction(); |
| 233 RegExpTree* ParseGroup(); | 234 RegExpTree* ParseGroup(); |
| 234 RegExpTree* ParseCharacterClass(); | 235 RegExpTree* ParseCharacterClass(); |
| 235 | 236 |
| 236 // Parses a {...,...} quantifier and stores the range in the given | 237 // Parses a {...,...} quantifier and stores the range in the given |
| 237 // out parameters. | 238 // out parameters. |
| 238 bool ParseIntervalQuantifier(int* min_out, int* max_out); | 239 bool ParseIntervalQuantifier(int* min_out, int* max_out); |
| 239 | 240 |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 } | 999 } |
| 999 | 1000 |
| 1000 | 1001 |
| 1001 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, | 1002 Expression* ParserTraits::CloseTemplateLiteral(TemplateLiteralState* state, |
| 1002 int start, Expression* tag) { | 1003 int start, Expression* tag) { |
| 1003 return parser_->CloseTemplateLiteral(state, start, tag); | 1004 return parser_->CloseTemplateLiteral(state, start, tag); |
| 1004 } | 1005 } |
| 1005 } } // namespace v8::internal | 1006 } } // namespace v8::internal |
| 1006 | 1007 |
| 1007 #endif // V8_PARSER_H_ | 1008 #endif // V8_PARSER_H_ |
| OLD | NEW |