From b014812705fc80bff0a5c120dfcef88f349816dc Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 24 Aug 2018 12:15:48 +0200 Subject: BASELINE: Update Chromium to 68.0.3440.125 Change-Id: I23f19369e01f688e496f5bf179abb521ad73874f Reviewed-by: Allan Sandfeld Jensen --- .../src/snapshot/builtin-deserializer-allocator.cc | 12 +- .../src/snapshot/builtin-deserializer-allocator.h | 2 +- chromium/v8/src/snapshot/code-serializer.cc | 16 +- chromium/v8/src/snapshot/code-serializer.h | 5 +- .../src/snapshot/default-deserializer-allocator.cc | 5 +- chromium/v8/src/snapshot/deserializer.cc | 73 ++++----- chromium/v8/src/snapshot/partial-deserializer.cc | 2 +- chromium/v8/src/snapshot/serializer-common.cc | 16 +- chromium/v8/src/snapshot/serializer-common.h | 7 +- chromium/v8/src/snapshot/serializer.cc | 180 +++++++++++++++------ chromium/v8/src/snapshot/serializer.h | 19 ++- chromium/v8/src/snapshot/snapshot-common.cc | 38 +++-- chromium/v8/src/snapshot/snapshot.h | 29 ++-- chromium/v8/src/snapshot/startup-serializer.cc | 9 +- 14 files changed, 265 insertions(+), 148 deletions(-) (limited to 'chromium/v8/src/snapshot') diff --git a/chromium/v8/src/snapshot/builtin-deserializer-allocator.cc b/chromium/v8/src/snapshot/builtin-deserializer-allocator.cc index 59cab6d40a5..4e3d546fa0a 100644 --- a/chromium/v8/src/snapshot/builtin-deserializer-allocator.cc +++ b/chromium/v8/src/snapshot/builtin-deserializer-allocator.cc @@ -44,16 +44,16 @@ Address BuiltinDeserializerAllocator::Allocate(AllocationSpace space, DCHECK(Internals::HasHeapObjectTag(obj)); return HeapObject::cast(obj)->address(); } else if (BSU::IsHandlerIndex(code_object_id)) { - if (handler_allocation_ != nullptr) { + if (handler_allocation_ != kNullAddress) { // Lazy deserialization. DCHECK_NULL(handler_allocations_); return handler_allocation_; } else { // Eager deserialization. - DCHECK_NULL(handler_allocation_); + DCHECK_EQ(kNullAddress, handler_allocation_); DCHECK_NOT_NULL(handler_allocations_); int index = HandlerAllocationIndex(code_object_id); - DCHECK_NOT_NULL(handler_allocations_->at(index)); + DCHECK_NE(kNullAddress, handler_allocations_->at(index)); return handler_allocations_->at(index); } } @@ -74,7 +74,7 @@ BuiltinDeserializerAllocator::CreateReservationsForEagerBuiltinsAndHandlers() { uint32_t builtin_size = deserializer()->ExtractCodeObjectSize(Builtins::kDeserializeLazy); DCHECK_LE(builtin_size, MemoryAllocator::PageAreaSize(CODE_SPACE)); - result.push_back({builtin_size, nullptr, nullptr}); + result.push_back({builtin_size, kNullAddress, kNullAddress}); } for (int i = 0; i < BSU::kNumberOfBuiltins; i++) { @@ -88,7 +88,7 @@ BuiltinDeserializerAllocator::CreateReservationsForEagerBuiltinsAndHandlers() { uint32_t builtin_size = deserializer()->ExtractCodeObjectSize(i); DCHECK_LE(builtin_size, MemoryAllocator::PageAreaSize(CODE_SPACE)); - result.push_back({builtin_size, nullptr, nullptr}); + result.push_back({builtin_size, kNullAddress, kNullAddress}); } // Reservations for bytecode handlers. @@ -110,7 +110,7 @@ BuiltinDeserializerAllocator::CreateReservationsForEagerBuiltinsAndHandlers() { const int index = BSU::BytecodeToIndex(bytecode, operand_scale); uint32_t handler_size = deserializer()->ExtractCodeObjectSize(index); DCHECK_LE(handler_size, MemoryAllocator::PageAreaSize(CODE_SPACE)); - result.push_back({handler_size, nullptr, nullptr}); + result.push_back({handler_size, kNullAddress, kNullAddress}); }); return result; diff --git a/chromium/v8/src/snapshot/builtin-deserializer-allocator.h b/chromium/v8/src/snapshot/builtin-deserializer-allocator.h index 207f02811af..65c5872d7a1 100644 --- a/chromium/v8/src/snapshot/builtin-deserializer-allocator.h +++ b/chromium/v8/src/snapshot/builtin-deserializer-allocator.h @@ -135,7 +135,7 @@ class BuiltinDeserializerAllocator final { // Stores the allocated space for a single handler during lazy // deserialization. - Address handler_allocation_ = nullptr; + Address handler_allocation_ = kNullAddress; bool next_reference_is_weak_ = false; diff --git a/chromium/v8/src/snapshot/code-serializer.cc b/chromium/v8/src/snapshot/code-serializer.cc index 2697e9dce42..8dc98d836ba 100644 --- a/chromium/v8/src/snapshot/code-serializer.cc +++ b/chromium/v8/src/snapshot/code-serializer.cc @@ -8,6 +8,7 @@ #include "src/code-stubs.h" #include "src/counters.h" +#include "src/debug/debug.h" #include "src/log.h" #include "src/macro-assembler.h" #include "src/objects-inl.h" @@ -32,7 +33,7 @@ ScriptData::ScriptData(const byte* data, int length) // static ScriptCompiler::CachedData* CodeSerializer::Serialize( - Handle info, Handle source) { + Handle info) { Isolate* isolate = info->GetIsolate(); TRACE_EVENT_CALL_STATS_SCOPED(isolate, "v8", "V8.Execute"); HistogramTimerScope histogram_timer(isolate->counters()->compile_serialize()); @@ -45,8 +46,7 @@ ScriptCompiler::CachedData* CodeSerializer::Serialize( Handle