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

Side by Side Diff: src/objects.h

Issue 2394713003: [regexp] Port test, match, and search (Closed)
Patch Set: Rebaseline bytecode expectations Created 4 years, 2 months 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/js/regexp.js ('k') | src/objects.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 8533 matching lines...) Expand 10 before | Expand all | Expand 10 after
8544 Handle<String> flags_string); 8544 Handle<String> flags_string);
8545 8545
8546 inline Type TypeTag(); 8546 inline Type TypeTag();
8547 inline int CaptureCount(); 8547 inline int CaptureCount();
8548 inline Flags GetFlags(); 8548 inline Flags GetFlags();
8549 inline String* Pattern(); 8549 inline String* Pattern();
8550 inline Object* DataAt(int index); 8550 inline Object* DataAt(int index);
8551 // Set implementation data after the object has been prepared. 8551 // Set implementation data after the object has been prepared.
8552 inline void SetDataAt(int index, Object* value); 8552 inline void SetDataAt(int index, Object* value);
8553 8553
8554 inline void SetLastIndex(int index);
8555 inline Object* LastIndex();
8556
8554 static int code_index(bool is_latin1) { 8557 static int code_index(bool is_latin1) {
8555 if (is_latin1) { 8558 if (is_latin1) {
8556 return kIrregexpLatin1CodeIndex; 8559 return kIrregexpLatin1CodeIndex;
8557 } else { 8560 } else {
8558 return kIrregexpUC16CodeIndex; 8561 return kIrregexpUC16CodeIndex;
8559 } 8562 }
8560 } 8563 }
8561 8564
8562 static int saved_code_index(bool is_latin1) { 8565 static int saved_code_index(bool is_latin1) {
8563 if (is_latin1) { 8566 if (is_latin1) {
(...skipping 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after
11443 } 11446 }
11444 return value; 11447 return value;
11445 } 11448 }
11446 }; 11449 };
11447 11450
11448 11451
11449 } // NOLINT, false-positive due to second-order macros. 11452 } // NOLINT, false-positive due to second-order macros.
11450 } // NOLINT, false-positive due to second-order macros. 11453 } // NOLINT, false-positive due to second-order macros.
11451 11454
11452 #endif // V8_OBJECTS_H_ 11455 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/js/regexp.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698