/external/v8/src/runtime/ |
D | runtime-regexp.cc | 392 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> pattern_regexp, in StringReplaceGlobalAtomRegExpWithString() 399 DCHECK_EQ(JSRegExp::ATOM, pattern_regexp->TypeTag()); in StringReplaceGlobalAtomRegExpWithString() 401 String::cast(pattern_regexp->DataAt(JSRegExp::kAtomPatternIndex)); in StringReplaceGlobalAtomRegExpWithString() 470 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithString() 485 if (regexp->TypeTag() == JSRegExp::ATOM && simple_replace) { in StringReplaceGlobalRegExpWithString() 555 Isolate* isolate, Handle<String> subject, Handle<JSRegExp> regexp, in StringReplaceGlobalRegExpWithEmptyString() 560 if (regexp->TypeTag() == JSRegExp::ATOM) { in StringReplaceGlobalRegExpWithEmptyString() 658 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 1); in RUNTIME_FUNCTION() 661 RUNTIME_ASSERT(regexp->GetFlags() & JSRegExp::kGlobal); in RUNTIME_FUNCTION() 774 CONVERT_ARG_HANDLE_CHECKED(JSRegExp, regexp, 0); in RUNTIME_FUNCTION() [all …]
|
D | runtime-literals.cc | 249 isolate, boilerplate, JSRegExp::New(pattern, JSRegExp::Flags(flags))); in RUNTIME_FUNCTION() 252 return *JSRegExp::Copy(Handle<JSRegExp>::cast(boilerplate)); in RUNTIME_FUNCTION()
|
/external/v8/src/ |
D | compilation-cache.h | 134 MaybeHandle<FixedArray> Lookup(Handle<String> source, JSRegExp::Flags flags); 137 JSRegExp::Flags flags, 168 Handle<String> source, JSRegExp::Flags flags); 186 JSRegExp::Flags flags,
|
D | objects-debug.cc | 163 JSRegExp::cast(this)->JSRegExpVerify(); in HeapObjectVerify() 792 void JSRegExp::JSRegExpVerify() { in JSRegExpVerify() 796 case JSRegExp::ATOM: { in JSRegExpVerify() 798 CHECK(arr->get(JSRegExp::kAtomPatternIndex)->IsString()); in JSRegExpVerify() 801 case JSRegExp::IRREGEXP: { in JSRegExpVerify() 805 Object* one_byte_data = arr->get(JSRegExp::kIrregexpLatin1CodeIndex); in JSRegExpVerify() 812 Object* uc16_data = arr->get(JSRegExp::kIrregexpUC16CodeIndex); in JSRegExpVerify() 817 arr->get(JSRegExp::kIrregexpLatin1CodeSavedIndex); in JSRegExpVerify() 820 Object* uc16_saved = arr->get(JSRegExp::kIrregexpUC16CodeSavedIndex); in JSRegExpVerify() 824 CHECK(arr->get(JSRegExp::kIrregexpCaptureCountIndex)->IsSmi()); in JSRegExpVerify() [all …]
|
D | compilation-cache.cc | 246 JSRegExp::Flags flags) { in Lookup() 273 JSRegExp::Flags flags, in Put() 320 JSRegExp::Flags flags) { in LookupRegExp() 356 JSRegExp::Flags flags, in PutRegExp()
|
D | factory.cc | 2357 void Factory::SetRegExpAtomData(Handle<JSRegExp> regexp, in SetRegExpAtomData() 2358 JSRegExp::Type type, in SetRegExpAtomData() 2360 JSRegExp::Flags flags, in SetRegExpAtomData() 2362 Handle<FixedArray> store = NewFixedArray(JSRegExp::kAtomDataSize); in SetRegExpAtomData() 2364 store->set(JSRegExp::kTagIndex, Smi::FromInt(type)); in SetRegExpAtomData() 2365 store->set(JSRegExp::kSourceIndex, *source); in SetRegExpAtomData() 2366 store->set(JSRegExp::kFlagsIndex, Smi::FromInt(flags)); in SetRegExpAtomData() 2367 store->set(JSRegExp::kAtomPatternIndex, *data); in SetRegExpAtomData() 2372 void Factory::SetRegExpIrregexpData(Handle<JSRegExp> regexp, in SetRegExpIrregexpData() 2373 JSRegExp::Type type, in SetRegExpIrregexpData() [all …]
|
D | factory.h | 656 void SetRegExpAtomData(Handle<JSRegExp> regexp, 657 JSRegExp::Type type, 659 JSRegExp::Flags flags, 664 void SetRegExpIrregexpData(Handle<JSRegExp> regexp, 665 JSRegExp::Type type, 667 JSRegExp::Flags flags,
|
D | api.h | 146 V(RegExp, JSRegExp) \ 202 v8::internal::Handle<v8::internal::JSRegExp> obj); 356 MAKE_TO_LOCAL(ToLocal, JSRegExp, RegExp) in MAKE_TO_LOCAL()
|
D | objects-inl.h | 878 TYPE_CHECKER(JSRegExp, JS_REGEXP_TYPE) in TYPE_CHECKER() argument 2122 return JSRegExp::kSize; in GetHeaderSize() 3232 CAST_ACCESSOR(JSRegExp) 6591 ACCESSORS(JSRegExp, data, Object, kDataOffset) in ACCESSORS() 6592 ACCESSORS(JSRegExp, flags, Object, kFlagsOffset) in ACCESSORS() 6593 ACCESSORS(JSRegExp, source, Object, kSourceOffset) in ACCESSORS() 6596 JSRegExp::Type JSRegExp::TypeTag() { in ACCESSORS() 6598 if (data->IsUndefined()) return JSRegExp::NOT_COMPILED; in ACCESSORS() 6600 return static_cast<JSRegExp::Type>(smi->value()); in ACCESSORS() 6604 int JSRegExp::CaptureCount() { in CaptureCount() [all …]
|
D | objects.h | 978 V(JSRegExp) \ 7722 class JSRegExp: public JSObject { 7744 static MaybeHandle<JSRegExp> New(Handle<String> source, Flags flags); 7745 static MaybeHandle<JSRegExp> New(Handle<String> source, Handle<String> flags); 7746 static Handle<JSRegExp> Copy(Handle<JSRegExp> regexp); 7748 static MaybeHandle<JSRegExp> Initialize(Handle<JSRegExp> regexp, 7750 static MaybeHandle<JSRegExp> Initialize(Handle<JSRegExp> regexp, 7778 DECLARE_CAST(JSRegExp) 7781 DECLARE_PRINTER(JSRegExp) 7782 DECLARE_VERIFIER(JSRegExp) [all …]
|
D | objects.cc | 16752 JSRegExp::Flags RegExpFlagsFromString(Handle<String> flags, bool* success) { in RegExpFlagsFromString() 16753 JSRegExp::Flags value = JSRegExp::kNone; in RegExpFlagsFromString() 16756 if (length > 5) return JSRegExp::Flags(0); in RegExpFlagsFromString() 16758 JSRegExp::Flag flag = JSRegExp::kNone; in RegExpFlagsFromString() 16761 flag = JSRegExp::kGlobal; in RegExpFlagsFromString() 16764 flag = JSRegExp::kIgnoreCase; in RegExpFlagsFromString() 16767 flag = JSRegExp::kMultiline; in RegExpFlagsFromString() 16770 if (!FLAG_harmony_unicode_regexps) return JSRegExp::Flags(0); in RegExpFlagsFromString() 16771 flag = JSRegExp::kUnicode; in RegExpFlagsFromString() 16774 if (!FLAG_harmony_regexps) return JSRegExp::Flags(0); in RegExpFlagsFromString() [all …]
|
D | log.h | 304 void RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache);
|
D | log.cc | 966 void LogRegExpSource(Handle<JSRegExp> regexp, Isolate* isolate, in LogRegExpSource() 979 case JSRegExp::ATOM: in LogRegExpSource() 1011 void Logger::RegExpCompileEvent(Handle<JSRegExp> regexp, bool in_cache) { in RegExpCompileEvent()
|
D | objects-printer.cc | 105 JSRegExp::cast(this)->JSRegExpPrint(os); in HeapObjectPrint() 419 void JSRegExp::JSRegExpPrint(std::ostream& os) { // NOLINT in JSRegExpPrint()
|
/external/v8/src/regexp/ |
D | jsregexp.h | 42 MUST_USE_RESULT static MaybeHandle<Object> Compile(Handle<JSRegExp> re, 44 JSRegExp::Flags flags); 49 Handle<JSRegExp> regexp, 55 static void IrregexpInitialize(Handle<JSRegExp> re, 57 JSRegExp::Flags flags, 61 static void AtomCompile(Handle<JSRegExp> re, 63 JSRegExp::Flags flags, 67 static int AtomExecRaw(Handle<JSRegExp> regexp, 74 static Handle<Object> AtomExec(Handle<JSRegExp> regexp, 88 static int IrregexpPrepare(Handle<JSRegExp> regexp, [all …]
|
D | jsregexp.cc | 56 Handle<JSRegExp> re, Handle<String> pattern, Handle<String> error_text) { in ThrowRegExpException() 64 inline void ThrowRegExpException(Handle<JSRegExp> re, in ThrowRegExpException() 127 MaybeHandle<Object> RegExpImpl::Compile(Handle<JSRegExp> re, in Compile() 129 JSRegExp::Flags flags) { in Compile() 149 flags & JSRegExp::kMultiline, in Compile() 150 flags & JSRegExp::kUnicode, &parse_result)) { in Compile() 157 if (parse_result.simple && !(flags & JSRegExp::kIgnoreCase) && in Compile() 158 !(flags & JSRegExp::kSticky) && !HasFewDifferentCharacters(pattern)) { in Compile() 162 } else if (parse_result.tree->IsAtom() && !(flags & JSRegExp::kIgnoreCase) && in Compile() 163 !(flags & JSRegExp::kSticky) && parse_result.capture_count == 0) { in Compile() [all …]
|
D | jsregexp-inl.h | 42 if (regexp_->TypeTag() == JSRegExp::ATOM) { in FetchNext()
|
/external/v8/src/compiler/ |
D | access-builder.cc | 151 FieldAccess access = {kTaggedBase, JSRegExp::kFlagsOffset, in ForJSRegExpFlags() 160 FieldAccess access = {kTaggedBase, JSRegExp::kSourceOffset, in ForJSRegExpSource()
|
/external/v8/src/heap/ |
D | mark-compact.cc | 1234 static void UpdateRegExpCodeAgeAndFlush(Heap* heap, JSRegExp* re, in UpdateRegExpCodeAgeAndFlush() 1243 if (re->TypeTag() != JSRegExp::IRREGEXP) return; in UpdateRegExpCodeAgeAndFlush() 1245 Object* code = re->DataAt(JSRegExp::code_index(is_one_byte)); in UpdateRegExpCodeAgeAndFlush() 1249 re->SetDataAt(JSRegExp::saved_code_index(is_one_byte), code); in UpdateRegExpCodeAgeAndFlush() 1257 data->data_start() + JSRegExp::saved_code_index(is_one_byte); in UpdateRegExpCodeAgeAndFlush() 1261 re->SetDataAt(JSRegExp::code_index(is_one_byte), in UpdateRegExpCodeAgeAndFlush() 1266 if (value == JSRegExp::kUninitializedValue || in UpdateRegExpCodeAgeAndFlush() 1267 value == JSRegExp::kCompilationErrorValue) { in UpdateRegExpCodeAgeAndFlush() 1273 re->SetDataAt(JSRegExp::code_index(is_one_byte), in UpdateRegExpCodeAgeAndFlush() 1274 Smi::FromInt(JSRegExp::kUninitializedValue)); in UpdateRegExpCodeAgeAndFlush() [all …]
|
D | objects-visiting.h | 84 V(JSRegExp)
|
/external/v8/src/x87/ |
D | code-stubs-x87.cc | 924 __ mov(ecx, FieldOperand(eax, JSRegExp::kDataOffset)); in Generate() 934 __ mov(ebx, FieldOperand(ecx, JSRegExp::kDataTagOffset)); in Generate() 935 __ cmp(ebx, Immediate(Smi::FromInt(JSRegExp::IRREGEXP))); in Generate() 940 __ mov(edx, FieldOperand(ecx, JSRegExp::kIrregexpCaptureCountOffset)); in Generate() 1044 __ mov(edx, FieldOperand(ecx, JSRegExp::kDataOneByteCodeOffset)); in Generate() 1177 __ mov(ecx, FieldOperand(eax, JSRegExp::kDataOffset)); in Generate() 1178 __ mov(edx, FieldOperand(ecx, JSRegExp::kIrregexpCaptureCountOffset)); in Generate() 1293 __ mov(edx, FieldOperand(ecx, JSRegExp::kDataUC16CodeOffset)); in Generate()
|
/external/v8/src/arm64/ |
D | code-stubs-arm64.cc | 2248 __ Ldr(regexp_data, FieldMemOperand(jsregexp_object, JSRegExp::kDataOffset)); in Generate() 2258 __ Ldr(x10, FieldMemOperand(regexp_data, JSRegExp::kDataTagOffset)); in Generate() 2259 __ Cmp(x10, Smi::FromInt(JSRegExp::IRREGEXP)); in Generate() 2268 JSRegExp::kIrregexpCaptureCountOffset)); in Generate() 2380 STATIC_ASSERT(JSRegExp::kDataOneByteCodeOffset + kPointerSize == in Generate() 2381 JSRegExp::kDataUC16CodeOffset); in Generate() 2388 __ Ldr(code_object, FieldMemOperand(x10, JSRegExp::kDataOneByteCodeOffset)); in Generate() 2503 JSRegExp::kIrregexpCaptureCountOffset)); in Generate()
|
/external/v8/src/x64/ |
D | code-stubs-x64.cc | 1074 __ movp(rax, FieldOperand(rax, JSRegExp::kDataOffset)); in Generate() 1085 __ SmiToInteger32(rbx, FieldOperand(rax, JSRegExp::kDataTagOffset)); in Generate() 1086 __ cmpl(rbx, Immediate(JSRegExp::IRREGEXP)); in Generate() 1092 FieldOperand(rax, JSRegExp::kIrregexpCaptureCountOffset)); in Generate() 1183 __ movp(r11, FieldOperand(rax, JSRegExp::kDataOneByteCodeOffset)); in Generate() 1328 __ movp(rcx, FieldOperand(rax, JSRegExp::kDataOffset)); in Generate() 1330 FieldOperand(rcx, JSRegExp::kIrregexpCaptureCountOffset)); in Generate() 1455 __ movp(r11, FieldOperand(rax, JSRegExp::kDataUC16CodeOffset)); in Generate()
|
/external/v8/src/ia32/ |
D | code-stubs-ia32.cc | 1223 __ mov(ecx, FieldOperand(eax, JSRegExp::kDataOffset)); in Generate() 1233 __ mov(ebx, FieldOperand(ecx, JSRegExp::kDataTagOffset)); in Generate() 1234 __ cmp(ebx, Immediate(Smi::FromInt(JSRegExp::IRREGEXP))); in Generate() 1239 __ mov(edx, FieldOperand(ecx, JSRegExp::kIrregexpCaptureCountOffset)); in Generate() 1343 __ mov(edx, FieldOperand(ecx, JSRegExp::kDataOneByteCodeOffset)); in Generate() 1476 __ mov(ecx, FieldOperand(eax, JSRegExp::kDataOffset)); in Generate() 1477 __ mov(edx, FieldOperand(ecx, JSRegExp::kIrregexpCaptureCountOffset)); in Generate() 1598 __ mov(edx, FieldOperand(ecx, JSRegExp::kDataUC16CodeOffset)); in Generate()
|
/external/v8/src/mips64/ |
D | code-stubs-mips64.cc | 2045 __ ld(regexp_data, FieldMemOperand(a0, JSRegExp::kDataOffset)); in Generate() 2061 __ ld(a0, FieldMemOperand(regexp_data, JSRegExp::kDataTagOffset)); in Generate() 2062 __ Branch(&runtime, ne, a0, Operand(Smi::FromInt(JSRegExp::IRREGEXP))); in Generate() 2067 FieldMemOperand(regexp_data, JSRegExp::kIrregexpCaptureCountOffset)); in Generate() 2162 __ ld(t9, FieldMemOperand(regexp_data, JSRegExp::kDataOneByteCodeOffset)); in Generate() 2164 __ ld(a5, FieldMemOperand(regexp_data, JSRegExp::kDataUC16CodeOffset)); in Generate() 2330 regexp_data, JSRegExp::kIrregexpCaptureCountOffset)); in Generate()
|