Upgrade V8 to version 4.9.385.28
https://chromium.googlesource.com/v8/v8/+/4.9.385.28
FPIIM-449
Change-Id: I4b2e74289d4bf3667f2f3dc8aa2e541f63e26eb4
diff --git a/src/v8.cc b/src/v8.cc
index b04ccc0..31b4878 100644
--- a/src/v8.cc
+++ b/src/v8.cc
@@ -8,22 +8,19 @@
#include "src/base/once.h"
#include "src/base/platform/platform.h"
#include "src/bootstrapper.h"
-#include "src/compiler/pipeline.h"
-#include "src/debug.h"
+#include "src/crankshaft/lithium-allocator.h"
+#include "src/debug/debug.h"
#include "src/deoptimizer.h"
#include "src/elements.h"
#include "src/frames.h"
-#include "src/heap/store-buffer.h"
-#include "src/heap-profiler.h"
-#include "src/hydrogen.h"
#include "src/isolate.h"
-#include "src/lithium-allocator.h"
-#include "src/natives.h"
#include "src/objects.h"
+#include "src/profiler/heap-profiler.h"
+#include "src/profiler/sampler.h"
#include "src/runtime-profiler.h"
-#include "src/sampler.h"
-#include "src/serialize.h"
-#include "src/snapshot.h"
+#include "src/snapshot/natives.h"
+#include "src/snapshot/serialize.h"
+#include "src/snapshot/snapshot.h"
namespace v8 {
@@ -36,7 +33,6 @@
V8_DECLARE_ONCE(init_snapshot_once);
#endif
-v8::ArrayBuffer::Allocator* V8::array_buffer_allocator_ = NULL;
v8::Platform* V8::platform_ = NULL;
@@ -50,7 +46,6 @@
Bootstrapper::TearDownExtensions();
ElementsAccessor::TearDown();
LOperand::TearDownCaches();
- compiler::Pipeline::TearDown();
ExternalReference::TearDownMathExpData();
RegisteredExtension::UnregisterAll();
Isolate::GlobalTearDown();
@@ -59,12 +54,6 @@
}
-void V8::SetReturnAddressLocationResolver(
- ReturnAddressLocationResolver resolver) {
- StackFrame::SetReturnAddressLocationResolver(resolver);
-}
-
-
void V8::InitializeOncePerProcessImpl() {
FlagList::EnforceFlagImplications();
@@ -79,22 +68,19 @@
FLAG_max_semi_space_size = 1;
}
+ if (FLAG_turbo && strcmp(FLAG_turbo_filter, "~~") == 0) {
+ const char* filter_flag = "--turbo-filter=*";
+ FlagList::SetFlagsFromString(filter_flag, StrLength(filter_flag));
+ }
+
base::OS::Initialize(FLAG_random_seed, FLAG_hard_abort, FLAG_gc_fake_mmap);
Isolate::InitializeOncePerProcess();
Sampler::SetUp();
CpuFeatures::Probe(false);
- init_memcopy_functions();
- // The custom exp implementation needs 16KB of lookup data; initialize it
- // on demand.
- init_fast_sqrt_function();
-#ifdef _WIN64
- init_modulo_function();
-#endif
ElementsAccessor::InitializeOncePerProcess();
LOperand::SetUpCaches();
- compiler::Pipeline::SetUp();
SetUpJSCallerSavedCodeData();
ExternalReference::SetUp();
Bootstrapper::InitializeOncePerProcess();
@@ -125,6 +111,9 @@
}
+void V8::SetPlatformForTesting(v8::Platform* platform) { platform_ = platform; }
+
+
void V8::SetNativesBlob(StartupData* natives_blob) {
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
base::CallOnce(&init_natives_once, &SetNativesFromFile, natives_blob);
@@ -141,4 +130,5 @@
CHECK(false);
#endif
}
-} } // namespace v8::internal
+} // namespace internal
+} // namespace v8