Skip to content

Commit

Permalink
Squashed 'deps/v8/' changes from 0462788..e4e4d10
Browse files Browse the repository at this point in the history
e4e4d10 Version 3.30.2 (based on bleeding_edge revision r24373)
ec9f9bf Version 3.30.1 (based on bleeding_edge revision r24337)
f8d2b37 Version 3.29.93.1 (merged r24284)
cb1838b Whitespace change for tag testing.
3d1a16e Whitespace change for tag testing.
1f0b334 Version 3.29.93 (based on bleeding_edge revision r24283)
e878a8c Version 3.29.92 (based on bleeding_edge revision r24256)
42a92fb Version 3.29.91.1 (merged r24240)
a2a2e88 Whitespace change for testing new git workflow.
37ef82d Version 3.29.91 (based on bleeding_edge revision r24232)
4d9fbd7 Version 3.29.88.1 (merged r24221)
3b07cca Version 3.29.88 (based on bleeding_edge revision r24177)
c15262b Version 3.29.87 (based on bleeding_edge revision r24156)
2e283fb Version 3.29.84 (based on bleeding_edge revision r24096)
dc5e6bc Version 3.29.83 (based on bleeding_edge revision r24139)
9c04d56 Version 3.29.82 (based on bleeding_edge revision r24129)
1b46e96 Version 3.29.70.1 (merged r24071)
5f78b49 Reset trunk to 3.29.70
685b394 Version 3.29.81 (based on bleeding_edge revision r24099)
4fc719f Version 3.29.78 (based on bleeding_edge revision r24051)
802bc81 Version 3.29.75 (based on bleeding_edge revision r24018)
692e884 Version 3.29.74 (based on bleeding_edge revision r24014)

git-subtree-dir: deps/v8
git-subtree-split: e4e4d10acd9dd7afe037d738b22de3f3613f3d7e
  • Loading branch information
iefserge committed Oct 2, 2014
1 parent e2c4bed commit 961ccc6
Show file tree
Hide file tree
Showing 560 changed files with 41,618 additions and 30,630 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@ GSYMS
GPATH
gtags.files
turbo*.dot
turbo*.json
3 changes: 3 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ NVIDIA Corporation
BlackBerry Limited
Opera Software ASA
Intel Corporation
MIPS Technologies, Inc.
Imagination Technologies, LLC
Loongson Technology Corporation Limited

Akinori MUSHA <[email protected]>
Alexander Botero-Lowry <[email protected]>
Expand Down
45 changes: 41 additions & 4 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,10 @@ source_set("v8_base") {
"src/ast.h",
"src/background-parsing-task.cc",
"src/background-parsing-task.h",
"src/bailout-reason.cc",
"src/bailout-reason.h",
"src/basic-block-profiler.cc",
"src/basic-block-profiler.h",
"src/bignum-dtoa.cc",
"src/bignum-dtoa.h",
"src/bignum.cc",
Expand Down Expand Up @@ -469,6 +473,8 @@ source_set("v8_base") {
"src/compiler/access-builder.h",
"src/compiler/ast-graph-builder.cc",
"src/compiler/ast-graph-builder.h",
"src/compiler/basic-block-instrumentor.cc",
"src/compiler/basic-block-instrumentor.h",
"src/compiler/change-lowering.cc",
"src/compiler/change-lowering.h",
"src/compiler/code-generator-impl.h",
Expand Down Expand Up @@ -504,6 +510,8 @@ source_set("v8_base") {
"src/compiler/instruction-selector.h",
"src/compiler/instruction.cc",
"src/compiler/instruction.h",
"src/compiler/js-builtin-reducer.cc",
"src/compiler/js-builtin-reducer.h",
"src/compiler/js-context-specialization.cc",
"src/compiler/js-context-specialization.h",
"src/compiler/js-generic-lowering.cc",
Expand All @@ -512,6 +520,7 @@ source_set("v8_base") {
"src/compiler/js-graph.h",
"src/compiler/js-inlining.cc",
"src/compiler/js-inlining.h",
"src/compiler/js-operator.cc",
"src/compiler/js-operator.h",
"src/compiler/js-typed-lowering.cc",
"src/compiler/js-typed-lowering.h",
Expand All @@ -528,6 +537,7 @@ source_set("v8_base") {
"src/compiler/node-aux-data.h",
"src/compiler/node-cache.cc",
"src/compiler/node-cache.h",
"src/compiler/node-matchers.cc",
"src/compiler/node-matchers.h",
"src/compiler/node-properties-inl.h",
"src/compiler/node-properties.h",
Expand Down Expand Up @@ -666,8 +676,6 @@ source_set("v8_base") {
"src/heap/store-buffer-inl.h",
"src/heap/store-buffer.cc",
"src/heap/store-buffer.h",
"src/heap/sweeper-thread.h",
"src/heap/sweeper-thread.cc",
"src/hydrogen-alias-analysis.h",
"src/hydrogen-bce.cc",
"src/hydrogen-bce.h",
Expand Down Expand Up @@ -816,8 +824,32 @@ source_set("v8_base") {
"src/rewriter.h",
"src/runtime-profiler.cc",
"src/runtime-profiler.h",
"src/runtime.cc",
"src/runtime.h",
"src/runtime/runtime-classes.cc",
"src/runtime/runtime-collections.cc",
"src/runtime/runtime-compiler.cc",
"src/runtime/runtime-i18n.cc",
"src/runtime/runtime-date.cc",
"src/runtime/runtime-debug.cc",
"src/runtime/runtime-function.cc",
"src/runtime/runtime-generator.cc",
"src/runtime/runtime-json.cc",
"src/runtime/runtime-literals.cc",
"src/runtime/runtime-liveedit.cc",
"src/runtime/runtime-maths.cc",
"src/runtime/runtime-numbers.cc",
"src/runtime/runtime-observe.cc",
"src/runtime/runtime-proxy.cc",
"src/runtime/runtime-regexp.cc",
"src/runtime/runtime-scopes.cc",
"src/runtime/runtime-strings.cc",
"src/runtime/runtime-symbol.cc",
"src/runtime/runtime-test.cc",
"src/runtime/runtime-typedarray.cc",
"src/runtime/runtime-uri.cc",
"src/runtime/runtime-utils.h",
"src/runtime/runtime.cc",
"src/runtime/runtime.h",
"src/runtime/string-builder.h",
"src/safepoint-table.cc",
"src/safepoint-table.h",
"src/sampler.cc",
Expand Down Expand Up @@ -848,6 +880,9 @@ source_set("v8_base") {
"src/transitions-inl.h",
"src/transitions.cc",
"src/transitions.h",
"src/type-feedback-vector-inl.h",
"src/type-feedback-vector.cc",
"src/type-feedback-vector.h",
"src/type-info.cc",
"src/type-info.h",
"src/types-inl.h",
Expand Down Expand Up @@ -915,6 +950,8 @@ source_set("v8_base") {
"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",
Expand Down
77 changes: 77 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,80 @@
2014-10-02: Version 3.30.2

Fix Hydrogen's BuildStore() (Chromium issue 417508).

Move unit tests to test/unittests (issue 3489).

Changes to ALLOW_UNUSED to match upcoming changes to the Chromium trunk:
* Eliminate usage of ALLOW_UNUSED to define COMPILE_ASSERT and just use
static_assert() in all cases now that all platforms build with C++11. *
Convert remaining uses of ALLOW_UNUSED to ALLOW_UNUSED_TYPE to match how
Chromium will be splitting this functionality. (In Chromium we'll have
both ALLOW_UNUSED_TYPE and ALLOW_UNUSED_LOCAL, which have different
syntax to enable us to use these with MSVC.) (Chromium issue 81439).

Performance and stability improvements on all platforms.


2014-10-01: Version 3.30.1

Introduce PromiseRejectCallback (issue 3093).

ES6: Implement object literal property shorthand (issue 3584).

Performance and stability improvements on all platforms.


2014-09-30: Version 3.29.93

Add a getter for the address and size of the code range to the pulic API
(issue 3598).

Convert `obj` ToObject in Object.keys() (issue 3587).

Performance and stability improvements on all platforms.


2014-09-29: Version 3.29.92

Performance and stability improvements on all platforms.


2014-09-26: Version 3.29.91

Performance and stability improvements on all platforms.


2014-09-25: Version 3.29.88

Performance and stability improvements on all platforms.


2014-09-24: Version 3.29.87

Preserve message when rethrowing exception (issue 3583).

Fix escaped index JSON parsing (Chromium issue 416449).

Performance and stability improvements on all platforms.


2014-09-23: Version 3.29.84

Performance and stability improvements on all platforms.


2014-09-23: Version 3.29.83

Performance and stability improvements on all platforms.


2014-09-23: Version 3.29.82

Fix escaped index JSON parsing (Chromium issue 416449).

Performance and stability improvements on all platforms.


2014-09-17: Version 3.29.70

Enable ES6 generators (issue 2355).
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ NACL_ARCHES = nacl_ia32 nacl_x64
# List of files that trigger Makefile regeneration:
GYPFILES = build/all.gyp build/features.gypi build/standalone.gypi \
build/toolchain.gypi samples/samples.gyp src/d8.gyp \
test/cctest/cctest.gyp tools/gyp/v8.gyp
test/cctest/cctest.gyp test/unittests/unittests.gyp tools/gyp/v8.gyp

# If vtunejit=on, the v8vtune.gyp will be appended.
ifeq ($(vtunejit), on)
Expand Down
71 changes: 71 additions & 0 deletions PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,32 @@
import sys


_EXCLUDED_PATHS = (
r"^test[\\\/].*",
r"^testing[\\\/].*",
r"^third_party[\\\/].*",
r"^tools[\\\/].*",
)


# Regular expression that matches code only used for test binaries
# (best effort).
_TEST_CODE_EXCLUDED_PATHS = (
r'.+-unittest\.cc',
# Has a method VisitForTest().
r'src[\\\/]compiler[\\\/]ast-graph-builder\.cc',
# Test extension.
r'src[\\\/]extensions[\\\/]gc-extension\.cc',
)


_TEST_ONLY_WARNING = (
'You might be calling functions intended only for testing from\n'
'production code. It is OK to ignore this warning if you know what\n'
'you are doing, as the heuristics used to detect the situation are\n'
'not perfect. The commit queue will not block on this warning.')


def _V8PresubmitChecks(input_api, output_api):
"""Runs the V8 presubmit checks."""
import sys
Expand Down Expand Up @@ -113,6 +139,49 @@ def _CheckUnwantedDependencies(input_api, output_api):
return results


def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api):
"""Attempts to prevent use of functions intended only for testing in
non-testing code. For now this is just a best-effort implementation
that ignores header files and may have some false positives. A
better implementation would probably need a proper C++ parser.
"""
# We only scan .cc files, as the declaration of for-testing functions in
# header files are hard to distinguish from calls to such functions without a
# proper C++ parser.
file_inclusion_pattern = r'.+\.cc'

base_function_pattern = r'[ :]test::[^\s]+|ForTest(ing)?|for_test(ing)?'
inclusion_pattern = input_api.re.compile(r'(%s)\s*\(' % base_function_pattern)
comment_pattern = input_api.re.compile(r'//.*(%s)' % base_function_pattern)
exclusion_pattern = input_api.re.compile(
r'::[A-Za-z0-9_]+(%s)|(%s)[^;]+\{' % (
base_function_pattern, base_function_pattern))

def FilterFile(affected_file):
black_list = (_EXCLUDED_PATHS +
_TEST_CODE_EXCLUDED_PATHS +
input_api.DEFAULT_BLACK_LIST)
return input_api.FilterSourceFile(
affected_file,
white_list=(file_inclusion_pattern, ),
black_list=black_list)

problems = []
for f in input_api.AffectedSourceFiles(FilterFile):
local_path = f.LocalPath()
for line_number, line in f.ChangedContents():
if (inclusion_pattern.search(line) and
not comment_pattern.search(line) and
not exclusion_pattern.search(line)):
problems.append(
'%s:%d\n %s' % (local_path, line_number, line.strip()))

if problems:
return [output_api.PresubmitPromptOrNotify(_TEST_ONLY_WARNING, problems)]
else:
return []


def _CommonChecks(input_api, output_api):
"""Checks common to both upload and commit."""
results = []
Expand All @@ -122,6 +191,8 @@ def _CommonChecks(input_api, output_api):
input_api, output_api))
results.extend(_V8PresubmitChecks(input_api, output_api))
results.extend(_CheckUnwantedDependencies(input_api, output_api))
results.extend(
_CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api))
return results


Expand Down
5 changes: 1 addition & 4 deletions build/all.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@
'type': 'none',
'dependencies': [
'../samples/samples.gyp:*',
'../src/base/base.gyp:base-unittests',
'../src/compiler/compiler.gyp:compiler-unittests',
'../src/d8.gyp:d8',
'../src/heap/heap.gyp:heap-unittests',
'../src/libplatform/libplatform.gyp:libplatform-unittests',
'../test/cctest/cctest.gyp:*',
'../test/unittests/unittests.gyp:*',
],
'conditions': [
['component!="shared_library"', {
Expand Down
13 changes: 12 additions & 1 deletion build/toolchain.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,12 @@
'cflags': [ '-m32' ],
'ldflags': [ '-m32' ],
}],
# Enable feedback-directed optimisation when building in android.
[ 'android_webview_build == 1', {
'aosp_build_settings': {
'LOCAL_FDO_SUPPORT': 'true',
},
}],
],
'xcode_settings': {
'ARCHS': [ 'i386' ],
Expand All @@ -645,6 +651,12 @@
'cflags': [ '-m64' ],
'ldflags': [ '-m64' ],
}],
# Enable feedback-directed optimisation when building in android.
[ 'android_webview_build == 1', {
'aosp_build_settings': {
'LOCAL_FDO_SUPPORT': 'true',
},
}],
]
}],
],
Expand Down Expand Up @@ -690,7 +702,6 @@
['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="netbsd" or \
OS=="qnx"', {
'cflags!': [
'-O0',
'-O3',
'-O2',
'-O1',
Expand Down
Loading

0 comments on commit 961ccc6

Please sign in to comment.