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

Unified Diff: src/objects-inl.h

Issue 2764343004: [regexp] Named capture support for callable replacements (Closed)
Patch Set: Final tweaks Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime-regexp.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 63abfbc6729cdf7d6232c58dcd4ece00c73edf0c..2ea5d600c980890b4c8ee734d1d695466e3c9908 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -6961,6 +6961,13 @@ String* JSRegExp::Pattern() {
return pattern;
}
+Object* JSRegExp::CaptureNameMap() {
+ DCHECK(this->data()->IsFixedArray());
+ DCHECK_EQ(TypeTag(), IRREGEXP);
+ Object* value = DataAt(kIrregexpCaptureNameMapIndex);
+ DCHECK_NE(value, Smi::FromInt(JSRegExp::kUninitializedValue));
+ return value;
+}
Object* JSRegExp::DataAt(int index) {
DCHECK(TypeTag() != NOT_COMPILED);
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698