Home
last modified time | relevance | path

Searched refs:String16 (Results 1 – 25 of 53) sorted by relevance

123

/external/v8/src/inspector/
Dstring-16.h21 class String16 {
25 String16();
26 String16(const String16& other);
27 String16(String16&& other) V8_NOEXCEPT;
28 String16(const UChar* characters, size_t size);
29 String16(const UChar* characters); // NOLINT(runtime/explicit)
30 String16(const char* characters); // NOLINT(runtime/explicit)
31 String16(const char* characters, size_t size);
32 explicit String16(const std::basic_string<UChar>& impl);
34 String16& operator=(const String16& other);
[all …]
Dv8-debugger-agent-impl.h44 Response enable(String16* outDebuggerId) override;
49 int lineNumber, Maybe<String16> optionalURL,
50 Maybe<String16> optionalURLRegex, Maybe<String16> optionalScriptHash,
51 Maybe<int> optionalColumnNumber, Maybe<String16> optionalCondition,
52 String16*,
57 Maybe<String16> optionalCondition, String16*,
59 Response setBreakpointOnFunctionCall(const String16& functionObjectId,
60 Maybe<String16> optionalCondition,
61 String16* outBreakpointId) override;
62 Response removeBreakpoint(const String16& breakpointId) override;
[all …]
Dsearch-util.cc16 String16 findMagicComment(const String16& content, const String16& name, in findMagicComment()
18 DCHECK_EQ(String16::kNotFound, name.find("=")); in findMagicComment()
27 if (pos == String16::kNotFound) return String16(); in findMagicComment()
30 if (pos < 4) return String16(); in findMagicComment()
42 if (closingCommentPos == String16::kNotFound) return String16(); in findMagicComment()
51 String16 match = multiline in findMagicComment()
56 if (newLine != String16::kNotFound) match = match.substring(0, newLine); in findMagicComment()
67 String16 createSearchRegexSource(const String16& text) { in createSearchRegexSource()
83 std::unique_ptr<std::vector<size_t>> lineEndings(const String16& text) { in lineEndings()
86 const String16 lineEndString = "\n"; in lineEndings()
[all …]
Dstring-16.cc373 String16::String16() {} in String16() function in v8_inspector::String16
375 String16::String16(const String16& other) in String16() function in v8_inspector::String16
378 String16::String16(String16&& other) V8_NOEXCEPT in String16() function in v8_inspector::String16
382 String16::String16(const UChar* characters, size_t size) in String16() function in v8_inspector::String16
385 String16::String16(const UChar* characters) : m_impl(characters) {} in String16() function in v8_inspector::String16
387 String16::String16(const char* characters) in String16() function in v8_inspector::String16
388 : String16(characters, std::strlen(characters)) {} in String16()
390 String16::String16(const char* characters, size_t size) { in String16() function in v8_inspector::String16
395 String16::String16(const std::basic_string<UChar>& impl) : m_impl(impl) {} in String16() function in v8_inspector::String16
397 String16& String16::operator=(const String16& other) { in operator =()
[all …]
Dv8-runtime-agent-impl.h64 void evaluate(const String16& expression, Maybe<String16> objectGroup,
71 void awaitPromise(const String16& promiseObjectId, Maybe<bool> returnByValue,
75 const String16& expression, Maybe<String16> objectId,
80 Maybe<String16> objectGroup,
82 Response releaseObject(const String16& objectId) override;
84 const String16& objectId, Maybe<bool> ownProperties,
91 Response releaseObjectGroup(const String16& objectGroup) override;
96 Response compileScript(const String16& expression, const String16& sourceURL,
98 Maybe<String16>*,
100 void runScript(const String16&, Maybe<int> executionContextId,
[all …]
Dv8-console-message.h52 const String16& consoleContext, std::unique_ptr<V8StackTraceImpl>);
55 double timestamp, const String16& detailedMessage, const String16& url,
58 const String16& message, int contextId, v8::Local<v8::Value> exception,
62 double timestamp, const String16& message, unsigned revokedExceptionId);
76 V8ConsoleMessage(V8MessageOrigin, double timestamp, const String16& message);
83 void setLocation(const String16& url, unsigned lineNumber,
89 String16 m_message;
90 String16 m_url;
101 String16 m_detailedMessage;
102 String16 m_consoleContext;
[all …]
Dv8-debugger-script.h53 v8::Local<v8::debug::WasmScript> underlyingScript, String16 id,
54 String16 url, int functionIndex);
58 const String16& scriptId() const { return m_id; } in scriptId()
60 const String16& sourceURL() const { return m_url; } in sourceURL()
62 virtual const String16& sourceMappingURL() const = 0;
63 virtual const String16& source() const = 0;
64 virtual const String16& hash() const = 0;
74 void setSourceURL(const String16&);
75 virtual void setSourceMappingURL(const String16&) = 0;
76 virtual void setSource(const String16& source, bool preview,
[all …]
Dv8-debugger-script.cc23 String16 calculateHash(const String16& str) { in calculateHash()
85 const String16& scriptId, in TranslateProtocolLocationToV8Location()
86 const String16& expectedV8ScriptId) { in TranslateProtocolLocationToV8Location()
90 String16 translatedScriptId = scriptId; in TranslateProtocolLocationToV8Location()
99 const String16& scriptId, const String16& expectedProtocolScriptId) { in TranslateV8LocationToProtocolLocation()
102 String16 translatedScriptId = scriptId; in TranslateV8LocationToProtocolLocation()
115 : V8DebuggerScript(isolate, String16::fromInteger(script->Id()), in ActualScript()
124 const String16& source() const override { return m_source; } in source()
131 const String16& sourceMappingURL() const override { in sourceMappingURL()
135 void setSourceMappingURL(const String16& sourceMappingURL) override { in setSourceMappingURL()
[all …]
Dwasm-translation.h46 bool TranslateWasmScriptLocationToProtocolLocation(String16* script_id,
55 bool TranslateProtocolLocationToWasmScriptLocation(String16* script_id,
59 const String16& GetSource(const String16& script_id, int func_index);
60 int GetStartLine(const String16& script_id, int func_index) { return 0; } in GetStartLine()
61 int GetStartColumn(const String16& script_id, int func_index) { return 0; } in GetStartColumn()
62 int GetEndLine(const String16& script_id, int func_index);
63 int GetEndColumn(const String16& script_id, int func_index);
64 String16 GetHash(const String16& script_id, int func_index);
70 void AddFakeScript(const String16& scriptId, TranslatorImpl* translator);
74 std::unordered_map<String16, TranslatorImpl*> fake_scripts_;
Dwasm-translation.cc22 String16 source;
29 WasmSourceInformation(String16 source, OffsetTable offset_table) in WasmSourceInformation()
34 while (next_newline != String16::kNotFound) { in WasmSourceInformation()
59 String16 script_id;
62 TransLocation(WasmTranslation* translation, String16 script_id, int line, in TransLocation()
75 virtual const String16 GetHash(v8::Isolate*, int index) = 0;
100 const String16 GetHash(v8::Isolate*, int index) override { in GetHash()
102 return String16(); in GetHash()
123 String16 script_id = String16::fromInteger(script->Id()); in Init()
189 loc->script_id = String16::fromInteger(script_.Get(isolate)->Id()); in TranslateBack()
[all …]
Dstring-util.cc14 v8::Local<v8::String> toV8String(v8::Isolate* isolate, const String16& string) { in toV8String()
24 const String16& string) { in toV8StringInternalized()
55 String16 toProtocolString(v8::Isolate* isolate, v8::Local<v8::String> value) { in toProtocolString()
56 if (value.IsEmpty() || value->IsNullOrUndefined()) return String16(); in toProtocolString()
60 return String16(buffer.get(), value->Length()); in toProtocolString()
63 String16 toProtocolStringWithTypeCheck(v8::Isolate* isolate, in toProtocolStringWithTypeCheck()
65 if (value.IsEmpty() || !value->IsString()) return String16(); in toProtocolStringWithTypeCheck()
69 String16 toString16(const StringView& string) { in toString16()
70 if (!string.length()) return String16(); in toString16()
72 return String16(reinterpret_cast<const char*>(string.characters8()), in toString16()
[all …]
Dstring-util.h22 using String = v8_inspector::String16;
59 static std::unique_ptr<protocol::Value> parseJSON(const String16& json);
65 v8::Local<v8::String> toV8String(v8::Isolate*, const String16&);
66 v8::Local<v8::String> toV8StringInternalized(v8::Isolate*, const String16&);
70 String16 toProtocolString(v8::Isolate*, v8::Local<v8::String>);
71 String16 toProtocolStringWithTypeCheck(v8::Isolate*, v8::Local<v8::Value>);
72 String16 toString16(const StringView&);
73 StringView toStringView(const String16&);
79 static std::unique_ptr<StringBufferImpl> adopt(String16&);
83 explicit StringBufferImpl(String16&);
[all …]
Dv8-debugger-agent-impl.cc66 String16 scriptId = location->getScriptId(); in TranslateLocation()
87 String16 generateBreakpointId(BreakpointType type, in generateBreakpointId()
88 const String16& scriptSelector, int lineNumber, in generateBreakpointId()
101 String16 generateBreakpointId(BreakpointType type, in generateBreakpointId()
110 bool parseBreakpointId(const String16& breakpointId, BreakpointType* type, in parseBreakpointId()
111 String16* scriptSelector = nullptr, in parseBreakpointId()
114 if (typeLineSeparator == String16::kNotFound) return false; in parseBreakpointId()
130 if (lineColumnSeparator == String16::kNotFound) return false; in parseBreakpointId()
133 if (columnSelectorSeparator == String16::kNotFound) return false; in parseBreakpointId()
159 String16 breakpointHint(const V8DebuggerScript& script, int lineNumber, in breakpointHint()
[all …]
Dinjected-script.h77 v8::Local<v8::Object>, const String16& groupName, bool ownProperties,
82 void releaseObject(const String16& objectId);
85 v8::Local<v8::Value>, const String16& groupName, bool forceValueType,
93 const String16& objectGroup, bool returnByValue,
98 String16 objectGroupName(const RemoteObjectId&) const;
99 void releaseObjectGroup(const String16&);
105 const v8::TryCatch&, const String16& groupName, bool generatePreview,
109 const String16& objectGroup, bool returnByValue, bool generatePreview,
115 int bindObject(v8::Local<v8::Value>, const String16& groupName);
167 ObjectScope(V8InspectorSessionImpl*, const String16& remoteObjectId);
[all …]
Dsearch-util.h15 String16 findSourceURL(const String16& content, bool multiline);
16 String16 findSourceMapURL(const String16& content, bool multiline);
18 searchInTextByLinesImpl(V8InspectorSession*, const String16& text,
19 const String16& query, bool caseSensitive,
Dv8-stack-trace-impl.h31 const String16& functionName() const;
32 const String16& scriptId() const;
33 const String16& sourceURL() const;
41 String16 m_functionName;
42 String16 m_scriptId;
43 String16 m_sourceURL;
114 const String16& description,
133 const String16& description() const;
143 AsyncStackTrace(int contextGroupId, const String16& description,
151 String16 m_description;
Dinspected-context.h32 String16 origin() const { return m_origin; } in origin()
33 String16 humanReadableName() const { return m_humanReadableName; } in humanReadableName()
34 String16 auxData() const { return m_auxData; } in auxData()
56 const String16 m_origin;
57 const String16 m_humanReadableName;
58 const String16 m_auxData;
Dv8-console-message.cc23 String16 consoleAPITypeValue(ConsoleAPIType type) { in consoleAPITypeValue()
69 static String16 toString(v8::Local<v8::Value> value, in toString()
72 if (!builder.append(value)) return String16(); in toString()
102 m_builder.append(String16::fromDouble( in append()
177 String16 toString() { in toString()
178 if (m_tryCatch.HasCaught()) return String16(); in toString()
193 const String16& message) in V8ConsoleMessage()
207 void V8ConsoleMessage::setLocation(const String16& url, unsigned lineNumber, in setLocation()
221 String16 level = protocol::Console::ConsoleMessage::LevelEnum::Log; in reportToFrontend()
309 exceptionDetails->setScriptId(String16::fromInteger(m_scriptId)); in reportToFrontend()
[all …]
Dv8-runtime-agent-impl.cc93 const String16& objectGroup, bool returnByValue, in wrapEvaluateResultAsync()
111 v8::Local<v8::Value> recv, const String16& expression, in innerCallFunctionOn()
114 bool awaitPromise, const String16& objectGroup, in innerCallFunctionOn()
146 ->compileScript(scope.context(), "(" + expression + ")", String16()) in innerCallFunctionOn()
232 const String16& expression, Maybe<String16> objectGroup, in evaluate()
301 const String16& promiseObjectId, Maybe<bool> returnByValue, in awaitPromise()
322 const String16& expression, Maybe<String16> objectId, in callFunctionOn()
326 Maybe<int> executionContextId, Maybe<String16> objectGroup, in callFunctionOn()
350 objectGroup.isJust() ? objectGroup.fromMaybe(String16()) in callFunctionOn()
378 const String16& objectId, Maybe<bool> ownProperties, in getProperties()
[all …]
Dv8-console.cc26 String16 consoleContextToString( in consoleContextToString()
28 if (consoleContext.id() == 0) return String16(); in consoleContextToString()
30 String16::fromInteger(consoleContext.id()); in consoleContextToString()
71 const String16& message) { in reportCallWithDefaultArgument()
78 void reportCallWithArgument(ConsoleAPIType type, const String16& message) { in reportCallWithArgument()
96 void reportDeprecatedCall(const char* id, const String16& message) { in reportDeprecatedCall()
112 String16 firstArgToString(const String16& defaultValue, in firstArgToString()
251 String16("console.trace")); in Trace()
258 String16("console.group")); in Group()
266 String16("console.groupCollapsed")); in GroupCollapsed()
[all …]
Dremote-object-id.cc15 RemoteObjectIdBase::parseInjectedScriptId(const String16& objectId) { in parseInjectedScriptId()
31 Response RemoteObjectId::parse(const String16& objectId, in parse()
47 Response RemoteCallFrameId::parse(const String16& objectId, in parse()
61 String16 RemoteCallFrameId::serialize(int injectedScriptId, int frameOrdinal) { in serialize()
62 return "{\"ordinal\":" + String16::fromInteger(frameOrdinal) + in serialize()
63 ",\"injectedScriptId\":" + String16::fromInteger(injectedScriptId) + in serialize()
Dv8-profiler-agent-impl.h57 void consoleProfile(const String16& title);
58 void consoleProfileEnd(const String16& title);
61 String16 nextProfileId();
63 void startProfiling(const String16& title);
65 const String16& title, bool serialize);
76 String16 m_frontendInitiatedProfileId;
Dv8-profiler-agent-impl.cc35 String16 resourceNameToUrl(V8InspectorImpl* inspector, in resourceNameToUrl()
37 String16 name = toProtocolString(inspector->isolate(), v8Name); in resourceNameToUrl()
70 .setScriptId(String16::fromInteger(node->GetScriptId())) in buildInspectorObjectFor()
161 ProfileDescriptor(const String16& id, const String16& title) in ProfileDescriptor()
163 String16 m_id;
164 String16 m_title;
179 void V8ProfilerAgentImpl::consoleProfile(const String16& title) { in consoleProfile()
181 String16 id = nextProfileId(); in consoleProfile()
188 void V8ProfilerAgentImpl::consoleProfileEnd(const String16& title) { in consoleProfileEnd()
190 String16 id; in consoleProfileEnd()
[all …]
Dv8-regex.h21 V8Regex(V8InspectorImpl*, const String16&, bool caseSensitive,
23 int match(const String16&, int startFrom = 0, int* matchLength = 0) const;
25 const String16& errorMessage() const { return m_errorMessage; } in errorMessage()
30 String16 m_errorMessage;
Dv8-heap-profiler-agent-impl.h39 const String16& heapSnapshotObjectId, Maybe<String16> objectGroup,
42 const String16& inspectedHeapObjectId) override;
43 Response getHeapObjectId(const String16& objectId,
44 String16* heapSnapshotObjectId) override;

123