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/BUILD.gn b/BUILD.gn
index 6534eea..8809713 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -2,9 +2,26 @@
 # Use of this source code is governed by a BSD-style license that can be
 # found in the LICENSE file.
 
+import("//build/config/android/config.gni")
+import("//build/config/arm.gni")
+import("//build/config/mips.gni")
+import("//build/config/sanitizers/sanitizers.gni")
+
+if (is_android) {
+  import("//build/config/android/rules.gni")
+}
+
 # Because standalone V8 builds are not supported, assume this is part of a
 # Chromium build.
-import("//build/module_args/v8.gni")
+import("//build_overrides/v8.gni")
+
+import("snapshot_toolchain.gni")
+
+declare_args() {
+  # Enable the snapshot feature, for fast context creation.
+  # http://v8project.blogspot.com/2015/09/custom-startup-snapshots.html
+  v8_use_snapshot = true
+}
 
 # TODO(jochen): These will need to be user-settable to support standalone V8
 # builds.
@@ -17,11 +34,17 @@
 v8_interpreted_regexp = false
 v8_object_print = false
 v8_postmortem_support = false
-v8_use_snapshot = true
-v8_enable_extra_checks = is_debug
-v8_target_arch = cpu_arch
 v8_random_seed = "314159265"
+v8_toolset_for_d8 = "host"
 
+if (is_msan) {
+  # Running the V8-generated code on an ARM simulator is a powerful hack that
+  # allows the tool to see the memory accesses from JITted code. Without this
+  # flag, JS code causes false positive reports from MSan.
+  v8_target_arch = "arm64"
+} else {
+  v8_target_arch = target_cpu
+}
 
 ###############################################################################
 # Configurations
@@ -31,7 +54,7 @@
 
   include_dirs = [ "." ]
 
-  if (component_mode == "shared_library") {
+  if (is_component_build) {
     defines = [
       "V8_SHARED",
       "BUILDING_V8_SHARED",
@@ -57,60 +80,45 @@
   include_dirs = [ "include" ]
 }
 
+# This config should only be applied to code that needs to be explicitly
+# aware of whether we are using startup data or not.
+config("external_startup_data") {
+  if (v8_use_external_startup_data) {
+    defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
+  }
+}
+
 config("features") {
   visibility = [ ":*" ]  # Only targets in this file can depend on this.
 
   defines = []
 
   if (v8_enable_disassembler == true) {
-    defines += [
-      "ENABLE_DISASSEMBLER",
-    ]
+    defines += [ "ENABLE_DISASSEMBLER" ]
   }
   if (v8_enable_gdbjit == true) {
-    defines += [
-      "ENABLE_GDB_JIT_INTERFACE",
-    ]
+    defines += [ "ENABLE_GDB_JIT_INTERFACE" ]
   }
   if (v8_object_print == true) {
-    defines += [
-      "OBJECT_PRINT",
-    ]
+    defines += [ "OBJECT_PRINT" ]
   }
   if (v8_enable_verify_heap == true) {
-    defines += [
-      "VERIFY_HEAP",
-    ]
+    defines += [ "VERIFY_HEAP" ]
   }
   if (v8_interpreted_regexp == true) {
-    defines += [
-      "V8_INTERPRETED_REGEXP",
-    ]
+    defines += [ "V8_INTERPRETED_REGEXP" ]
   }
   if (v8_deprecation_warnings == true) {
-    defines += [
-      "V8_DEPRECATION_WARNINGS",
-    ]
+    defines += [ "V8_DEPRECATION_WARNINGS" ]
   }
   if (v8_enable_i18n_support == true) {
-    defines += [
-      "V8_I18N_SUPPORT",
-    ]
-  }
-  if (v8_enable_extra_checks == true) {
-    defines += [
-      "ENABLE_EXTRA_CHECKS",
-    ]
+    defines += [ "V8_I18N_SUPPORT" ]
   }
   if (v8_enable_handle_zapping == true) {
-    defines += [
-      "ENABLE_HANDLE_ZAPPING",
-    ]
+    defines += [ "ENABLE_HANDLE_ZAPPING" ]
   }
   if (v8_use_external_startup_data == true) {
-    defines += [
-      "V8_USE_EXTERNAL_STARTUP_DATA",
-    ]
+    defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
   }
 }
 
@@ -120,27 +128,67 @@
   defines = []
   cflags = []
 
-  # TODO(jochen): Add support for arm, mips, mipsel.
+  # TODO(jochen): Add support for arm subarchs, mips, mipsel, mips64el.
 
+  if (v8_target_arch == "arm") {
+    defines += [ "V8_TARGET_ARCH_ARM" ]
+    if (current_cpu == "arm") {
+      if (arm_version == 7) {
+        defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ]
+      }
+      if (arm_fpu == "vfpv3-d16") {
+        defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ]
+      } else if (arm_fpu == "vfpv3") {
+        defines += [
+          "CAN_USE_VFP3_INSTRUCTIONS",
+          "CAN_USE_VFP32DREGS",
+        ]
+      } else if (arm_fpu == "neon") {
+        defines += [
+          "CAN_USE_VFP3_INSTRUCTIONS",
+          "CAN_USE_VFP32DREGS",
+          "CAN_USE_NEON",
+        ]
+      }
+    } else {
+      # These defines ares used for the ARM simulator.
+      defines += [
+        "CAN_USE_ARMV7_INSTRUCTIONS",
+        "CAN_USE_VFP3_INSTRUCTIONS",
+        "CAN_USE_VFP32DREGS",
+        "USE_EABI_HARDFLOAT=0",
+      ]
+    }
+
+    # TODO(jochen): Add support for arm_test_noprobe.
+  }
   if (v8_target_arch == "arm64") {
+    defines += [ "V8_TARGET_ARCH_ARM64" ]
+  }
+  if (v8_target_arch == "mipsel") {
+    defines += [ "V8_TARGET_ARCH_MIPS" ]
+  }
+  if (v8_target_arch == "mips64el") {
+    defines += [ "V8_TARGET_ARCH_MIPS64" ]
+  }
+  if (v8_target_arch == "s390") {
+    defines += [ "V8_TARGET_ARCH_S390" ]
+  } 
+  if (v8_target_arch == "s390x") {
     defines += [
-      "V8_TARGET_ARCH_ARM64",
+      "V8_TARGET_ARCH_S390",
+      "V8_TARGET_ARCH_S390X",
     ]
   }
   if (v8_target_arch == "x86") {
-    defines += [
-      "V8_TARGET_ARCH_IA32",
-    ]
+    defines += [ "V8_TARGET_ARCH_IA32" ]
   }
   if (v8_target_arch == "x64") {
-    defines += [
-      "V8_TARGET_ARCH_X64",
-    ]
+    defines += [ "V8_TARGET_ARCH_X64" ]
   }
+     
   if (is_win) {
-    defines += [
-      "WIN32",
-    ]
+    defines += [ "WIN32" ]
     # TODO(jochen): Support v8_enable_prof.
   }
 
@@ -170,56 +218,59 @@
 
   # The script depends on this other script, this rule causes a rebuild if it
   # changes.
-  source_prereqs = [ "tools/jsmin.py" ]
+  inputs = [ "tools/jsmin.py" ]
 
   sources = [
-    "src/runtime.js",
-    "src/v8natives.js",
-    "src/symbol.js",
-    "src/array.js",
-    "src/string.js",
-    "src/uri.js",
+    "src/js/macros.py",
+    "src/messages.h",
+    "src/js/prologue.js",
+    "src/js/runtime.js",
+    "src/js/v8natives.js",
+    "src/js/symbol.js",
+    "src/js/array.js",
+    "src/js/string.js",
+    "src/js/uri.js",
+    "src/js/math.js",
     "src/third_party/fdlibm/fdlibm.js",
-    "src/math.js",
-    "src/apinatives.js",
-    "src/date.js",
-    "src/regexp.js",
-    "src/arraybuffer.js",
-    "src/typedarray.js",
-    "src/generator.js",
-    "src/object-observe.js",
-    "src/collection.js",
-    "src/weak-collection.js",
-    "src/collection-iterator.js",
-    "src/promise.js",
-    "src/messages.js",
-    "src/json.js",
-    "src/array-iterator.js",
-    "src/string-iterator.js",
-    "src/debug-debugger.js",
-    "src/mirror-debugger.js",
-    "src/liveedit-debugger.js",
-    "src/macros.py",
+    "src/js/regexp.js",
+    "src/js/arraybuffer.js",
+    "src/js/typedarray.js",
+    "src/js/iterator-prototype.js",
+    "src/js/generator.js",
+    "src/js/object-observe.js",
+    "src/js/collection.js",
+    "src/js/weak-collection.js",
+    "src/js/collection-iterator.js",
+    "src/js/promise.js",
+    "src/js/messages.js",
+    "src/js/json.js",
+    "src/js/array-iterator.js",
+    "src/js/string-iterator.js",
+    "src/js/templates.js",
+    "src/js/spread.js",
+    "src/debug/mirrors.js",
+    "src/debug/debug.js",
+    "src/debug/liveedit.js",
   ]
 
   outputs = [
-    "$target_gen_dir/libraries.cc"
+    "$target_gen_dir/libraries.cc",
   ]
 
   if (v8_enable_i18n_support) {
-    sources += [ "src/i18n.js" ]
+    sources += [ "src/js/i18n.js" ]
   }
 
   args = [
-    rebase_path("$target_gen_dir/libraries.cc", root_build_dir),
-    "CORE",
-  ] + rebase_path(sources, root_build_dir)
+           rebase_path("$target_gen_dir/libraries.cc", root_build_dir),
+           "CORE",
+         ] + rebase_path(sources, root_build_dir)
 
   if (v8_use_external_startup_data) {
     outputs += [ "$target_gen_dir/libraries.bin" ]
     args += [
       "--startup_blob",
-      rebase_path("$target_gen_dir/libraries.bin", root_build_dir)
+      rebase_path("$target_gen_dir/libraries.bin", root_build_dir),
     ]
   }
 }
@@ -231,56 +282,154 @@
 
   # The script depends on this other script, this rule causes a rebuild if it
   # changes.
-  source_prereqs = [ "tools/jsmin.py" ]
+  inputs = [ "tools/jsmin.py" ]
 
   sources = [
-    "src/macros.py",
-    "src/proxy.js",
-    "src/generator.js",
-    "src/harmony-string.js",
-    "src/harmony-array.js",
-    "src/harmony-array-includes.js",
-    "src/harmony-typedarray.js",
-    "src/harmony-classes.js",
-    "src/harmony-tostring.js",
-    "src/harmony-templates.js",
-    "src/harmony-regexp.js"
+    "src/js/macros.py",
+    "src/messages.h",
+    "src/js/proxy.js",
+    "src/js/generator.js",
+    "src/js/harmony-atomics.js",
+    "src/js/harmony-regexp.js",
+    "src/js/harmony-reflect.js",
+    "src/js/harmony-object-observe.js",
+    "src/js/harmony-sharedarraybuffer.js",
+    "src/js/harmony-simd.js",
+    "src/js/harmony-species.js",
+    "src/js/harmony-unicode-regexps.js",
+    "src/js/promise-extra.js"
   ]
 
   outputs = [
-    "$target_gen_dir/experimental-libraries.cc"
+    "$target_gen_dir/experimental-libraries.cc",
   ]
 
   args = [
-    rebase_path("$target_gen_dir/experimental-libraries.cc", root_build_dir),
-    "EXPERIMENTAL",
-  ] + rebase_path(sources, root_build_dir)
+           rebase_path("$target_gen_dir/experimental-libraries.cc",
+                       root_build_dir),
+           "EXPERIMENTAL",
+         ] + rebase_path(sources, root_build_dir)
 
   if (v8_use_external_startup_data) {
     outputs += [ "$target_gen_dir/libraries_experimental.bin" ]
     args += [
       "--startup_blob",
-      rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir)
+      rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir),
     ]
   }
 }
 
+action("js2c_extras") {
+  visibility = [ ":*" ]  # Only targets in this file can depend on this.
+
+  script = "tools/js2c.py"
+
+  # The script depends on this other script, this rule causes a rebuild if it
+  # changes.
+  inputs = [ "tools/jsmin.py" ]
+
+  sources = v8_extra_library_files
+
+  outputs = [
+    "$target_gen_dir/extras-libraries.cc",
+  ]
+
+  args = [
+           rebase_path("$target_gen_dir/extras-libraries.cc",
+                       root_build_dir),
+           "EXTRAS",
+         ] + rebase_path(sources, root_build_dir)
+
+  if (v8_use_external_startup_data) {
+    outputs += [ "$target_gen_dir/libraries_extras.bin" ]
+    args += [
+      "--startup_blob",
+      rebase_path("$target_gen_dir/libraries_extras.bin", root_build_dir),
+    ]
+  }
+}
+
+action("js2c_experimental_extras") {
+  visibility = [ ":*" ]  # Only targets in this file can depend on this.
+
+  script = "tools/js2c.py"
+
+  # The script depends on this other script, this rule causes a rebuild if it
+  # changes.
+  inputs = [ "tools/jsmin.py" ]
+
+  sources = v8_experimental_extra_library_files
+
+  outputs = [
+    "$target_gen_dir/experimental-extras-libraries.cc",
+  ]
+
+  args = [
+           rebase_path("$target_gen_dir/experimental-extras-libraries.cc",
+                       root_build_dir),
+           "EXPERIMENTAL_EXTRAS",
+         ] + rebase_path(sources, root_build_dir)
+
+  if (v8_use_external_startup_data) {
+    outputs += [ "$target_gen_dir/libraries_experimental_extras.bin" ]
+    args += [
+      "--startup_blob",
+      rebase_path("$target_gen_dir/libraries_experimental_extras.bin", root_build_dir),
+    ]
+  }
+}
+
+action("d8_js2c") {
+  visibility = [ ":*" ]  # Only targets in this file can depend on this.
+
+  script = "tools/js2c.py"
+
+  inputs = [
+    "src/d8.js",
+    "src/js/macros.py",
+  ]
+
+  outputs = [
+    "$target_gen_dir/d8-js.cc",
+  ]
+
+  args = rebase_path(outputs, root_build_dir) + [ "D8" ] +
+         rebase_path(inputs, root_build_dir)
+}
+
+if (is_android) {
+  android_assets("v8_external_startup_data_assets") {
+    if (v8_use_external_startup_data) {
+      deps = [
+        "//v8",
+      ]
+      renaming_sources = v8_external_startup_data_renaming_sources
+      renaming_destinations = v8_external_startup_data_renaming_destinations
+      disable_compression = true
+    }
+  }
+}
+
 if (v8_use_external_startup_data) {
   action("natives_blob") {
     visibility = [ ":*" ]  # Only targets in this file can depend on this.
 
     deps = [
       ":js2c",
-      ":js2c_experimental"
+      ":js2c_experimental",
+      ":js2c_extras",
+      ":js2c_experimental_extras",
     ]
 
     sources = [
       "$target_gen_dir/libraries.bin",
-      "$target_gen_dir/libraries_experimental.bin"
+      "$target_gen_dir/libraries_experimental.bin",
+      "$target_gen_dir/libraries_extras.bin",
+      "$target_gen_dir/libraries_experimental_extras.bin",
     ]
 
     outputs = [
-      "$root_out_dir/natives_blob.bin"
+      "$root_out_dir/natives_blob.bin",
     ]
 
     script = "tools/concatenate-files.py"
@@ -290,7 +439,12 @@
 }
 
 action("postmortem-metadata") {
-  visibility = [ ":*" ]  # Only targets in this file can depend on this.
+  # Only targets in this file and the top-level visibility target can
+  # depend on this.
+  visibility = [
+    ":*",
+    "//:gn_visibility",
+  ]
 
   script = "tools/gen-postmortem-metadata.py"
 
@@ -300,48 +454,53 @@
   ]
 
   outputs = [
-    "$target_gen_dir/debug-support.cc"
+    "$target_gen_dir/debug-support.cc",
   ]
 
-  args =
-    rebase_path(outputs, root_build_dir) +
-    rebase_path(sources, root_build_dir)
+  args = rebase_path(outputs, root_build_dir) +
+         rebase_path(sources, root_build_dir)
 }
 
 action("run_mksnapshot") {
   visibility = [ ":*" ]  # Only targets in this file can depend on this.
 
-  deps = [ ":mksnapshot($host_toolchain)" ]
+  deps = [
+    ":mksnapshot($snapshot_toolchain)",
+  ]
 
   script = "tools/run.py"
 
   outputs = [
-    "$target_gen_dir/snapshot.cc"
+    "$target_gen_dir/snapshot.cc",
   ]
 
   args = [
-    "./" + rebase_path(get_label_info(":mksnapshot($host_toolchain)",
+    "./" + rebase_path(get_label_info(":mksnapshot($snapshot_toolchain)",
                                       "root_out_dir") + "/mksnapshot",
                        root_build_dir),
     "--log-snapshot-positions",
-    "--logfile", rebase_path("$target_gen_dir/snapshot.log", root_build_dir),
-    rebase_path("$target_gen_dir/snapshot.cc", root_build_dir)
+    "--logfile",
+    rebase_path("$target_gen_dir/snapshot.log", root_build_dir),
+    "--startup_src",
+    rebase_path("$target_gen_dir/snapshot.cc", root_build_dir),
   ]
 
   if (v8_random_seed != "0") {
-    args += [ "--random-seed", v8_random_seed ]
+    args += [
+      "--random-seed",
+      v8_random_seed,
+    ]
   }
 
   if (v8_use_external_startup_data) {
     outputs += [ "$root_out_dir/snapshot_blob.bin" ]
     args += [
       "--startup_blob",
-      rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir)
+      rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir),
     ]
   }
 }
 
-
 ###############################################################################
 # Source Sets (aka static libraries)
 #
@@ -352,39 +511,64 @@
   deps = [
     ":js2c",
     ":js2c_experimental",
+    ":js2c_extras",
+    ":js2c_experimental_extras",
     ":v8_base",
   ]
 
   sources = [
     "$target_gen_dir/libraries.cc",
     "$target_gen_dir/experimental-libraries.cc",
-    "src/snapshot-empty.cc",
+    "$target_gen_dir/extras-libraries.cc",
+    "$target_gen_dir/experimental-extras-libraries.cc",
+    "src/snapshot/snapshot-empty.cc",
   ]
 
   configs -= [ "//build/config/compiler:chromium_code" ]
   configs += [ "//build/config/compiler:no_chromium_code" ]
-  configs += [ ":internal_config", ":features", ":toolchain" ]
+  configs += [
+    ":internal_config",
+    ":features",
+    ":toolchain",
+  ]
 }
 
 source_set("v8_snapshot") {
-  visibility = [ ":*" ]  # Only targets in this file can depend on this.
+  # Only targets in this file and the top-level visibility target can
+  # depend on this.
+  visibility = [
+    ":*",
+    "//:gn_visibility",
+  ]
 
   deps = [
     ":js2c",
     ":js2c_experimental",
-    ":run_mksnapshot",
+    ":js2c_extras",
+    ":js2c_experimental_extras",
     ":v8_base",
   ]
+  public_deps = [
+    # This should be public so downstream targets can declare the snapshot
+    # output file as their inputs.
+    ":run_mksnapshot",
+  ]
 
   sources = [
     "$target_gen_dir/libraries.cc",
     "$target_gen_dir/experimental-libraries.cc",
+    "$target_gen_dir/extras-libraries.cc",
+    "$target_gen_dir/experimental-extras-libraries.cc",
     "$target_gen_dir/snapshot.cc",
   ]
 
   configs -= [ "//build/config/compiler:chromium_code" ]
   configs += [ "//build/config/compiler:no_chromium_code" ]
-  configs += [ ":internal_config", ":features", ":toolchain" ]
+  configs += [
+    ":internal_config",
+    ":features",
+    ":toolchain",
+  ]
 }
 
 if (v8_use_external_startup_data) {
@@ -394,19 +578,27 @@
     deps = [
       ":js2c",
       ":js2c_experimental",
-      ":run_mksnapshot",
+      ":js2c_extras",
+      ":js2c_experimental_extras",
       ":v8_base",
+    ]
+    public_deps = [
       ":natives_blob",
+      ":run_mksnapshot",
     ]
 
     sources = [
-      "src/natives-external.cc",
-      "src/snapshot-external.cc",
+      "src/snapshot/natives-external.cc",
+      "src/snapshot/snapshot-external.cc",
     ]
 
     configs -= [ "//build/config/compiler:chromium_code" ]
     configs += [ "//build/config/compiler:no_chromium_code" ]
-    configs += [ ":internal_config", ":features", ":toolchain" ]
+    configs += [
+      ":internal_config",
+      ":features",
+      ":toolchain",
+    ]
   }
 }
 
@@ -414,30 +606,60 @@
   visibility = [ ":*" ]  # Only targets in this file can depend on this.
 
   sources = [
+    # TODO(fmeawad): This needs to be updated to support standalone V8 builds.
+    "../base/trace_event/common/trace_event_common.h",
+    "include/v8-debug.h",
+    "include/v8-experimental.h",
+    "include/v8-platform.h",
+    "include/v8-profiler.h",
+    "include/v8-testing.h",
+    "include/v8-util.h",
+    "include/v8-version.h",
+    "include/v8.h",
+    "include/v8config.h",
     "src/accessors.cc",
     "src/accessors.h",
+    "src/address-map.cc",
+    "src/address-map.h",
     "src/allocation.cc",
     "src/allocation.h",
     "src/allocation-site-scopes.cc",
     "src/allocation-site-scopes.h",
-    "src/allocation-tracker.cc",
-    "src/allocation-tracker.h",
     "src/api.cc",
     "src/api.h",
+    "src/api-experimental.cc",
+    "src/api-experimental.h",
+    "src/api-natives.cc",
+    "src/api-natives.h",
     "src/arguments.cc",
     "src/arguments.h",
     "src/assembler.cc",
     "src/assembler.h",
     "src/assert-scope.h",
     "src/assert-scope.cc",
-    "src/ast-numbering.cc",
-    "src/ast-numbering.h",
-    "src/ast-this-access-visitor.cc",
-    "src/ast-this-access-visitor.h",
-    "src/ast-value-factory.cc",
-    "src/ast-value-factory.h",
-    "src/ast.cc",
-    "src/ast.h",
+    "src/ast/ast-expression-rewriter.cc",
+    "src/ast/ast-expression-rewriter.h",
+    "src/ast/ast-expression-visitor.cc",
+    "src/ast/ast-expression-visitor.h",
+    "src/ast/ast-literal-reindexer.cc",
+    "src/ast/ast-literal-reindexer.h",
+    "src/ast/ast-numbering.cc",
+    "src/ast/ast-numbering.h",
+    "src/ast/ast-value-factory.cc",
+    "src/ast/ast-value-factory.h",
+    "src/ast/ast.cc",
+    "src/ast/ast.h",
+    "src/ast/modules.cc",
+    "src/ast/modules.h",
+    "src/ast/prettyprinter.cc",
+    "src/ast/prettyprinter.h",
+    "src/ast/scopeinfo.cc",
+    "src/ast/scopeinfo.h",
+    "src/ast/scopes.cc",
+    "src/ast/scopes.h",
+    "src/ast/variables.cc",
+    "src/ast/variables.h",
+    "src/atomic-utils.h",
     "src/background-parsing-task.cc",
     "src/background-parsing-task.h",
     "src/bailout-reason.cc",
@@ -454,41 +676,55 @@
     "src/bootstrapper.h",
     "src/builtins.cc",
     "src/builtins.h",
-    "src/bytecodes-irregexp.h",
+    "src/cancelable-task.cc",
+    "src/cancelable-task.h",
     "src/cached-powers.cc",
     "src/cached-powers.h",
     "src/char-predicates.cc",
     "src/char-predicates-inl.h",
     "src/char-predicates.h",
-    "src/checks.cc",
     "src/checks.h",
-    "src/circular-queue-inl.h",
-    "src/circular-queue.h",
     "src/code-factory.cc",
     "src/code-factory.h",
     "src/code-stubs.cc",
     "src/code-stubs.h",
     "src/code-stubs-hydrogen.cc",
-    "src/code.h",
     "src/codegen.cc",
     "src/codegen.h",
     "src/compilation-cache.cc",
     "src/compilation-cache.h",
+    "src/compilation-dependencies.cc",
+    "src/compilation-dependencies.h",
     "src/compilation-statistics.cc",
     "src/compilation-statistics.h",
     "src/compiler/access-builder.cc",
     "src/compiler/access-builder.h",
+    "src/compiler/access-info.cc",
+    "src/compiler/access-info.h",
+    "src/compiler/all-nodes.cc",
+    "src/compiler/all-nodes.h",
     "src/compiler/ast-graph-builder.cc",
     "src/compiler/ast-graph-builder.h",
     "src/compiler/ast-loop-assignment-analyzer.cc",
     "src/compiler/ast-loop-assignment-analyzer.h",
     "src/compiler/basic-block-instrumentor.cc",
     "src/compiler/basic-block-instrumentor.h",
+    "src/compiler/branch-elimination.cc",
+    "src/compiler/branch-elimination.h",
+    "src/compiler/bytecode-branch-analysis.cc",
+    "src/compiler/bytecode-branch-analysis.h",
+    "src/compiler/bytecode-graph-builder.cc",
+    "src/compiler/bytecode-graph-builder.h",
     "src/compiler/change-lowering.cc",
     "src/compiler/change-lowering.h",
+    "src/compiler/c-linkage.cc",
+    "src/compiler/coalesced-live-ranges.cc",
+    "src/compiler/coalesced-live-ranges.h",
     "src/compiler/code-generator-impl.h",
     "src/compiler/code-generator.cc",
     "src/compiler/code-generator.h",
+    "src/compiler/code-stub-assembler.cc",
+    "src/compiler/code-stub-assembler.h",
     "src/compiler/common-node-cache.cc",
     "src/compiler/common-node-cache.h",
     "src/compiler/common-operator-reducer.cc",
@@ -497,70 +733,104 @@
     "src/compiler/common-operator.h",
     "src/compiler/control-builders.cc",
     "src/compiler/control-builders.h",
+    "src/compiler/control-equivalence.cc",
     "src/compiler/control-equivalence.h",
-    "src/compiler/control-reducer.cc",
-    "src/compiler/control-reducer.h",
+    "src/compiler/control-flow-optimizer.cc",
+    "src/compiler/control-flow-optimizer.h",
+    "src/compiler/dead-code-elimination.cc",
+    "src/compiler/dead-code-elimination.h",
     "src/compiler/diamond.h",
+    "src/compiler/escape-analysis.cc",
+    "src/compiler/escape-analysis.h",
+    "src/compiler/escape-analysis-reducer.cc",
+    "src/compiler/escape-analysis-reducer.h",
+    "src/compiler/fast-accessor-assembler.cc",
+    "src/compiler/fast-accessor-assembler.h",
+    "src/compiler/frame.cc",
     "src/compiler/frame.h",
+    "src/compiler/frame-elider.cc",
+    "src/compiler/frame-elider.h",
+    "src/compiler/frame-states.cc",
+    "src/compiler/frame-states.h",
     "src/compiler/gap-resolver.cc",
     "src/compiler/gap-resolver.h",
-    "src/compiler/generic-algorithm.h",
-    "src/compiler/graph-builder.cc",
-    "src/compiler/graph-builder.h",
-    "src/compiler/graph-inl.h",
     "src/compiler/graph-reducer.cc",
     "src/compiler/graph-reducer.h",
     "src/compiler/graph-replay.cc",
     "src/compiler/graph-replay.h",
+    "src/compiler/graph-trimmer.cc",
+    "src/compiler/graph-trimmer.h",
     "src/compiler/graph-visualizer.cc",
     "src/compiler/graph-visualizer.h",
     "src/compiler/graph.cc",
     "src/compiler/graph.h",
+    "src/compiler/greedy-allocator.cc",
+    "src/compiler/greedy-allocator.h",
     "src/compiler/instruction-codes.h",
+    "src/compiler/instruction-scheduler.cc",
+    "src/compiler/instruction-scheduler.h",
     "src/compiler/instruction-selector-impl.h",
     "src/compiler/instruction-selector.cc",
     "src/compiler/instruction-selector.h",
     "src/compiler/instruction.cc",
     "src/compiler/instruction.h",
+    "src/compiler/interpreter-assembler.cc",
+    "src/compiler/interpreter-assembler.h",
     "src/compiler/js-builtin-reducer.cc",
     "src/compiler/js-builtin-reducer.h",
+    "src/compiler/js-call-reducer.cc",
+    "src/compiler/js-call-reducer.h",
+    "src/compiler/js-context-relaxation.cc",
+    "src/compiler/js-context-relaxation.h",
     "src/compiler/js-context-specialization.cc",
     "src/compiler/js-context-specialization.h",
+    "src/compiler/js-frame-specialization.cc",
+    "src/compiler/js-frame-specialization.h",
     "src/compiler/js-generic-lowering.cc",
     "src/compiler/js-generic-lowering.h",
+    "src/compiler/js-global-object-specialization.cc",
+    "src/compiler/js-global-object-specialization.h",
     "src/compiler/js-graph.cc",
     "src/compiler/js-graph.h",
     "src/compiler/js-inlining.cc",
     "src/compiler/js-inlining.h",
-    "src/compiler/js-intrinsic-builder.cc",
-    "src/compiler/js-intrinsic-builder.h",
+    "src/compiler/js-inlining-heuristic.cc",
+    "src/compiler/js-inlining-heuristic.h",
+    "src/compiler/js-intrinsic-lowering.cc",
+    "src/compiler/js-intrinsic-lowering.h",
+    "src/compiler/js-native-context-specialization.cc",
+    "src/compiler/js-native-context-specialization.h",
     "src/compiler/js-operator.cc",
     "src/compiler/js-operator.h",
     "src/compiler/js-typed-lowering.cc",
     "src/compiler/js-typed-lowering.h",
     "src/compiler/jump-threading.cc",
     "src/compiler/jump-threading.h",
-    "src/compiler/linkage-impl.h",
     "src/compiler/linkage.cc",
     "src/compiler/linkage.h",
+    "src/compiler/live-range-separator.cc",
+    "src/compiler/live-range-separator.h",
+    "src/compiler/liveness-analyzer.cc",
+    "src/compiler/liveness-analyzer.h",
     "src/compiler/load-elimination.cc",
     "src/compiler/load-elimination.h",
+    "src/compiler/loop-peeling.cc",
     "src/compiler/loop-analysis.cc",
     "src/compiler/loop-analysis.h",
     "src/compiler/machine-operator-reducer.cc",
     "src/compiler/machine-operator-reducer.h",
     "src/compiler/machine-operator.cc",
     "src/compiler/machine-operator.h",
-    "src/compiler/machine-type.cc",
-    "src/compiler/machine-type.h",
     "src/compiler/move-optimizer.cc",
     "src/compiler/move-optimizer.h",
-    "src/compiler/node-aux-data-inl.h",
     "src/compiler/node-aux-data.h",
     "src/compiler/node-cache.cc",
     "src/compiler/node-cache.h",
+    "src/compiler/node-marker.cc",
+    "src/compiler/node-marker.h",
+    "src/compiler/node-matchers.cc",
     "src/compiler/node-matchers.h",
-    "src/compiler/node-properties-inl.h",
+    "src/compiler/node-properties.cc",
     "src/compiler/node-properties.h",
     "src/compiler/node.cc",
     "src/compiler/node.h",
@@ -570,6 +840,8 @@
     "src/compiler/operator-properties.h",
     "src/compiler/operator.cc",
     "src/compiler/operator.h",
+    "src/compiler/osr.cc",
+    "src/compiler/osr.h",
     "src/compiler/pipeline.cc",
     "src/compiler/pipeline.h",
     "src/compiler/pipeline-statistics.cc",
@@ -580,8 +852,7 @@
     "src/compiler/register-allocator.h",
     "src/compiler/register-allocator-verifier.cc",
     "src/compiler/register-allocator-verifier.h",
-    "src/compiler/register-configuration.cc",
-    "src/compiler/register-configuration.h",
+    "src/compiler/representation-change.cc",
     "src/compiler/representation-change.h",
     "src/compiler/schedule.cc",
     "src/compiler/schedule.h",
@@ -597,16 +868,30 @@
     "src/compiler/simplified-operator.h",
     "src/compiler/source-position.cc",
     "src/compiler/source-position.h",
+    "src/compiler/state-values-utils.cc",
+    "src/compiler/state-values-utils.h",
+    "src/compiler/tail-call-optimization.cc",
+    "src/compiler/tail-call-optimization.h",
+    "src/compiler/type-hint-analyzer.cc",
+    "src/compiler/type-hint-analyzer.h",
+    "src/compiler/type-hints.cc",
+    "src/compiler/type-hints.h",
     "src/compiler/typer.cc",
     "src/compiler/typer.h",
     "src/compiler/value-numbering-reducer.cc",
     "src/compiler/value-numbering-reducer.h",
     "src/compiler/verifier.cc",
     "src/compiler/verifier.h",
+    "src/compiler/wasm-compiler.cc",
+    "src/compiler/wasm-compiler.h",
+    "src/compiler/wasm-linkage.cc",
     "src/compiler/zone-pool.cc",
     "src/compiler/zone-pool.h",
     "src/compiler.cc",
     "src/compiler.h",
+    "src/context-measure.cc",
+    "src/context-measure.h",
+    "src/contexts-inl.h",
     "src/contexts.cc",
     "src/contexts.h",
     "src/conversions-inl.h",
@@ -614,16 +899,83 @@
     "src/conversions.h",
     "src/counters.cc",
     "src/counters.h",
-    "src/cpu-profiler-inl.h",
-    "src/cpu-profiler.cc",
-    "src/cpu-profiler.h",
+    "src/crankshaft/hydrogen-alias-analysis.h",
+    "src/crankshaft/hydrogen-bce.cc",
+    "src/crankshaft/hydrogen-bce.h",
+    "src/crankshaft/hydrogen-bch.cc",
+    "src/crankshaft/hydrogen-bch.h",
+    "src/crankshaft/hydrogen-canonicalize.cc",
+    "src/crankshaft/hydrogen-canonicalize.h",
+    "src/crankshaft/hydrogen-check-elimination.cc",
+    "src/crankshaft/hydrogen-check-elimination.h",
+    "src/crankshaft/hydrogen-dce.cc",
+    "src/crankshaft/hydrogen-dce.h",
+    "src/crankshaft/hydrogen-dehoist.cc",
+    "src/crankshaft/hydrogen-dehoist.h",
+    "src/crankshaft/hydrogen-environment-liveness.cc",
+    "src/crankshaft/hydrogen-environment-liveness.h",
+    "src/crankshaft/hydrogen-escape-analysis.cc",
+    "src/crankshaft/hydrogen-escape-analysis.h",
+    "src/crankshaft/hydrogen-flow-engine.h",
+    "src/crankshaft/hydrogen-gvn.cc",
+    "src/crankshaft/hydrogen-gvn.h",
+    "src/crankshaft/hydrogen-infer-representation.cc",
+    "src/crankshaft/hydrogen-infer-representation.h",
+    "src/crankshaft/hydrogen-infer-types.cc",
+    "src/crankshaft/hydrogen-infer-types.h",
+    "src/crankshaft/hydrogen-instructions.cc",
+    "src/crankshaft/hydrogen-instructions.h",
+    "src/crankshaft/hydrogen-load-elimination.cc",
+    "src/crankshaft/hydrogen-load-elimination.h",
+    "src/crankshaft/hydrogen-mark-deoptimize.cc",
+    "src/crankshaft/hydrogen-mark-deoptimize.h",
+    "src/crankshaft/hydrogen-mark-unreachable.cc",
+    "src/crankshaft/hydrogen-mark-unreachable.h",
+    "src/crankshaft/hydrogen-osr.cc",
+    "src/crankshaft/hydrogen-osr.h",
+    "src/crankshaft/hydrogen-range-analysis.cc",
+    "src/crankshaft/hydrogen-range-analysis.h",
+    "src/crankshaft/hydrogen-redundant-phi.cc",
+    "src/crankshaft/hydrogen-redundant-phi.h",
+    "src/crankshaft/hydrogen-removable-simulates.cc",
+    "src/crankshaft/hydrogen-removable-simulates.h",
+    "src/crankshaft/hydrogen-representation-changes.cc",
+    "src/crankshaft/hydrogen-representation-changes.h",
+    "src/crankshaft/hydrogen-sce.cc",
+    "src/crankshaft/hydrogen-sce.h",
+    "src/crankshaft/hydrogen-store-elimination.cc",
+    "src/crankshaft/hydrogen-store-elimination.h",
+    "src/crankshaft/hydrogen-types.cc",
+    "src/crankshaft/hydrogen-types.h",
+    "src/crankshaft/hydrogen-uint32-analysis.cc",
+    "src/crankshaft/hydrogen-uint32-analysis.h",
+    "src/crankshaft/hydrogen.cc",
+    "src/crankshaft/hydrogen.h",
+    "src/crankshaft/lithium-allocator-inl.h",
+    "src/crankshaft/lithium-allocator.cc",
+    "src/crankshaft/lithium-allocator.h",
+    "src/crankshaft/lithium-codegen.cc",
+    "src/crankshaft/lithium-codegen.h",
+    "src/crankshaft/lithium.cc",
+    "src/crankshaft/lithium.h",
+    "src/crankshaft/typing.cc",
+    "src/crankshaft/typing.h",
+    "src/crankshaft/unique.h",
     "src/date.cc",
     "src/date.h",
     "src/dateparser-inl.h",
     "src/dateparser.cc",
     "src/dateparser.h",
-    "src/debug.cc",
-    "src/debug.h",
+    "src/debug/debug-evaluate.cc",
+    "src/debug/debug-evaluate.h",
+    "src/debug/debug-frames.cc",
+    "src/debug/debug-frames.h",
+    "src/debug/debug-scopes.cc",
+    "src/debug/debug-scopes.h",
+    "src/debug/debug.cc",
+    "src/debug/debug.h",
+    "src/debug/liveedit.cc",
+    "src/debug/liveedit.h",
     "src/deoptimizer.cc",
     "src/deoptimizer.h",
     "src/disasm.h",
@@ -665,10 +1017,10 @@
     "src/frames-inl.h",
     "src/frames.cc",
     "src/frames.h",
-    "src/full-codegen.cc",
-    "src/full-codegen.h",
-    "src/func-name-inferrer.cc",
-    "src/func-name-inferrer.h",
+    "src/full-codegen/full-codegen.cc",
+    "src/full-codegen/full-codegen.h",
+    "src/futex-emulation.cc",
+    "src/futex-emulation.h",
     "src/gdb-jit.cc",
     "src/gdb-jit.h",
     "src/global-handles.cc",
@@ -678,11 +1030,8 @@
     "src/handles.cc",
     "src/handles.h",
     "src/hashmap.h",
-    "src/heap-profiler.cc",
-    "src/heap-profiler.h",
-    "src/heap-snapshot-generator-inl.h",
-    "src/heap-snapshot-generator.cc",
-    "src/heap-snapshot-generator.h",
+    "src/heap/array-buffer-tracker.cc",
+    "src/heap/array-buffer-tracker.h",
     "src/heap/gc-idle-time-handler.cc",
     "src/heap/gc-idle-time-handler.h",
     "src/heap/gc-tracer.cc",
@@ -690,72 +1039,33 @@
     "src/heap/heap-inl.h",
     "src/heap/heap.cc",
     "src/heap/heap.h",
+    "src/heap/incremental-marking-job.cc",
+    "src/heap/incremental-marking-job.h",
     "src/heap/incremental-marking.cc",
     "src/heap/incremental-marking.h",
     "src/heap/mark-compact-inl.h",
     "src/heap/mark-compact.cc",
     "src/heap/mark-compact.h",
+    "src/heap/memory-reducer.cc",
+    "src/heap/memory-reducer.h",
+    "src/heap/object-stats.cc",
+    "src/heap/object-stats.h",
     "src/heap/objects-visiting-inl.h",
     "src/heap/objects-visiting.cc",
     "src/heap/objects-visiting.h",
+    "src/heap/scavenge-job.h",
+    "src/heap/scavenge-job.cc",
+    "src/heap/scavenger-inl.h",
+    "src/heap/scavenger.cc",
+    "src/heap/scavenger.h",
+    "src/heap/slots-buffer.cc",
+    "src/heap/slots-buffer.h",
     "src/heap/spaces-inl.h",
     "src/heap/spaces.cc",
     "src/heap/spaces.h",
     "src/heap/store-buffer-inl.h",
     "src/heap/store-buffer.cc",
     "src/heap/store-buffer.h",
-    "src/hydrogen-alias-analysis.h",
-    "src/hydrogen-bce.cc",
-    "src/hydrogen-bce.h",
-    "src/hydrogen-bch.cc",
-    "src/hydrogen-bch.h",
-    "src/hydrogen-canonicalize.cc",
-    "src/hydrogen-canonicalize.h",
-    "src/hydrogen-check-elimination.cc",
-    "src/hydrogen-check-elimination.h",
-    "src/hydrogen-dce.cc",
-    "src/hydrogen-dce.h",
-    "src/hydrogen-dehoist.cc",
-    "src/hydrogen-dehoist.h",
-    "src/hydrogen-environment-liveness.cc",
-    "src/hydrogen-environment-liveness.h",
-    "src/hydrogen-escape-analysis.cc",
-    "src/hydrogen-escape-analysis.h",
-    "src/hydrogen-flow-engine.h",
-    "src/hydrogen-instructions.cc",
-    "src/hydrogen-instructions.h",
-    "src/hydrogen.cc",
-    "src/hydrogen.h",
-    "src/hydrogen-gvn.cc",
-    "src/hydrogen-gvn.h",
-    "src/hydrogen-infer-representation.cc",
-    "src/hydrogen-infer-representation.h",
-    "src/hydrogen-infer-types.cc",
-    "src/hydrogen-infer-types.h",
-    "src/hydrogen-load-elimination.cc",
-    "src/hydrogen-load-elimination.h",
-    "src/hydrogen-mark-deoptimize.cc",
-    "src/hydrogen-mark-deoptimize.h",
-    "src/hydrogen-mark-unreachable.cc",
-    "src/hydrogen-mark-unreachable.h",
-    "src/hydrogen-osr.cc",
-    "src/hydrogen-osr.h",
-    "src/hydrogen-range-analysis.cc",
-    "src/hydrogen-range-analysis.h",
-    "src/hydrogen-redundant-phi.cc",
-    "src/hydrogen-redundant-phi.h",
-    "src/hydrogen-removable-simulates.cc",
-    "src/hydrogen-removable-simulates.h",
-    "src/hydrogen-representation-changes.cc",
-    "src/hydrogen-representation-changes.h",
-    "src/hydrogen-sce.cc",
-    "src/hydrogen-sce.h",
-    "src/hydrogen-store-elimination.cc",
-    "src/hydrogen-store-elimination.h",
-    "src/hydrogen-types.cc",
-    "src/hydrogen-types.h",
-    "src/hydrogen-uint32-analysis.cc",
-    "src/hydrogen-uint32-analysis.h",
     "src/i18n.cc",
     "src/i18n.h",
     "src/icu_util.cc",
@@ -775,97 +1085,151 @@
     "src/ic/ic-compiler.h",
     "src/ic/stub-cache.cc",
     "src/ic/stub-cache.h",
-    "src/interface.cc",
-    "src/interface.h",
+    "src/identity-map.cc",
+    "src/identity-map.h",
     "src/interface-descriptors.cc",
     "src/interface-descriptors.h",
-    "src/interpreter-irregexp.cc",
-    "src/interpreter-irregexp.h",
+    "src/interpreter/bytecodes.cc",
+    "src/interpreter/bytecodes.h",
+    "src/interpreter/bytecode-array-builder.cc",
+    "src/interpreter/bytecode-array-builder.h",
+    "src/interpreter/bytecode-array-iterator.cc",
+    "src/interpreter/bytecode-array-iterator.h",
+    "src/interpreter/bytecode-generator.cc",
+    "src/interpreter/bytecode-generator.h",
+    "src/interpreter/bytecode-register-allocator.cc",
+    "src/interpreter/bytecode-register-allocator.h",
+    "src/interpreter/bytecode-traits.h",
+    "src/interpreter/constant-array-builder.cc",
+    "src/interpreter/constant-array-builder.h",
+    "src/interpreter/control-flow-builders.cc",
+    "src/interpreter/control-flow-builders.h",
+    "src/interpreter/interpreter.cc",
+    "src/interpreter/interpreter.h",
+    "src/isolate-inl.h",
     "src/isolate.cc",
     "src/isolate.h",
-    "src/json-parser.h",
     "src/json-stringifier.h",
-    "src/jsregexp-inl.h",
-    "src/jsregexp.cc",
-    "src/jsregexp.h",
+    "src/key-accumulator.h",
+    "src/key-accumulator.cc",
     "src/layout-descriptor-inl.h",
     "src/layout-descriptor.cc",
     "src/layout-descriptor.h",
     "src/list-inl.h",
     "src/list.h",
-    "src/lithium-allocator-inl.h",
-    "src/lithium-allocator.cc",
-    "src/lithium-allocator.h",
-    "src/lithium-codegen.cc",
-    "src/lithium-codegen.h",
-    "src/lithium.cc",
-    "src/lithium.h",
-    "src/liveedit.cc",
-    "src/liveedit.h",
     "src/log-inl.h",
     "src/log-utils.cc",
     "src/log-utils.h",
     "src/log.cc",
     "src/log.h",
-    "src/lookup-inl.h",
     "src/lookup.cc",
     "src/lookup.h",
     "src/macro-assembler.h",
+    "src/machine-type.cc",
+    "src/machine-type.h",
     "src/messages.cc",
     "src/messages.h",
     "src/msan.h",
-    "src/natives.h",
+    "src/objects-body-descriptors-inl.h",
+    "src/objects-body-descriptors.h",
     "src/objects-debug.cc",
     "src/objects-inl.h",
     "src/objects-printer.cc",
     "src/objects.cc",
     "src/objects.h",
-    "src/optimizing-compiler-thread.cc",
-    "src/optimizing-compiler-thread.h",
+    "src/optimizing-compile-dispatcher.cc",
+    "src/optimizing-compile-dispatcher.h",
     "src/ostreams.cc",
     "src/ostreams.h",
-    "src/parser.cc",
-    "src/parser.h",
-    "src/perf-jit.cc",
-    "src/perf-jit.h",
-    "src/preparse-data-format.h",
-    "src/preparse-data.cc",
-    "src/preparse-data.h",
-    "src/preparser.cc",
-    "src/preparser.h",
-    "src/prettyprinter.cc",
-    "src/prettyprinter.h",
-    "src/profile-generator-inl.h",
-    "src/profile-generator.cc",
-    "src/profile-generator.h",
+    "src/parsing/expression-classifier.h",
+    "src/parsing/func-name-inferrer.cc",
+    "src/parsing/func-name-inferrer.h",
+    "src/parsing/json-parser.h",
+    "src/parsing/parameter-initializer-rewriter.cc",
+    "src/parsing/parameter-initializer-rewriter.h",
+    "src/parsing/parser-base.h",
+    "src/parsing/parser.cc",
+    "src/parsing/parser.h",
+    "src/parsing/pattern-rewriter.cc",
+    "src/parsing/preparse-data-format.h",
+    "src/parsing/preparse-data.cc",
+    "src/parsing/preparse-data.h",
+    "src/parsing/preparser.cc",
+    "src/parsing/preparser.h",
+    "src/parsing/rewriter.cc",
+    "src/parsing/rewriter.h",
+    "src/parsing/scanner-character-streams.cc",
+    "src/parsing/scanner-character-streams.h",
+    "src/parsing/scanner.cc",
+    "src/parsing/scanner.h",
+    "src/parsing/token.cc",
+    "src/parsing/token.h",
+    "src/pending-compilation-error-handler.cc",
+    "src/pending-compilation-error-handler.h",
+    "src/profiler/allocation-tracker.cc",
+    "src/profiler/allocation-tracker.h",
+    "src/profiler/circular-queue-inl.h",
+    "src/profiler/circular-queue.h",
+    "src/profiler/cpu-profiler-inl.h",
+    "src/profiler/cpu-profiler.cc",
+    "src/profiler/cpu-profiler.h",
+    "src/profiler/heap-profiler.cc",
+    "src/profiler/heap-profiler.h",
+    "src/profiler/heap-snapshot-generator-inl.h",
+    "src/profiler/heap-snapshot-generator.cc",
+    "src/profiler/heap-snapshot-generator.h",
+    "src/profiler/profile-generator-inl.h",
+    "src/profiler/profile-generator.cc",
+    "src/profiler/profile-generator.h",
+    "src/profiler/sampler.cc",
+    "src/profiler/sampler.h",
+    "src/profiler/strings-storage.cc",
+    "src/profiler/strings-storage.h",
+    "src/profiler/unbound-queue-inl.h",
+    "src/profiler/unbound-queue.h",
+    "src/property-descriptor.cc",
+    "src/property-descriptor.h",
     "src/property-details.h",
     "src/property.cc",
     "src/property.h",
     "src/prototype.h",
-    "src/regexp-macro-assembler-irregexp-inl.h",
-    "src/regexp-macro-assembler-irregexp.cc",
-    "src/regexp-macro-assembler-irregexp.h",
-    "src/regexp-macro-assembler-tracer.cc",
-    "src/regexp-macro-assembler-tracer.h",
-    "src/regexp-macro-assembler.cc",
-    "src/regexp-macro-assembler.h",
-    "src/regexp-stack.cc",
-    "src/regexp-stack.h",
-    "src/rewriter.cc",
-    "src/rewriter.h",
+    "src/regexp/bytecodes-irregexp.h",
+    "src/regexp/interpreter-irregexp.cc",
+    "src/regexp/interpreter-irregexp.h",
+    "src/regexp/jsregexp-inl.h",
+    "src/regexp/jsregexp.cc",
+    "src/regexp/jsregexp.h",
+    "src/regexp/regexp-ast.cc",
+    "src/regexp/regexp-ast.h",
+    "src/regexp/regexp-macro-assembler-irregexp-inl.h",
+    "src/regexp/regexp-macro-assembler-irregexp.cc",
+    "src/regexp/regexp-macro-assembler-irregexp.h",
+    "src/regexp/regexp-macro-assembler-tracer.cc",
+    "src/regexp/regexp-macro-assembler-tracer.h",
+    "src/regexp/regexp-macro-assembler.cc",
+    "src/regexp/regexp-macro-assembler.h",
+    "src/regexp/regexp-parser.cc",
+    "src/regexp/regexp-parser.h",
+    "src/regexp/regexp-stack.cc",
+    "src/regexp/regexp-stack.h",
+    "src/register-configuration.cc",
+    "src/register-configuration.h",
     "src/runtime-profiler.cc",
     "src/runtime-profiler.h",
-    "src/runtime/runtime-api.cc",
     "src/runtime/runtime-array.cc",
+    "src/runtime/runtime-atomics.cc",
     "src/runtime/runtime-classes.cc",
     "src/runtime/runtime-collections.cc",
     "src/runtime/runtime-compiler.cc",
     "src/runtime/runtime-date.cc",
     "src/runtime/runtime-debug.cc",
+    "src/runtime/runtime-forin.cc",
     "src/runtime/runtime-function.cc",
+    "src/runtime/runtime-futex.cc",
     "src/runtime/runtime-generator.cc",
     "src/runtime/runtime-i18n.cc",
     "src/runtime/runtime-internal.cc",
+    "src/runtime/runtime-interpreter.cc",
     "src/runtime/runtime-json.cc",
     "src/runtime/runtime-literals.cc",
     "src/runtime/runtime-liveedit.cc",
@@ -873,9 +1237,11 @@
     "src/runtime/runtime-numbers.cc",
     "src/runtime/runtime-object.cc",
     "src/runtime/runtime-observe.cc",
+    "src/runtime/runtime-operators.cc",
     "src/runtime/runtime-proxy.cc",
     "src/runtime/runtime-regexp.cc",
     "src/runtime/runtime-scopes.cc",
+    "src/runtime/runtime-simd.cc",
     "src/runtime/runtime-strings.cc",
     "src/runtime/runtime-symbol.cc",
     "src/runtime/runtime-test.cc",
@@ -886,37 +1252,35 @@
     "src/runtime/runtime.h",
     "src/safepoint-table.cc",
     "src/safepoint-table.h",
-    "src/sampler.cc",
-    "src/sampler.h",
-    "src/scanner-character-streams.cc",
-    "src/scanner-character-streams.h",
-    "src/scanner.cc",
-    "src/scanner.h",
-    "src/scopeinfo.cc",
-    "src/scopeinfo.h",
-    "src/scopes.cc",
-    "src/scopes.h",
-    "src/serialize.cc",
-    "src/serialize.h",
+    "src/signature.h",
+    "src/simulator.h",
     "src/small-pointer-list.h",
-    "src/smart-pointers.h",
-    "src/snapshot-common.cc",
-    "src/snapshot-source-sink.cc",
-    "src/snapshot-source-sink.h",
-    "src/snapshot.h",
+    "src/snapshot/natives.h",
+    "src/snapshot/natives-common.cc",
+    "src/snapshot/serialize.cc",
+    "src/snapshot/serialize.h",
+    "src/snapshot/snapshot-common.cc",
+    "src/snapshot/snapshot-source-sink.cc",
+    "src/snapshot/snapshot-source-sink.h",
+    "src/splay-tree.h",
+    "src/splay-tree-inl.h",
+    "src/snapshot/snapshot.h",
+    "src/startup-data-util.h",
+    "src/startup-data-util.cc",
     "src/string-builder.cc",
     "src/string-builder.h",
-    "src/string-search.cc",
     "src/string-search.h",
     "src/string-stream.cc",
     "src/string-stream.h",
     "src/strtod.cc",
     "src/strtod.h",
-    "src/token.cc",
-    "src/token.h",
+    "src/tracing/trace-event.cc",
+    "src/tracing/trace-event.h",
     "src/transitions-inl.h",
     "src/transitions.cc",
     "src/transitions.h",
+    "src/type-cache.cc",
+    "src/type-cache.h",
     "src/type-feedback-vector-inl.h",
     "src/type-feedback-vector.cc",
     "src/type-feedback-vector.h",
@@ -925,17 +1289,17 @@
     "src/types-inl.h",
     "src/types.cc",
     "src/types.h",
-    "src/typing.cc",
-    "src/typing.h",
-    "src/unbound-queue-inl.h",
-    "src/unbound-queue.h",
+    "src/typing-asm.cc",
+    "src/typing-asm.h",
+    "src/typing-reset.cc",
+    "src/typing-reset.h",
     "src/unicode-inl.h",
     "src/unicode.cc",
     "src/unicode.h",
+    "src/unicode-cache-inl.h",
+    "src/unicode-cache.h",
     "src/unicode-decoder.cc",
     "src/unicode-decoder.h",
-    "src/unique.h",
-    "src/utils-inl.h",
     "src/utils.cc",
     "src/utils.h",
     "src/v8.cc",
@@ -943,21 +1307,50 @@
     "src/v8memory.h",
     "src/v8threads.cc",
     "src/v8threads.h",
-    "src/variables.cc",
-    "src/variables.h",
     "src/version.cc",
     "src/version.h",
     "src/vm-state-inl.h",
     "src/vm-state.h",
-    "src/zone-inl.h",
+    "src/wasm/asm-wasm-builder.cc",
+    "src/wasm/asm-wasm-builder.h",
+    "src/wasm/ast-decoder.cc",
+    "src/wasm/ast-decoder.h",
+    "src/wasm/decoder.h",
+    "src/wasm/encoder.cc",
+    "src/wasm/encoder.h",
+    "src/wasm/module-decoder.cc",
+    "src/wasm/module-decoder.h",
+    "src/wasm/wasm-js.cc",
+    "src/wasm/wasm-js.h",
+    "src/wasm/wasm-macro-gen.h",
+    "src/wasm/wasm-module.cc",
+    "src/wasm/wasm-module.h",
+    "src/wasm/wasm-opcodes.cc",
+    "src/wasm/wasm-opcodes.h",
+    "src/wasm/wasm-result.cc",
+    "src/wasm/wasm-result.h",
     "src/zone.cc",
     "src/zone.h",
+    "src/zone-allocator.h",
+    "src/zone-containers.h",
     "src/third_party/fdlibm/fdlibm.cc",
     "src/third_party/fdlibm/fdlibm.h",
   ]
 
   if (v8_target_arch == "x86") {
     sources += [
+      "src/crankshaft/ia32/lithium-codegen-ia32.cc",
+      "src/crankshaft/ia32/lithium-codegen-ia32.h",
+      "src/crankshaft/ia32/lithium-gap-resolver-ia32.cc",
+      "src/crankshaft/ia32/lithium-gap-resolver-ia32.h",
+      "src/crankshaft/ia32/lithium-ia32.cc",
+      "src/crankshaft/ia32/lithium-ia32.h",
+      "src/compiler/ia32/code-generator-ia32.cc",
+      "src/compiler/ia32/instruction-codes-ia32.h",
+      "src/compiler/ia32/instruction-scheduler-ia32.cc",
+      "src/compiler/ia32/instruction-selector-ia32.cc",
+      "src/debug/ia32/debug-ia32.cc",
+      "src/full-codegen/ia32/full-codegen-ia32.cc",
       "src/ia32/assembler-ia32-inl.h",
       "src/ia32/assembler-ia32.cc",
       "src/ia32/assembler-ia32.h",
@@ -967,35 +1360,42 @@
       "src/ia32/codegen-ia32.cc",
       "src/ia32/codegen-ia32.h",
       "src/ia32/cpu-ia32.cc",
-      "src/ia32/debug-ia32.cc",
       "src/ia32/deoptimizer-ia32.cc",
       "src/ia32/disasm-ia32.cc",
       "src/ia32/frames-ia32.cc",
       "src/ia32/frames-ia32.h",
-      "src/ia32/full-codegen-ia32.cc",
       "src/ia32/interface-descriptors-ia32.cc",
-      "src/ia32/lithium-codegen-ia32.cc",
-      "src/ia32/lithium-codegen-ia32.h",
-      "src/ia32/lithium-gap-resolver-ia32.cc",
-      "src/ia32/lithium-gap-resolver-ia32.h",
-      "src/ia32/lithium-ia32.cc",
-      "src/ia32/lithium-ia32.h",
       "src/ia32/macro-assembler-ia32.cc",
       "src/ia32/macro-assembler-ia32.h",
-      "src/ia32/regexp-macro-assembler-ia32.cc",
-      "src/ia32/regexp-macro-assembler-ia32.h",
-      "src/compiler/ia32/code-generator-ia32.cc",
-      "src/compiler/ia32/instruction-codes-ia32.h",
-      "src/compiler/ia32/instruction-selector-ia32.cc",
-      "src/compiler/ia32/linkage-ia32.cc",
       "src/ic/ia32/access-compiler-ia32.cc",
       "src/ic/ia32/handler-compiler-ia32.cc",
       "src/ic/ia32/ic-ia32.cc",
       "src/ic/ia32/ic-compiler-ia32.cc",
       "src/ic/ia32/stub-cache-ia32.cc",
+      "src/regexp/ia32/regexp-macro-assembler-ia32.cc",
+      "src/regexp/ia32/regexp-macro-assembler-ia32.h",
     ]
   } else if (v8_target_arch == "x64") {
     sources += [
+      "src/compiler/x64/code-generator-x64.cc",
+      "src/compiler/x64/instruction-codes-x64.h",
+      "src/compiler/x64/instruction-scheduler-x64.cc",
+      "src/compiler/x64/instruction-selector-x64.cc",
+      "src/crankshaft/x64/lithium-codegen-x64.cc",
+      "src/crankshaft/x64/lithium-codegen-x64.h",
+      "src/crankshaft/x64/lithium-gap-resolver-x64.cc",
+      "src/crankshaft/x64/lithium-gap-resolver-x64.h",
+      "src/crankshaft/x64/lithium-x64.cc",
+      "src/crankshaft/x64/lithium-x64.h",
+      "src/debug/x64/debug-x64.cc",
+      "src/full-codegen/x64/full-codegen-x64.cc",
+      "src/ic/x64/access-compiler-x64.cc",
+      "src/ic/x64/handler-compiler-x64.cc",
+      "src/ic/x64/ic-x64.cc",
+      "src/ic/x64/ic-compiler-x64.cc",
+      "src/ic/x64/stub-cache-x64.cc",
+      "src/regexp/x64/regexp-macro-assembler-x64.cc",
+      "src/regexp/x64/regexp-macro-assembler-x64.h",
       "src/x64/assembler-x64-inl.h",
       "src/x64/assembler-x64.cc",
       "src/x64/assembler-x64.h",
@@ -1005,32 +1405,13 @@
       "src/x64/codegen-x64.cc",
       "src/x64/codegen-x64.h",
       "src/x64/cpu-x64.cc",
-      "src/x64/debug-x64.cc",
       "src/x64/deoptimizer-x64.cc",
       "src/x64/disasm-x64.cc",
       "src/x64/frames-x64.cc",
       "src/x64/frames-x64.h",
-      "src/x64/full-codegen-x64.cc",
       "src/x64/interface-descriptors-x64.cc",
-      "src/x64/lithium-codegen-x64.cc",
-      "src/x64/lithium-codegen-x64.h",
-      "src/x64/lithium-gap-resolver-x64.cc",
-      "src/x64/lithium-gap-resolver-x64.h",
-      "src/x64/lithium-x64.cc",
-      "src/x64/lithium-x64.h",
       "src/x64/macro-assembler-x64.cc",
       "src/x64/macro-assembler-x64.h",
-      "src/x64/regexp-macro-assembler-x64.cc",
-      "src/x64/regexp-macro-assembler-x64.h",
-      "src/compiler/x64/code-generator-x64.cc",
-      "src/compiler/x64/instruction-codes-x64.h",
-      "src/compiler/x64/instruction-selector-x64.cc",
-      "src/compiler/x64/linkage-x64.cc",
-      "src/ic/x64/access-compiler-x64.cc",
-      "src/ic/x64/handler-compiler-x64.cc",
-      "src/ic/x64/ic-x64.cc",
-      "src/ic/x64/ic-compiler-x64.cc",
-      "src/ic/x64/stub-cache-x64.cc",
     ]
   } else if (v8_target_arch == "arm") {
     sources += [
@@ -1045,34 +1426,35 @@
       "src/arm/constants-arm.h",
       "src/arm/constants-arm.cc",
       "src/arm/cpu-arm.cc",
-      "src/arm/debug-arm.cc",
       "src/arm/deoptimizer-arm.cc",
       "src/arm/disasm-arm.cc",
       "src/arm/frames-arm.cc",
       "src/arm/frames-arm.h",
-      "src/arm/full-codegen-arm.cc",
       "src/arm/interface-descriptors-arm.cc",
       "src/arm/interface-descriptors-arm.h",
-      "src/arm/lithium-arm.cc",
-      "src/arm/lithium-arm.h",
-      "src/arm/lithium-codegen-arm.cc",
-      "src/arm/lithium-codegen-arm.h",
-      "src/arm/lithium-gap-resolver-arm.cc",
-      "src/arm/lithium-gap-resolver-arm.h",
       "src/arm/macro-assembler-arm.cc",
       "src/arm/macro-assembler-arm.h",
-      "src/arm/regexp-macro-assembler-arm.cc",
-      "src/arm/regexp-macro-assembler-arm.h",
       "src/arm/simulator-arm.cc",
+      "src/arm/simulator-arm.h",
       "src/compiler/arm/code-generator-arm.cc",
       "src/compiler/arm/instruction-codes-arm.h",
+      "src/compiler/arm/instruction-scheduler-arm.cc",
       "src/compiler/arm/instruction-selector-arm.cc",
-      "src/compiler/arm/linkage-arm.cc",
+      "src/crankshaft/arm/lithium-arm.cc",
+      "src/crankshaft/arm/lithium-arm.h",
+      "src/crankshaft/arm/lithium-codegen-arm.cc",
+      "src/crankshaft/arm/lithium-codegen-arm.h",
+      "src/crankshaft/arm/lithium-gap-resolver-arm.cc",
+      "src/crankshaft/arm/lithium-gap-resolver-arm.h",
+      "src/debug/arm/debug-arm.cc",
+      "src/full-codegen/arm/full-codegen-arm.cc",
       "src/ic/arm/access-compiler-arm.cc",
       "src/ic/arm/handler-compiler-arm.cc",
       "src/ic/arm/ic-arm.cc",
       "src/ic/arm/ic-compiler-arm.cc",
       "src/ic/arm/stub-cache-arm.cc",
+      "src/regexp/arm/regexp-macro-assembler-arm.cc",
+      "src/regexp/arm/regexp-macro-assembler-arm.h",
     ]
   } else if (v8_target_arch == "arm64") {
     sources += [
@@ -1086,7 +1468,6 @@
       "src/arm64/code-stubs-arm64.h",
       "src/arm64/constants-arm64.h",
       "src/arm64/cpu-arm64.cc",
-      "src/arm64/debug-arm64.cc",
       "src/arm64/decoder-arm64.cc",
       "src/arm64/decoder-arm64.h",
       "src/arm64/decoder-arm64-inl.h",
@@ -1095,40 +1476,61 @@
       "src/arm64/disasm-arm64.h",
       "src/arm64/frames-arm64.cc",
       "src/arm64/frames-arm64.h",
-      "src/arm64/full-codegen-arm64.cc",
       "src/arm64/instructions-arm64.cc",
       "src/arm64/instructions-arm64.h",
       "src/arm64/instrument-arm64.cc",
       "src/arm64/instrument-arm64.h",
       "src/arm64/interface-descriptors-arm64.cc",
       "src/arm64/interface-descriptors-arm64.h",
-      "src/arm64/lithium-arm64.cc",
-      "src/arm64/lithium-arm64.h",
-      "src/arm64/lithium-codegen-arm64.cc",
-      "src/arm64/lithium-codegen-arm64.h",
-      "src/arm64/lithium-gap-resolver-arm64.cc",
-      "src/arm64/lithium-gap-resolver-arm64.h",
       "src/arm64/macro-assembler-arm64.cc",
       "src/arm64/macro-assembler-arm64.h",
       "src/arm64/macro-assembler-arm64-inl.h",
-      "src/arm64/regexp-macro-assembler-arm64.cc",
-      "src/arm64/regexp-macro-assembler-arm64.h",
       "src/arm64/simulator-arm64.cc",
       "src/arm64/simulator-arm64.h",
       "src/arm64/utils-arm64.cc",
       "src/arm64/utils-arm64.h",
       "src/compiler/arm64/code-generator-arm64.cc",
       "src/compiler/arm64/instruction-codes-arm64.h",
+      "src/compiler/arm64/instruction-scheduler-arm64.cc",
       "src/compiler/arm64/instruction-selector-arm64.cc",
-      "src/compiler/arm64/linkage-arm64.cc",
+      "src/crankshaft/arm64/delayed-masm-arm64.cc",
+      "src/crankshaft/arm64/delayed-masm-arm64.h",
+      "src/crankshaft/arm64/delayed-masm-arm64-inl.h",
+      "src/crankshaft/arm64/lithium-arm64.cc",
+      "src/crankshaft/arm64/lithium-arm64.h",
+      "src/crankshaft/arm64/lithium-codegen-arm64.cc",
+      "src/crankshaft/arm64/lithium-codegen-arm64.h",
+      "src/crankshaft/arm64/lithium-gap-resolver-arm64.cc",
+      "src/crankshaft/arm64/lithium-gap-resolver-arm64.h",
+      "src/debug/arm64/debug-arm64.cc",
+      "src/full-codegen/arm64/full-codegen-arm64.cc",
       "src/ic/arm64/access-compiler-arm64.cc",
       "src/ic/arm64/handler-compiler-arm64.cc",
       "src/ic/arm64/ic-arm64.cc",
       "src/ic/arm64/ic-compiler-arm64.cc",
       "src/ic/arm64/stub-cache-arm64.cc",
+      "src/regexp/arm64/regexp-macro-assembler-arm64.cc",
+      "src/regexp/arm64/regexp-macro-assembler-arm64.h",
     ]
   } else if (v8_target_arch == "mipsel") {
     sources += [
+      "src/compiler/mips/code-generator-mips.cc",
+      "src/compiler/mips/instruction-codes-mips.h",
+      "src/compiler/mips/instruction-scheduler-mips.cc",
+      "src/compiler/mips/instruction-selector-mips.cc",
+      "src/crankshaft/mips/lithium-codegen-mips.cc",
+      "src/crankshaft/mips/lithium-codegen-mips.h",
+      "src/crankshaft/mips/lithium-gap-resolver-mips.cc",
+      "src/crankshaft/mips/lithium-gap-resolver-mips.h",
+      "src/crankshaft/mips/lithium-mips.cc",
+      "src/crankshaft/mips/lithium-mips.h",
+      "src/debug/mips/debug-mips.cc",
+      "src/full-codegen/mips/full-codegen-mips.cc",
+      "src/ic/mips/access-compiler-mips.cc",
+      "src/ic/mips/handler-compiler-mips.cc",
+      "src/ic/mips/ic-mips.cc",
+      "src/ic/mips/ic-compiler-mips.cc",
+      "src/ic/mips/stub-cache-mips.cc",
       "src/mips/assembler-mips.cc",
       "src/mips/assembler-mips.h",
       "src/mips/assembler-mips-inl.h",
@@ -1140,36 +1542,37 @@
       "src/mips/constants-mips.cc",
       "src/mips/constants-mips.h",
       "src/mips/cpu-mips.cc",
-      "src/mips/debug-mips.cc",
       "src/mips/deoptimizer-mips.cc",
       "src/mips/disasm-mips.cc",
       "src/mips/frames-mips.cc",
       "src/mips/frames-mips.h",
-      "src/mips/full-codegen-mips.cc",
       "src/mips/interface-descriptors-mips.cc",
-      "src/mips/lithium-codegen-mips.cc",
-      "src/mips/lithium-codegen-mips.h",
-      "src/mips/lithium-gap-resolver-mips.cc",
-      "src/mips/lithium-gap-resolver-mips.h",
-      "src/mips/lithium-mips.cc",
-      "src/mips/lithium-mips.h",
       "src/mips/macro-assembler-mips.cc",
       "src/mips/macro-assembler-mips.h",
-      "src/mips/regexp-macro-assembler-mips.cc",
-      "src/mips/regexp-macro-assembler-mips.h",
       "src/mips/simulator-mips.cc",
-      "src/compiler/mips/code-generator-mips.cc",
-      "src/compiler/mips/instruction-codes-mips.h",
-      "src/compiler/mips/instruction-selector-mips.cc",
-      "src/compiler/mips/linkage-mips.cc",
-      "src/ic/mips/access-compiler-mips.cc",
-      "src/ic/mips/handler-compiler-mips.cc",
-      "src/ic/mips/ic-mips.cc",
-      "src/ic/mips/ic-compiler-mips.cc",
-      "src/ic/mips/stub-cache-mips.cc",
+      "src/mips/simulator-mips.h",
+      "src/regexp/mips/regexp-macro-assembler-mips.cc",
+      "src/regexp/mips/regexp-macro-assembler-mips.h",
     ]
   } else if (v8_target_arch == "mips64el") {
     sources += [
+      "compiler/mips64/code-generator-mips64.cc",
+      "compiler/mips64/instruction-codes-mips64.h",
+      "compiler/mips64/instruction-scheduler-mips64.cc",
+      "compiler/mips64/instruction-selector-mips64.cc",
+      "src/crankshaft/mips64/lithium-codegen-mips64.cc",
+      "src/crankshaft/mips64/lithium-codegen-mips64.h",
+      "src/crankshaft/mips64/lithium-gap-resolver-mips64.cc",
+      "src/crankshaft/mips64/lithium-gap-resolver-mips64.h",
+      "src/crankshaft/mips64/lithium-mips64.cc",
+      "src/crankshaft/mips64/lithium-mips64.h",
+      "src/debug/mips64/debug-mips64.cc",
+      "src/full-codegen/mips64/full-codegen-mips64.cc",
+      "src/ic/mips64/access-compiler-mips64.cc",
+      "src/ic/mips64/handler-compiler-mips64.cc",
+      "src/ic/mips64/ic-mips64.cc",
+      "src/ic/mips64/ic-compiler-mips64.cc",
+      "src/ic/mips64/stub-cache-mips64.cc",
       "src/mips64/assembler-mips64.cc",
       "src/mips64/assembler-mips64.h",
       "src/mips64/assembler-mips64-inl.h",
@@ -1181,43 +1584,37 @@
       "src/mips64/constants-mips64.cc",
       "src/mips64/constants-mips64.h",
       "src/mips64/cpu-mips64.cc",
-      "src/mips64/debug-mips64.cc",
       "src/mips64/deoptimizer-mips64.cc",
       "src/mips64/disasm-mips64.cc",
       "src/mips64/frames-mips64.cc",
       "src/mips64/frames-mips64.h",
-      "src/mips64/full-codegen-mips64.cc",
       "src/mips64/interface-descriptors-mips64.cc",
-      "src/mips64/lithium-codegen-mips64.cc",
-      "src/mips64/lithium-codegen-mips64.h",
-      "src/mips64/lithium-gap-resolver-mips64.cc",
-      "src/mips64/lithium-gap-resolver-mips64.h",
-      "src/mips64/lithium-mips64.cc",
-      "src/mips64/lithium-mips64.h",
       "src/mips64/macro-assembler-mips64.cc",
       "src/mips64/macro-assembler-mips64.h",
-      "src/mips64/regexp-macro-assembler-mips64.cc",
-      "src/mips64/regexp-macro-assembler-mips64.h",
       "src/mips64/simulator-mips64.cc",
-      "src/ic/mips64/access-compiler-mips64.cc",
-      "src/ic/mips64/handler-compiler-mips64.cc",
-      "src/ic/mips64/ic-mips64.cc",
-      "src/ic/mips64/ic-compiler-mips64.cc",
-      "src/ic/mips64/stub-cache-mips64.cc",
+      "src/mips64/simulator-mips64.h",
+      "src/regexp/mips64/regexp-macro-assembler-mips64.cc",
+      "src/regexp/mips64/regexp-macro-assembler-mips64.h",
     ]
   }
 
   configs -= [ "//build/config/compiler:chromium_code" ]
   configs += [ "//build/config/compiler:no_chromium_code" ]
-  configs += [ ":internal_config", ":features", ":toolchain" ]
+  configs += [
+    ":internal_config",
+    ":features",
+    ":toolchain",
+  ]
 
   if (!is_debug) {
-    configs -= [ "//build/config/compiler:optimize" ]
+    configs -= [ "//build/config/compiler:default_optimization" ]
     configs += [ "//build/config/compiler:optimize_max" ]
   }
 
   defines = []
-  deps = [ ":v8_libbase" ]
+  deps = [
+    ":v8_libbase",
+  ]
 
   if (is_win) {
     # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
@@ -1229,6 +1626,7 @@
     if (is_win) {
       deps += [ "//third_party/icu:icudata" ]
     }
+
     # TODO(jochen): Add support for icu_use_data_file_flag
     defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ]
   } else {
@@ -1248,12 +1646,15 @@
   visibility = [ ":*" ]  # Only targets in this file can depend on this.
 
   sources = [
+    "src/base/adapters.h",
     "src/base/atomicops.h",
     "src/base/atomicops_internals_arm64_gcc.h",
     "src/base/atomicops_internals_arm_gcc.h",
     "src/base/atomicops_internals_atomicword_compat.h",
     "src/base/atomicops_internals_mac.h",
     "src/base/atomicops_internals_mips_gcc.h",
+    "src/base/atomicops_internals_mips64_gcc.h",
+    "src/base/atomicops_internals_portable.h",
     "src/base/atomicops_internals_tsan.h",
     "src/base/atomicops_internals_x86_gcc.cc",
     "src/base/atomicops_internals_x86_gcc.h",
@@ -1289,6 +1690,7 @@
     "src/base/safe_conversions_impl.h",
     "src/base/safe_math.h",
     "src/base/safe_math_impl.h",
+    "src/base/smart-pointers.h",
     "src/base/sys-info.cc",
     "src/base/sys-info.h",
     "src/base/utils/random-number-generator.cc",
@@ -1297,41 +1699,39 @@
 
   configs -= [ "//build/config/compiler:chromium_code" ]
   configs += [ "//build/config/compiler:no_chromium_code" ]
-  configs += [ ":internal_config_base", ":features", ":toolchain" ]
+  configs += [
+    ":internal_config_base",
+    ":features",
+    ":toolchain",
+  ]
 
   if (!is_debug) {
-    configs -= [ "//build/config/compiler:optimize" ]
+    configs -= [ "//build/config/compiler:default_optimization" ]
     configs += [ "//build/config/compiler:optimize_max" ]
   }
 
   defines = []
 
   if (is_posix) {
-    sources += [
-      "src/base/platform/platform-posix.cc"
-    ]
+    sources += [ "src/base/platform/platform-posix.cc" ]
   }
 
   if (is_linux) {
-    sources += [
-      "src/base/platform/platform-linux.cc"
-    ]
+    sources += [ "src/base/platform/platform-linux.cc" ]
 
-    libs = [ "rt" ]
+    libs = [ "dl", "rt" ]
   } else if (is_android) {
     defines += [ "CAN_USE_VFP_INSTRUCTIONS" ]
 
-    if (build_os == "mac") {
-      if (current_toolchain == host_toolchain) {
+    if (current_toolchain == host_toolchain) {
+      libs = [ "dl", "rt" ]
+      if (host_os == "mac") {
         sources += [ "src/base/platform/platform-macos.cc" ]
       } else {
         sources += [ "src/base/platform/platform-linux.cc" ]
       }
     } else {
       sources += [ "src/base/platform/platform-linux.cc" ]
-      if (current_toolchain == host_toolchain) {
-        defines += [ "V8_LIBRT_NOT_AVAILABLE" ]
-      }
     }
   } else if (is_mac) {
     sources += [ "src/base/platform/platform-macos.cc" ]
@@ -1344,7 +1744,10 @@
 
     defines += [ "_CRT_RAND_S" ]  # for rand_s()
 
-    libs = [ "winmm.lib", "ws2_32.lib" ]
+    libs = [
+      "winmm.lib",
+      "ws2_32.lib",
+    ]
   }
 
   # TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
@@ -1363,10 +1766,14 @@
 
   configs -= [ "//build/config/compiler:chromium_code" ]
   configs += [ "//build/config/compiler:no_chromium_code" ]
-  configs += [ ":internal_config_base", ":features", ":toolchain" ]
+  configs += [
+    ":internal_config_base",
+    ":features",
+    ":toolchain",
+  ]
 
   if (!is_debug) {
-    configs -= [ "//build/config/compiler:optimize" ]
+    configs -= [ "//build/config/compiler:default_optimization" ]
     configs += [ "//build/config/compiler:optimize_max" ]
   }
 
@@ -1379,17 +1786,21 @@
 # Executables
 #
 
-if (current_toolchain == host_toolchain) {
+if (current_toolchain == snapshot_toolchain) {
   executable("mksnapshot") {
     visibility = [ ":*" ]  # Only targets in this file can depend on this.
 
     sources = [
-      "src/mksnapshot.cc",
+      "src/snapshot/mksnapshot.cc",
     ]
 
     configs -= [ "//build/config/compiler:chromium_code" ]
     configs += [ "//build/config/compiler:no_chromium_code" ]
-    configs += [ ":internal_config", ":features", ":toolchain" ]
+    configs += [
+      ":internal_config",
+      ":features",
+      ":toolchain",
+    ]
 
     deps = [
       ":v8_base",
@@ -1404,65 +1815,93 @@
 # Public targets
 #
 
-if (component_mode == "shared_library") {
-
-component("v8") {
-  sources = [
-    "src/v8dll-main.cc",
-  ]
-
-  if (v8_use_snapshot && v8_use_external_startup_data) {
-    deps = [
-      ":v8_base",
-      ":v8_external_snapshot",
-    ]
-  } else if (v8_use_snapshot) {
-    deps = [
-      ":v8_base",
-      ":v8_snapshot",
-    ]
-  } else {
-    assert(!v8_use_external_startup_data)
-    deps = [
-      ":v8_base",
-      ":v8_nosnapshot",
-    ]
-  }
-
-  configs -= [ "//build/config/compiler:chromium_code" ]
-  configs += [ "//build/config/compiler:no_chromium_code" ]
-  configs += [ ":internal_config", ":features", ":toolchain" ]
-
-  direct_dependent_configs = [ ":external_config" ]
-
-  libs = []
-  if (is_android && current_toolchain != host_toolchain) {
-    libs += [ "log" ]
-  }
-}
-
+if (v8_use_snapshot && v8_use_external_startup_data) {
+  snapshot_target = ":v8_external_snapshot"
+} else if (v8_use_snapshot) {
+  snapshot_target = ":v8_snapshot"
 } else {
-
-group("v8") {
-  if (v8_use_snapshot && v8_use_external_startup_data) {
-    deps = [
-      ":v8_base",
-      ":v8_external_snapshot",
-    ]
-  } else if (v8_use_snapshot) {
-    deps = [
-      ":v8_base",
-      ":v8_snapshot",
-    ]
-  } else {
-    assert(!v8_use_external_startup_data)
-    deps = [
-      ":v8_base",
-      ":v8_nosnapshot",
-    ]
-  }
-
-  direct_dependent_configs = [ ":external_config" ]
+  assert(!v8_use_external_startup_data)
+  snapshot_target = ":v8_nosnapshot"
 }
 
+if (is_component_build) {
+  component("v8") {
+    sources = [
+      "src/v8dll-main.cc",
+    ]
+
+    public_deps = [
+      ":v8_base",
+      snapshot_target,
+    ]
+
+    configs -= [ "//build/config/compiler:chromium_code" ]
+    configs += [ "//build/config/compiler:no_chromium_code" ]
+    configs += [
+      ":internal_config",
+      ":features",
+      ":toolchain",
+    ]
+
+    public_configs = [ ":external_config" ]
+
+    libs = []
+    if (is_android && current_toolchain != host_toolchain) {
+      libs += [ "log" ]
+    }
+  }
+} else {
+  group("v8") {
+    public_deps = [
+      ":v8_base",
+      snapshot_target,
+    ]
+    public_configs = [ ":external_config" ]
+  }
+}
+
+if ((current_toolchain == host_toolchain && v8_toolset_for_d8 == "host") ||
+    (current_toolchain == snapshot_toolchain && v8_toolset_for_d8 == "host") ||
+    (current_toolchain != host_toolchain && v8_toolset_for_d8 == "target")) {
+  executable("d8") {
+    sources = [
+      "src/d8.cc",
+      "src/d8.h",
+    ]
+
+    configs -= [ "//build/config/compiler:chromium_code" ]
+    configs += [ "//build/config/compiler:no_chromium_code" ]
+    configs += [
+      # Note: don't use :internal_config here because this target will get
+      # the :external_config applied to it by virtue of depending on :v8, and
+      # you can't have both applied to the same target.
+      ":internal_config_base",
+      ":features",
+      ":toolchain",
+    ]
+
+    deps = [
+      ":d8_js2c",
+      ":v8",
+      ":v8_libplatform",
+      "//build/config/sanitizers:deps",
+    ]
+
+    # TODO(jochen): Add support for vtunejit.
+
+    if (is_posix) {
+      sources += [ "src/d8-posix.cc" ]
+    } else if (is_win) {
+      sources += [ "src/d8-windows.cc" ]
+    }
+
+    if (!is_component_build) {
+      sources += [
+        "$target_gen_dir/d8-js.cc",
+      ]
+    }
+    if (v8_enable_i18n_support) {
+      deps += [ "//third_party/icu" ]
+    }
+  }
 }