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/snapshot/natives.h b/src/snapshot/natives.h
new file mode 100644
index 0000000..07f6b1a
--- /dev/null
+++ b/src/snapshot/natives.h
@@ -0,0 +1,66 @@
+// Copyright 2011 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_SNAPSHOT_NATIVES_H_
+#define V8_SNAPSHOT_NATIVES_H_
+
+#include "src/objects.h"
+#include "src/vector.h"
+
+namespace v8 { class StartupData; }  // Forward declaration.
+
+namespace v8 {
+namespace internal {
+
+enum NativeType {
+  CORE,
+  EXPERIMENTAL,
+  EXTRAS,
+  EXPERIMENTAL_EXTRAS,
+  D8,
+  TEST
+};
+
+template <NativeType type>
+class NativesCollection {
+ public:
+  // The following methods are implemented in js2c-generated code:
+
+  // Number of built-in scripts.
+  static int GetBuiltinsCount();
+  // Number of debugger implementation scripts.
+  static int GetDebuggerCount();
+
+  // These are used to access built-in scripts.  The debugger implementation
+  // scripts have an index in the interval [0, GetDebuggerCount()).  The
+  // non-debugger scripts have an index in the interval [GetDebuggerCount(),
+  // GetNativesCount()).
+  static int GetIndex(const char* name);
+  static Vector<const char> GetScriptSource(int index);
+  static Vector<const char> GetScriptName(int index);
+  static Vector<const char> GetScriptsSource();
+
+  // The following methods are implemented in natives-common.cc:
+
+  static FixedArray* GetSourceCache(Heap* heap);
+  static void UpdateSourceCache(Heap* heap);
+};
+
+typedef NativesCollection<CORE> Natives;
+typedef NativesCollection<EXPERIMENTAL> ExperimentalNatives;
+typedef NativesCollection<EXTRAS> ExtraNatives;
+typedef NativesCollection<EXPERIMENTAL_EXTRAS> ExperimentalExtraNatives;
+
+
+#ifdef V8_USE_EXTERNAL_STARTUP_DATA
+// Used for reading the natives at runtime. Implementation in natives-empty.cc
+void SetNativesFromFile(StartupData* natives_blob);
+void ReadNatives();
+void DisposeNatives();
+#endif
+
+}  // namespace internal
+}  // namespace v8
+
+#endif  // V8_SNAPSHOT_NATIVES_H_