Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(730)

Side by Side Diff: src/ast.h

Issue 12469: * Better factoring of ARM/IA32 code in irregexp. (Closed)
Patch Set: Dropped the unifying ...-native.h file. Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/assembler.h ('k') | src/ast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 static const int kInfinity = (1 << 30); 1358 static const int kInfinity = (1 << 30);
1359 private: 1359 private:
1360 int min_; 1360 int min_;
1361 int max_; 1361 int max_;
1362 bool is_greedy_; 1362 bool is_greedy_;
1363 RegExpTree* body_; 1363 RegExpTree* body_;
1364 }; 1364 };
1365 1365
1366 1366
1367 enum CaptureAvailability { 1367 enum CaptureAvailability {
1368 CAPTURE_AVAILABLE, 1368 CAPTURE_AVAILABLE, CAPTURE_UNREACHABLE, CAPTURE_PERMANENTLY_UNREACHABLE };
1369 CAPTURE_UNREACHABLE,
1370 CAPTURE_PERMANENTLY_UNREACHABLE
1371 };
1372 1369
1373 class RegExpCapture: public RegExpTree { 1370 class RegExpCapture: public RegExpTree {
1374 public: 1371 public:
1375 explicit RegExpCapture(RegExpTree* body, int index) 1372 explicit RegExpCapture(RegExpTree* body, int index)
1376 : body_(body), index_(index), available_(CAPTURE_AVAILABLE) { } 1373 : body_(body), index_(index), available_(CAPTURE_AVAILABLE) { }
1377 virtual void* Accept(RegExpVisitor* visitor, void* data); 1374 virtual void* Accept(RegExpVisitor* visitor, void* data);
1378 virtual RegExpNode* ToNode(RegExpCompiler* compiler, 1375 virtual RegExpNode* ToNode(RegExpCompiler* compiler,
1379 RegExpNode* on_success, 1376 RegExpNode* on_success,
1380 RegExpNode* on_failure); 1377 RegExpNode* on_failure);
1381 static RegExpNode* ToNode(RegExpTree* body, 1378 static RegExpNode* ToNode(RegExpTree* body,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 #undef DEF_VISIT 1496 #undef DEF_VISIT
1500 1497
1501 private: 1498 private:
1502 bool stack_overflow_; 1499 bool stack_overflow_;
1503 }; 1500 };
1504 1501
1505 1502
1506 } } // namespace v8::internal 1503 } } // namespace v8::internal
1507 1504
1508 #endif // V8_AST_H_ 1505 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698