diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-20 13:40:20 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-01-22 12:41:23 +0000 |
commit | 7961cea6d1041e3e454dae6a1da660b453efd238 (patch) | |
tree | c0eeb4a9ff9ba32986289c1653d9608e53ccb444 /chromium/v8/src/logging | |
parent | b7034d0803538058e5c9d904ef03cf5eab34f6ef (diff) | |
download | qtwebengine-chromium-7961cea6d1041e3e454dae6a1da660b453efd238.tar.gz |
BASELINE: Update Chromium to 78.0.3904.130
Change-Id: If185e0c0061b3437531c97c9c8c78f239352a68b
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/v8/src/logging')
-rw-r--r-- | chromium/v8/src/logging/OWNERS | 2 | ||||
-rw-r--r-- | chromium/v8/src/logging/code-events.h | 4 | ||||
-rw-r--r-- | chromium/v8/src/logging/counters-definitions.h | 2 | ||||
-rw-r--r-- | chromium/v8/src/logging/counters.h | 1 | ||||
-rw-r--r-- | chromium/v8/src/logging/log.cc | 18 | ||||
-rw-r--r-- | chromium/v8/src/logging/log.h | 8 |
6 files changed, 25 insertions, 10 deletions
diff --git a/chromium/v8/src/logging/OWNERS b/chromium/v8/src/logging/OWNERS index 852d438bb0a..48d72aea5ee 100644 --- a/chromium/v8/src/logging/OWNERS +++ b/chromium/v8/src/logging/OWNERS @@ -1 +1 @@ -file://COMMON_OWNERS +file:../../COMMON_OWNERS diff --git a/chromium/v8/src/logging/code-events.h b/chromium/v8/src/logging/code-events.h index 262ddf7df39..7df135c43fa 100644 --- a/chromium/v8/src/logging/code-events.h +++ b/chromium/v8/src/logging/code-events.h @@ -89,6 +89,7 @@ class CodeEventListener { virtual void RegExpCodeCreateEvent(AbstractCode code, String source) = 0; virtual void CodeMoveEvent(AbstractCode from, AbstractCode to) = 0; virtual void SharedFunctionInfoMoveEvent(Address from, Address to) = 0; + virtual void NativeContextMoveEvent(Address from, Address to) = 0; virtual void CodeMovingGCEvent() = 0; virtual void CodeDisableOptEvent(AbstractCode code, SharedFunctionInfo shared) = 0; @@ -164,6 +165,9 @@ class CodeEventDispatcher { void SharedFunctionInfoMoveEvent(Address from, Address to) { CODE_EVENT_DISPATCH(SharedFunctionInfoMoveEvent(from, to)); } + void NativeContextMoveEvent(Address from, Address to) { + CODE_EVENT_DISPATCH(NativeContextMoveEvent(from, to)); + } void CodeMovingGCEvent() { CODE_EVENT_DISPATCH(CodeMovingGCEvent()); } void CodeDisableOptEvent(AbstractCode code, SharedFunctionInfo shared) { CODE_EVENT_DISPATCH(CodeDisableOptEvent(code, shared)); diff --git a/chromium/v8/src/logging/counters-definitions.h b/chromium/v8/src/logging/counters-definitions.h index 3d517e29fcd..8c808276faa 100644 --- a/chromium/v8/src/logging/counters-definitions.h +++ b/chromium/v8/src/logging/counters-definitions.h @@ -188,6 +188,8 @@ namespace internal { V8.WasmCompileModuleAsyncMicroSeconds, 100000000, MICROSECOND) \ HT(wasm_streaming_compile_wasm_module_time, \ V8.WasmCompileModuleStreamingMicroSeconds, 100000000, MICROSECOND) \ + HT(wasm_streaming_deserialize_wasm_module_time, \ + V8.WasmDeserializeModuleStreamingMicroSeconds, 100000000, MICROSECOND) \ HT(wasm_tier_up_module_time, V8.WasmTierUpModuleMicroSeconds, 100000000, \ MICROSECOND) \ HT(wasm_compile_asm_function_time, V8.WasmCompileFunctionMicroSeconds.asm, \ diff --git a/chromium/v8/src/logging/counters.h b/chromium/v8/src/logging/counters.h index 1efa7105cd4..4466e0a53bc 100644 --- a/chromium/v8/src/logging/counters.h +++ b/chromium/v8/src/logging/counters.h @@ -764,6 +764,7 @@ class RuntimeCallTimer final { V(Int8Array_New) \ V(Isolate_DateTimeConfigurationChangeNotification) \ V(Isolate_LocaleConfigurationChangeNotification) \ + V(FinalizationGroup_Cleanup) \ V(JSON_Parse) \ V(JSON_Stringify) \ V(Map_AsArray) \ diff --git a/chromium/v8/src/logging/log.cc b/chromium/v8/src/logging/log.cc index ecf4de67673..9b86a16031e 100644 --- a/chromium/v8/src/logging/log.cc +++ b/chromium/v8/src/logging/log.cc @@ -765,7 +765,7 @@ class Profiler : public base::Thread { void Disengage(); // Inserts collected profiling data into buffer. - void Insert(v8::TickSample* sample) { + void Insert(TickSample* sample) { if (Succ(head_) == static_cast<int>(base::Relaxed_Load(&tail_))) { overflow_ = true; } else { @@ -779,7 +779,7 @@ class Profiler : public base::Thread { private: // Waits for a signal and removes profiling data. - bool Remove(v8::TickSample* sample) { + bool Remove(TickSample* sample) { buffer_semaphore_.Wait(); // Wait for an element. *sample = buffer_[base::Relaxed_Load(&tail_)]; bool result = overflow_; @@ -796,7 +796,7 @@ class Profiler : public base::Thread { // Cyclic buffer for communicating profiling samples // between the signal handler and the worker thread. static const int kBufferSize = 128; - v8::TickSample buffer_[kBufferSize]; // Buffer storage. + TickSample buffer_[kBufferSize]; // Buffer storage. int head_; // Index to the buffer head. base::Atomic32 tail_; // Index to the buffer tail. bool overflow_; // Tell whether a buffer overflow has occurred. @@ -871,7 +871,7 @@ void Profiler::Engage() { // Start thread processing the profiler buffer. base::Relaxed_Store(&running_, 1); - Start(); + CHECK(Start()); // Register to get ticks. Logger* logger = isolate_->logger(); @@ -888,7 +888,7 @@ void Profiler::Disengage() { // inserting a fake element in the queue and then wait for // the thread to terminate. base::Relaxed_Store(&running_, 0); - v8::TickSample sample; + TickSample sample; Insert(&sample); Join(); @@ -896,7 +896,7 @@ void Profiler::Disengage() { } void Profiler::Run() { - v8::TickSample sample; + TickSample sample; bool overflow = Remove(&sample); while (base::Relaxed_Load(&running_)) { LOG(isolate_, TickEvent(&sample, overflow)); @@ -1549,7 +1549,7 @@ void Logger::RuntimeCallTimerEvent() { msg.WriteToLogFile(); } -void Logger::TickEvent(v8::TickSample* sample, bool overflow) { +void Logger::TickEvent(TickSample* sample, bool overflow) { if (!log_->IsEnabled() || !FLAG_prof_cpp) return; if (V8_UNLIKELY(TracingFlags::runtime_stats.load(std::memory_order_relaxed) == v8::tracing::TracingCategoryObserver::ENABLED_BY_NATIVE)) { @@ -1978,6 +1978,10 @@ void ExistingCodeLogger::LogCodeObject(Object object) { description = "A JavaScript to Wasm adapter"; tag = CodeEventListener::STUB_TAG; break; + case AbstractCode::JS_TO_JS_FUNCTION: + description = "A WebAssembly.Function adapter"; + tag = CodeEventListener::STUB_TAG; + break; case AbstractCode::WASM_TO_CAPI_FUNCTION: description = "A Wasm to C-API adapter"; tag = CodeEventListener::STUB_TAG; diff --git a/chromium/v8/src/logging/log.h b/chromium/v8/src/logging/log.h index e46409a66e3..3c28222982c 100644 --- a/chromium/v8/src/logging/log.h +++ b/chromium/v8/src/logging/log.h @@ -15,14 +15,14 @@ namespace v8 { -struct TickSample; - namespace sampler { class Sampler; } namespace internal { +struct TickSample; + // Logger is used for collecting logging information from V8 during // execution. The result is dumped to a file. // @@ -216,6 +216,8 @@ class Logger : public CodeEventListener { void SharedFunctionInfoMoveEvent(Address from, Address to) override; + void NativeContextMoveEvent(Address from, Address to) override {} + void CodeNameEvent(Address addr, int pos, const char* code_name); void CodeDeoptEvent(Code code, DeoptimizeKind kind, Address pc, @@ -401,6 +403,7 @@ class V8_EXPORT_PRIVATE CodeEventLogger : public CodeEventListener { void GetterCallbackEvent(Name name, Address entry_point) override {} void SetterCallbackEvent(Name name, Address entry_point) override {} void SharedFunctionInfoMoveEvent(Address from, Address to) override {} + void NativeContextMoveEvent(Address from, Address to) override {} void CodeMovingGCEvent() override {} void CodeDeoptEvent(Code code, DeoptimizeKind kind, Address pc, int fp_to_sp_delta) override {} @@ -453,6 +456,7 @@ class ExternalCodeEventListener : public CodeEventListener { void GetterCallbackEvent(Name name, Address entry_point) override {} void SetterCallbackEvent(Name name, Address entry_point) override {} void SharedFunctionInfoMoveEvent(Address from, Address to) override {} + void NativeContextMoveEvent(Address from, Address to) override {} void CodeMoveEvent(AbstractCode from, AbstractCode to) override {} void CodeDisableOptEvent(AbstractCode code, SharedFunctionInfo shared) override {} |