diff options
Diffstat (limited to 'chromium/v8/src/strings')
-rw-r--r-- | chromium/v8/src/strings/uri.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/v8/src/strings/uri.cc b/chromium/v8/src/strings/uri.cc index 466c3616a1a..905c86d3c25 100644 --- a/chromium/v8/src/strings/uri.cc +++ b/chromium/v8/src/strings/uri.cc @@ -10,6 +10,7 @@ #include "src/strings/char-predicates-inl.h" #include "src/strings/string-search.h" #include "src/strings/unicode-inl.h" +#include "src/tracing/trace-event.h" namespace v8 { namespace internal { @@ -174,6 +175,8 @@ bool IntoOneAndTwoByte(Handle<String> uri, bool is_uri, MaybeHandle<String> Uri::Decode(Isolate* isolate, Handle<String> uri, bool is_uri) { + TRACE_EVENT0("v8", "V8.DecodeUri"); + uri = String::Flatten(isolate, uri); std::vector<uint8_t> one_byte_buffer; std::vector<uc16> two_byte_buffer; @@ -278,6 +281,8 @@ void EncodePair(uc16 cc1, uc16 cc2, std::vector<uint8_t>* buffer) { MaybeHandle<String> Uri::Encode(Isolate* isolate, Handle<String> uri, bool is_uri) { + TRACE_EVENT0("v8", "V8.EncodeUri"); + uri = String::Flatten(isolate, uri); int uri_length = uri->length(); std::vector<uint8_t> buffer; |