Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v8.14.1 proposal #24832

Merged
merged 88 commits into from Dec 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
9bedae5
deps: cherry-pick 6bc4bfe from V8 upstream
Oct 29, 2018
5034729
deps: cherry-pick d2e0166 from V8 upstream
Oct 29, 2018
4f3c9e6
deps,v8: fix gyp build on Aix platform
Oct 29, 2018
e2d2ce6
doc: remove reference to sslv3 in tls.md
jasnell Oct 19, 2018
544e64d
test: fix assertion arguments order
Aiden01 Oct 20, 2018
73d19b1
test: ensure openssl version prints correctly
sam-github Oct 15, 2018
0f98c49
test: fix strictEqual() arguments order
fraxken Oct 19, 2018
ac91346
test: fix strictEqual() argument order
RomainLanz Oct 19, 2018
e7a573a
test: fix test-require-symlink on Windows
bzoz Oct 16, 2018
32ae851
doc: document that addMembership must be called once in a cluster
jasnell Oct 19, 2018
0ff88a3
doc: document ACL limitation for fs.access on Windows
jasnell Oct 19, 2018
e5f75cf
doc: add note about removeListener order
jasnell Oct 19, 2018
f037942
doc: move @phillipj to emeriti
phillipj Oct 20, 2018
34d9129
deps: icu: apply workaround patch
srl295 Aug 7, 2018
4996056
crypto: add SET_INTEGER_CONSANT macro
danbev Oct 16, 2018
3f2a016
doc: add review suggestions to require()
ErickWendel Oct 12, 2018
3a864d7
test: fix strictEqual() arguments order
Oct 20, 2018
f70e79a
build: allow for overwriting of use_openssl_def
codebytere Oct 19, 2018
7612024
build: initial .travis.yml implementation
addaleax Aug 23, 2017
1da04c2
build: install markdown linter for travis
richardlau Jun 8, 2018
2674336
build: improve Travis CI settings
TimothyGu Jun 22, 2018
313ef6f
build,tools: tweak the travis config
refack Aug 20, 2018
15d1f67
build,doc: remove outdated `lint-md-build`
targos Sep 21, 2018
c15d236
tools: apply linting to first commit in PRs
Trott Aug 22, 2018
2a8a28c
tools: make Travis commit linting more robust
Trott Oct 10, 2018
22043cc
tools: do not lint commit message if var undefined
Trott Oct 18, 2018
02209c5
tools: clarify commit message linting
Trott Oct 18, 2018
85a6dae
build,meta: switch to gcc-4.9 on travis
refack Oct 20, 2018
9afdc09
doc: simplify path.basename() on POSIX and Windows
ZYSzys Oct 25, 2018
d0368b8
test: fix strictEqual() argument order
lveteau Oct 23, 2018
0d4de59
doc: simplify valid security issue descriptions
Trott Oct 25, 2018
b1e6de8
test: fix regression when compiled with FIPS
AdamMajer Oct 25, 2018
27b3583
doc: make example more clarified in cluster.md
ZYSzys Oct 28, 2018
2459e15
doc: add note about ABI compatibility
MylesBorins Aug 10, 2018
3025f35
doc: remove mailing list
Trott Oct 28, 2018
6d76f85
doc: add documentation for http.IncomingMessage$complete
jasnell Oct 26, 2018
73e0bb1
doc: fix typographical issues
denismcdonald Oct 30, 2018
8bb67a1
doc: use Node.js instead of Node
Trott Oct 30, 2018
c1723c8
doc: add branding to style guide
Trott Oct 30, 2018
fa12532
lib: remove useless cwd in posix.resolve
ZYSzys Oct 26, 2018
e8dbd09
src: use "constants" string instead of creating new one
oyyd Oct 25, 2018
22b4149
child_process: handle undefined/null for fork() args
shobhitchittora Aug 20, 2018
6ae07a9
test: add property for RangeError in test-buffer-copy
mritunjayz Oct 30, 2018
d34ade8
test: fix strictEqual arguments order
Westixy Oct 29, 2018
e84c01d
tools: update alternative docs versions
richardlau Oct 30, 2018
003eb0c
doc: simplify CODE_OF_CONDUCT.md
Trott Oct 31, 2018
d1eebb2
doc: revise COLLABORATOR_GUIDE.md
Trott Oct 31, 2018
78d9a5e
doc: address bits of proof reading work
Oct 30, 2018
a8402fe
build: only check REPLACEME & DEP...X for releases
rvagg May 11, 2017
ffe1f80
doc: sort bottom-of-file markdown links
sam-github Nov 27, 2018
f5683a9
doc: correct async_hooks resource names
Flarna Nov 27, 2018
8fa5bd3
test: rename regression tests file names
ryzokuken Mar 13, 2018
4db289c
doc: move StackOverflow to unofficial section
JosephLeon Mar 17, 2018
146c488
test: refactor parallel/test-tls-ca-concat.js
juggernaut451 Mar 2, 2018
18c4e5e
test: remove message from assert.strictEqual()
willhayslett Mar 22, 2018
0649148
doc: update child_process.md
AriLFrankel Mar 1, 2018
d79e7d6
doc: minor improvements to buffer.md
Trott Mar 23, 2018
b2fc3b5
doc: fix n-api example string
srl295 Mar 7, 2018
63d8632
doc: add types for some `process` properties
vsemozhetbyt Mar 24, 2018
8338700
doc: add directory structure in writing-tests.md
juggernaut451 Feb 15, 2018
c3ecf05
doc: document `make docopen`
AyushG3112 Mar 13, 2018
ea1fda6
test: remove third param from assert.strictEqual
Mar 22, 2018
9d249bf
doc: add BethGriggs to collaborators
BethGriggs Mar 26, 2018
e48cc3c
doc: remove confusing note about child process stdio
addaleax Mar 23, 2018
bf95392
doc: improve assert legacy text
Trott Mar 26, 2018
06daf52
doc: remove use of "random port" re dgram send
tlhunter Mar 26, 2018
0cbe813
test: update link according to NIST bibliography
tniessen Mar 25, 2018
17e8421
doc: fix grammar error in process.md
kenjiO Mar 27, 2018
8afbd5c
lib: fix a typo in lib/timers "read through"
adispring Mar 29, 2018
8a0ecf4
test: refactor test-http-expect-continue
Trott Mar 27, 2018
a62df1b
test: refactor test-net-dns-error
lpinca Mar 27, 2018
8a546e8
test: removed default message from assert.strictEqual
jaspal-yupana Mar 28, 2018
3ca10fa
test: use createReadStream instead of ReadStream
danbev Mar 27, 2018
bd9cc92
test: remove 3rd argument from assert.strictEqual
Axxxx0n Mar 30, 2018
1bda582
test: rename regression tests more expressively
ryzokuken Mar 29, 2018
216e7da
doc: do not identify string as "JavaScript string"
Trott Mar 30, 2018
33b7c50
doc: remove "if provided" for optional arguments
Trott Mar 30, 2018
a7b3274
test: fix flaky test-cluster-send-handle-twice
Trott Mar 30, 2018
6d8c65e
doc: update to adding listens on SIGUSR1
willhayslett Mar 30, 2018
086570e
test: remove third argument from call to assert.strictEqual()
ForrestWeiswolf Mar 27, 2018
970164f
test: improve assert message
q3e Mar 27, 2018
5e09a3d
test: test process.setuid for bad argument types
dsinecos Mar 30, 2018
6922231
doc: fix api documentation of http.createServer
aautio Dec 6, 2018
74c1074
doc: add description for inspector-only console methods.
Tiriel Nov 13, 2017
62fb5db
assert: revert breaking change
BridgeAR Dec 2, 2018
394cb42
test: verify order of error in h2 server stream
MylesBorins Nov 27, 2018
4c24a82
http2: fix sequence of error/close events
Flarna Dec 2, 2018
187694e
2018-12-18, Version 8.14.1 'Carbon' (LTS)
BethGriggs Dec 4, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -14,6 +14,7 @@
!.mailmap
!.nycrc
!.remarkrc
!.travis.yml

core
vgcore.*
Expand Down
27 changes: 27 additions & 0 deletions .travis.yml
@@ -0,0 +1,27 @@
language: cpp
sudo: false
cache: ccache
os: linux
matrix:
include:
- name: "Linter"
node_js: "latest"
env:
- NODE=$(which node)
script:
- make lint
# Lint the first commit in the PR.
- \[ -z "$TRAVIS_COMMIT_RANGE" \] || (echo -e '\nLinting the commit message according to the guidelines at https://goo.gl/p2fr5Q\n' && git log $TRAVIS_COMMIT_RANGE --pretty=format:'%h' --no-merges | tail -1 | xargs npx -q core-validate-commit --no-validate-metadata)
- name: "Test Suite"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
install:
- export CC='ccache gcc-4.9' CXX='ccache g++-4.9' JOBS=2
- ./configure
- make -j2 V=
script:
- PARALLEL_ARGS='--flaky-tests=skip' make -j1 test
20 changes: 20 additions & 0 deletions BUILDING.md
Expand Up @@ -205,6 +205,15 @@ To read the documentation:
$ man doc/node.1
```

If you prefer to read the documentation in a browser,
run the following after `make doc` is finished:

```console
$ make docopen
```

This will open a browser with the documentation.

To test if Node.js was built correctly:

```console
Expand Down Expand Up @@ -433,3 +442,14 @@ To make `./myCustomModule.js` available via `require('myCustomModule')`.
```console
> .\vcbuild link-module './myCustomModule.js'
```

## Note for downstream distributors of Node.js

The Node.js ecosystem is reliant on ABI compatibility within a major
release. To maintain ABI compatibility it is required that production
builds of Node.js will be built against the same version of dependencies as the
project vendors. If Node.js is to be built against a different version of a
dependency please create a custom `NODE_MODULE_VERSION` to ensure ecosystem
compatibility. Please consult with the TSC by opening an issue at
https://github.com/nodejs/tsc/issues if you decide to create a custom
`NODE_MODULE_VERSION` so we can avoid duplication in the ecosystem.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Expand Up @@ -27,8 +27,9 @@ release.
</tr>
<tr>
<td valign="top">
<b><a href="doc/changelogs/CHANGELOG_V8.md#8.14.0">8.14.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.13.0">8.13.0</a></b><br/>
<b><a href="doc/changelogs/CHANGELOG_V8.md#8.14.1">8.14.1</a></b><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.14.0">8.14.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.13.0">8.13.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.12.0">8.12.0</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.11.4">8.11.4</a><br/>
<a href="doc/changelogs/CHANGELOG_V8.md#8.11.3">8.11.3</a><br/>
Expand Down
8 changes: 2 additions & 6 deletions CODE_OF_CONDUCT.md
@@ -1,8 +1,4 @@
# Code of Conduct

The Node.js Code of Conduct document has moved to
https://github.com/nodejs/admin/blob/master/CODE_OF_CONDUCT.md. Please update
links to this document accordingly.

The Node.js Moderation policy can be found at
https://github.com/nodejs/admin/blob/master/Moderation-Policy.md
* [Node.js Code of Conduct](https://github.com/nodejs/admin/blob/master/CODE_OF_CONDUCT.md)
* [Node.js Moderation Policy](https://github.com/nodejs/admin/blob/master/Moderation-Policy.md)
15 changes: 6 additions & 9 deletions COLLABORATOR_GUIDE.md
Expand Up @@ -23,7 +23,7 @@
* [Landing Pull Requests](#landing-pull-requests)
- [Technical HOWTO](#technical-howto)
- [Troubleshooting](#troubleshooting)
- [I Just Made a Mistake](#i-just-made-a-mistake)
- [I Made a Mistake](#i-made-a-mistake)
- [Long Term Support](#long-term-support)
- [What is LTS?](#what-is-lts)
- [How does LTS work?](#how-does-lts-work)
Expand All @@ -32,13 +32,10 @@
- [How can I help?](#how-can-i-help)
- [How is an LTS release cut?](#how-is-an-lts-release-cut)

This document contains information for Collaborators of the Node.js
project regarding managing the project's code, documentation, and issue tracker.

Collaborators should be familiar with the guidelines for new
contributors in [CONTRIBUTING.md](./CONTRIBUTING.md) and also
understand the project governance model as outlined in
[GOVERNANCE.md](./GOVERNANCE.md).
This document explains how Collaborators manage the Node.js project.
Collaborators should understand the
[guidelines for new contributors](CONTRIBUTING.md) and the
[project governance model](GOVERNANCE.md).

## Issues and Pull Requests

Expand Down Expand Up @@ -638,7 +635,7 @@ make -j4 test
git push upstream master
```

### I Just Made a Mistake
### I Made a Mistake

* Ping a TSC member.
* `#node-dev` on freenode
Expand Down
6 changes: 3 additions & 3 deletions GOVERNANCE.md
Expand Up @@ -40,7 +40,7 @@ be accepted unless:

* Discussions and/or additional changes result in no Collaborators objecting to
the change. Previously-objecting Collaborators do not necessarily have to
sign-off on the change, but they should not be opposed to it.
sign off on the change, but they should not be opposed to it.
* The change is escalated to the TSC and the TSC votes to approve the change.
This should only happen if disagreements between Collaborators cannot be
resolved through discussion.
Expand Down Expand Up @@ -115,7 +115,7 @@ The meeting chair is responsible for ensuring that minutes are taken and that a
pull request with the minutes is submitted after the meeting.

Due to the challenges of scheduling a global meeting with participants in
several timezones, the TSC will seek to resolve as many agenda items as possible
several time zones, the TSC will seek to resolve as many agenda items as possible
outside of meetings using
[the TSC issue tracker](https://github.com/nodejs/TSC/issues). The process in
the issue tracker is:
Expand All @@ -130,7 +130,7 @@ the issue tracker is:

## Consensus Seeking Process

The TSC follows a [Consensus Seeking][] decision making model as described by
The TSC follows a [Consensus Seeking][] decision-making model as described by
the [TSC Charter][].

[TSC Charter]: https://github.com/nodejs/TSC/blob/master/TSC-Charter.md
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Expand Up @@ -762,12 +762,11 @@ PKG=$(TARNAME).pkg
MACOSOUTDIR=out/macos

release-only:
@if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \
`grep -q REPLACEME doc/api/*.md`; then \
@if [ "$(DISTTYPE)" = "release" ] && `grep -q REPLACEME doc/api/*.md`; then \
echo 'Please update REPLACEME in Added: tags in doc/api/*.md (See doc/releases.md)' ; \
exit 1 ; \
fi
@if [ "$(DISTTYPE)" != "nightly" ] && [ "$(DISTTYPE)" != "next-nightly" ] && \
@if [ "$(DISTTYPE)" = "release" ] && \
`grep -q DEP00XX doc/api/deprecations.md`; then \
echo 'Please update DEP00XX in doc/api/deprecations.md (See doc/releases.md)' ; \
exit 1 ; \
Expand Down
24 changes: 13 additions & 11 deletions README.md
Expand Up @@ -44,12 +44,13 @@ When looking for support, please first search for your question in these venues:
* [Node.js Website][]
* [Node.js Help][]
* [Open or closed issues in the Node.js GitHub organization](https://github.com/issues?utf8=%E2%9C%93&q=sort%3Aupdated-desc+org%3Anodejs+is%3Aissue)
* [Questions tagged 'node.js' on StackOverflow][]

If you didn't find an answer in one of the venues above, you can:
If you didn't find an answer in one of the official resources above, you can
search these unofficial resources:

* Join the **unofficial** [#node.js channel on chat.freenode.net][]. See
<http://nodeirc.info/> for more information.
* [Questions tagged 'node.js' on StackOverflow][]
* [#node.js channel on chat.freenode.net][]. See <http://nodeirc.info/> for more
information.

GitHub issues are meant for tracking enhancements and bugs, not general support.

Expand Down Expand Up @@ -202,18 +203,17 @@ us a report nonetheless.
### Private disclosure preferred

- [CVE-2016-7099](https://nodejs.org/en/blog/vulnerability/september-2016-security-releases/):
_Fix invalid wildcard certificate validation check_. This is a high severity
defect that would allow a malicious TLS server to serve an invalid wildcard
certificate for its hostname and be improperly validated by a Node.js client.
_Fix invalid wildcard certificate validation check_. This was a high-severity
defect. It caused Node.js TLS clients to accept invalid wildcard certificates.

- [#5507](https://github.com/nodejs/node/pull/5507): _Fix a defect that makes
the CacheBleed Attack possible_. Many, though not all, OpenSSL vulnerabilities
in the TLS/SSL protocols also effect Node.js.

- [CVE-2016-2216](https://nodejs.org/en/blog/vulnerability/february-2016-security-releases/):
_Fix defects in HTTP header parsing for requests and responses that can allow
response splitting_. While the impact of this vulnerability is application and
network dependent, it is remotely exploitable in the HTTP protocol.
response splitting_. This was a remotely-exploitable defect in the Node.js
HTTP implementation.

When in doubt, please do send us a report.

Expand Down Expand Up @@ -309,6 +309,8 @@ For more information about the governance of the Node.js project, see
**Bryan English** &lt;bryan@bryanenglish.com&gt; (he/him)
* [benjamingr](https://github.com/benjamingr) -
**Benjamin Gruenbaum** &lt;benjamingr@gmail.com&gt;
* [BethGriggs](https://github.com/BethGriggs) -
**Beth Griggs** &lt;Bethany.Griggs@uk.ibm.com&gt; (she/her)
* [bmeck](https://github.com/bmeck) -
**Bradley Farias** &lt;bradley.meck@gmail.com&gt;
* [bmeurer](https://github.com/bmeurer) -
Expand Down Expand Up @@ -439,8 +441,6 @@ For more information about the governance of the Node.js project, see
**Alexis Campailla** &lt;orangemocha@nodejs.org&gt;
* [othiym23](https://github.com/othiym23) -
**Forrest L Norvell** &lt;ogd@aoaioxxysz.net&gt; (he/him)
* [phillipj](https://github.com/phillipj) -
**Phillip Johnsen** &lt;johphi@gmail.com&gt;
* [pmq20](https://github.com/pmq20) -
**Minqi Pan** &lt;pmq2001@gmail.com&gt;
* [princejwesley](https://github.com/princejwesley) -
Expand Down Expand Up @@ -538,6 +538,8 @@ For more information about the governance of the Node.js project, see
**Oleg Elifantiev** &lt;oleg@elifantiev.ru&gt;
* [petkaantonov](https://github.com/petkaantonov) -
**Petka Antonov** &lt;petka_antonov@hotmail.com&gt;
* [phillipj](https://github.com/phillipj) -
**Phillip Johnsen** &lt;johphi@gmail.com&gt;
* [piscisaureus](https://github.com/piscisaureus) -
**Bert Belder** &lt;bertbelder@gmail.com&gt;
* [rlidwka](https://github.com/rlidwka) -
Expand Down
2 changes: 1 addition & 1 deletion deps/v8/include/v8-version.h
Expand Up @@ -11,7 +11,7 @@
#define V8_MAJOR_VERSION 6
#define V8_MINOR_VERSION 2
#define V8_BUILD_NUMBER 414
#define V8_PATCH_LEVEL 72
#define V8_PATCH_LEVEL 75

// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
Expand Down
7 changes: 3 additions & 4 deletions deps/v8/src/base/debug/stack_trace_posix.cc
Expand Up @@ -72,6 +72,7 @@ const char kMangledSymbolPrefix[] = "_Z";
const char kSymbolCharacters[] =
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";

#if HAVE_EXECINFO_H
// Demangles C++ symbols in the given text. Example:
//
// "out/Debug/base_unittests(_ZN10StackTraceC1Ev+0x20) [0x817778c]"
Expand All @@ -81,7 +82,6 @@ void DemangleSymbols(std::string* text) {
// Note: code in this function is NOT async-signal safe (std::string uses
// malloc internally).

#if HAVE_EXECINFO_H

std::string::size_type search_from = 0;
while (search_from < text->size()) {
Expand Down Expand Up @@ -117,9 +117,8 @@ void DemangleSymbols(std::string* text) {
search_from = mangled_start + 2;
}
}

#endif // HAVE_EXECINFO_H
}
#endif // HAVE_EXECINFO_H

class BacktraceOutputHandler {
public:
Expand All @@ -129,6 +128,7 @@ class BacktraceOutputHandler {
virtual ~BacktraceOutputHandler() {}
};

#if HAVE_EXECINFO_H
void OutputPointer(void* pointer, BacktraceOutputHandler* handler) {
// This should be more than enough to store a 64-bit number in hex:
// 16 hex digits + 1 for null-terminator.
Expand All @@ -139,7 +139,6 @@ void OutputPointer(void* pointer, BacktraceOutputHandler* handler) {
handler->HandleOutput(buf);
}

#if HAVE_EXECINFO_H
void ProcessBacktrace(void* const* trace, size_t size,
BacktraceOutputHandler* handler) {
// NOTE: This code MUST be async-signal safe (it's used by in-process
Expand Down
2 changes: 1 addition & 1 deletion deps/v8/src/compiler/bytecode-graph-builder.cc
Expand Up @@ -475,7 +475,7 @@ Node* BytecodeGraphBuilder::Environment::Checkpoint(
BytecodeGraphBuilder::BytecodeGraphBuilder(
Zone* local_zone, Handle<SharedFunctionInfo> shared_info,
Handle<FeedbackVector> feedback_vector, BailoutId osr_offset,
JSGraph* jsgraph, CallFrequency invocation_frequency,
JSGraph* jsgraph, CallFrequency& invocation_frequency,
SourcePositionTable* source_positions, int inlining_id,
JSTypeHintLowering::Flags flags, bool stack_check)
: local_zone_(local_zone),
Expand Down
2 changes: 1 addition & 1 deletion deps/v8/src/compiler/bytecode-graph-builder.h
Expand Up @@ -28,7 +28,7 @@ class BytecodeGraphBuilder {
BytecodeGraphBuilder(
Zone* local_zone, Handle<SharedFunctionInfo> shared,
Handle<FeedbackVector> feedback_vector, BailoutId osr_offset,
JSGraph* jsgraph, CallFrequency invocation_frequency,
JSGraph* jsgraph, CallFrequency& invocation_frequency,
SourcePositionTable* source_positions,
int inlining_id = SourcePosition::kNotInlined,
JSTypeHintLowering::Flags flags = JSTypeHintLowering::kNoFlags,
Expand Down
3 changes: 2 additions & 1 deletion deps/v8/src/compiler/js-inlining.cc
Expand Up @@ -539,9 +539,10 @@ Reduction JSInliner::ReduceJSCall(Node* node) {
if (info_->is_bailout_on_uninitialized()) {
flags |= JSTypeHintLowering::kBailoutOnUninitialized;
}
CallFrequency frequency = call.frequency();
BytecodeGraphBuilder graph_builder(
zone(), shared_info, feedback_vector, BailoutId::None(), jsgraph(),
call.frequency(), source_positions_, inlining_id, flags, false);
frequency, source_positions_, inlining_id, flags, false);
graph_builder.CreateGraph();

// Extract the inlinee start/end nodes.
Expand Down
6 changes: 4 additions & 2 deletions deps/v8/src/compiler/js-operator.cc
Expand Up @@ -731,7 +731,8 @@ const Operator* JSOperatorBuilder::CallForwardVarargs(size_t arity,
parameters); // parameter
}

const Operator* JSOperatorBuilder::Call(size_t arity, CallFrequency frequency,
const Operator* JSOperatorBuilder::Call(size_t arity,
CallFrequency const& frequency,
VectorSlotPair const& feedback,
ConvertReceiverMode convert_mode) {
CallParameters parameters(arity, frequency, feedback, convert_mode);
Expand All @@ -751,7 +752,8 @@ const Operator* JSOperatorBuilder::CallWithArrayLike(CallFrequency frequency) {
}

const Operator* JSOperatorBuilder::CallWithSpread(
uint32_t arity, CallFrequency frequency, VectorSlotPair const& feedback) {
uint32_t arity, CallFrequency const& frequency,
VectorSlotPair const& feedback) {
CallParameters parameters(arity, frequency, feedback,
ConvertReceiverMode::kAny);
return new (zone()) Operator1<CallParameters>( // --
Expand Down
8 changes: 4 additions & 4 deletions deps/v8/src/compiler/js-operator.h
Expand Up @@ -192,7 +192,7 @@ CallForwardVarargsParameters const& CallForwardVarargsParametersOf(
// used as a parameter by JSCall and JSCallWithSpread operators.
class CallParameters final {
public:
CallParameters(size_t arity, CallFrequency frequency,
CallParameters(size_t arity, CallFrequency const& frequency,
VectorSlotPair const& feedback,
ConvertReceiverMode convert_mode)
: bit_field_(ArityField::encode(arity) |
Expand All @@ -201,7 +201,7 @@ class CallParameters final {
feedback_(feedback) {}

size_t arity() const { return ArityField::decode(bit_field_); }
CallFrequency frequency() const { return frequency_; }
CallFrequency const& frequency() const { return frequency_; }
ConvertReceiverMode convert_mode() const {
return ConvertReceiverModeField::decode(bit_field_);
}
Expand Down Expand Up @@ -647,12 +647,12 @@ class V8_EXPORT_PRIVATE JSOperatorBuilder final

const Operator* CallForwardVarargs(size_t arity, uint32_t start_index);
const Operator* Call(
size_t arity, CallFrequency frequency = CallFrequency(),
size_t arity, CallFrequency const& frequency = CallFrequency(),
VectorSlotPair const& feedback = VectorSlotPair(),
ConvertReceiverMode convert_mode = ConvertReceiverMode::kAny);
const Operator* CallWithArrayLike(CallFrequency frequency);
const Operator* CallWithSpread(
uint32_t arity, CallFrequency frequency = CallFrequency(),
uint32_t arity, CallFrequency const& frequency = CallFrequency(),
VectorSlotPair const& feedback = VectorSlotPair());
const Operator* CallRuntime(Runtime::FunctionId id);
const Operator* CallRuntime(Runtime::FunctionId id, size_t arity);
Expand Down
3 changes: 2 additions & 1 deletion deps/v8/src/compiler/pipeline.cc
Expand Up @@ -890,10 +890,11 @@ struct GraphBuilderPhase {
if (data->info()->is_bailout_on_uninitialized()) {
flags |= JSTypeHintLowering::kBailoutOnUninitialized;
}
CallFrequency frequency = CallFrequency(1.0f);
BytecodeGraphBuilder graph_builder(
temp_zone, data->info()->shared_info(),
handle(data->info()->closure()->feedback_vector()),
data->info()->osr_offset(), data->jsgraph(), CallFrequency(1.0f),
data->info()->osr_offset(), data->jsgraph(), frequency,
data->source_positions(), SourcePosition::kNotInlined, flags);
graph_builder.CreateGraph();
}
Expand Down