machenbach
7eccb18148
Revert of [turbofan] add MachineType to AllocatedOperand (patchset #17 id:310001 of https://codereview.chromium.org/1087793002/ )
...
Reason for revert:
[Sheriff] Breaks compile on chromium asan and v8 msan:
http://build.chromium.org/p/client.v8/builders/Linux%20ASAN%20Builder/builds/3446
http://build.chromium.org/p/client.v8/builders/V8%20Linux%20-%20arm64%20-%20sim%20-%20MSAN/builds/2085
Original issue's description:
> [turbofan] add MachineType to AllocatedOperand
>
> - allows the optimization of emitted gap move code since the representation of the value in the register is known
> - necessary preparation for vector register allocation
> - prepare for slot sharing for any value of the same byte width
>
> BUG=
>
> Committed: https://crrev.com/3a025d1ab6437559f86a464767aa03d2d9789f6f
> Cr-Commit-Position: refs/heads/master@{#28137}
TBR=jarin@chromium.org ,dcarney@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=
Review URL: https://codereview.chromium.org/1119483003
Cr-Commit-Position: refs/heads/master@{#28139}
2015-04-29 18:28:47 +00:00
mstarzinger
de88984334
[test] Remove deprecated GraphTester helper class.
...
R=bmeurer@chromium.org
TEST=cctest/test-node
Review URL: https://codereview.chromium.org/1118433002
Cr-Commit-Position: refs/heads/master@{#28138}
2015-04-29 15:16:11 +00:00
dcarney
3a025d1ab6
[turbofan] add MachineType to AllocatedOperand
...
- allows the optimization of emitted gap move code since the representation of the value in the register is known
- necessary preparation for vector register allocation
- prepare for slot sharing for any value of the same byte width
BUG=
Review URL: https://codereview.chromium.org/1087793002
Cr-Commit-Position: refs/heads/master@{#28137}
2015-04-29 14:46:19 +00:00
mstarzinger
4bc2beab97
[test] Turn compiler/test-node-cache into a unit test.
...
R=jarin@chromium.org
TEST=unittests/NodeCacheTest
Review URL: https://codereview.chromium.org/1114903002
Cr-Commit-Position: refs/heads/master@{#28136}
2015-04-29 14:40:05 +00:00
hpayer
ba55965125
Print PID and isolate address in gc traces.
...
Note, that it also moves incremental marking traces behind the --trace-incremental-marking flag.
Other PrintF's of the GC should be moved as well to PrintPIDAndIsolate.
BUG=
Review URL: https://codereview.chromium.org/1109133002
Cr-Commit-Position: refs/heads/master@{#28135}
2015-04-29 14:29:50 +00:00
mstarzinger
58b0023fa8
[test] Remove deprecated cctest/test-node-algorithm tests.
...
R=jarin@chromium.org
TEST=cctest/test-graph-visualizer
Review URL: https://codereview.chromium.org/1115603003
Cr-Commit-Position: refs/heads/master@{#28134}
2015-04-29 14:13:29 +00:00
domenic
8e2e83f0b3
Don't run macros or jsmin on extra snapshot scripts
...
js2c.py now distinguishes between the JS internal sources and any
extra scripts passed in. The latter only get validation and
comment/trailing whitespace removal applied now.
Also added a --js option to js2c.py, which will output a JS file
instead of a C++ file, for debugging. (I got tired of finding the
generated .cc file and extracting its byte array so that I could feed
it to a separate helper script I wrote.)
R=yangguo@chromium.org , jochen@chromium.org
BUG=v8:4064
LOG=N
Review URL: https://codereview.chromium.org/1117663002
Cr-Commit-Position: refs/heads/master@{#28133}
2015-04-29 14:01:44 +00:00
jochen
2d39709cf5
Remove the weak list of array buffers
...
Instead, collect live array buffers during marking and free pointers we
no longer found.
BUG=v8:3996
R=hpayer@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/1114563002
Cr-Commit-Position: refs/heads/master@{#28132}
2015-04-29 13:04:55 +00:00
dslomov
cec53692d1
Destructuring: add more parssing tests.
...
R=arv@chromium.org
BUG=v8:811
LOG=N
Review URL: https://codereview.chromium.org/1112073002
Cr-Commit-Position: refs/heads/master@{#28131}
2015-04-29 13:03:35 +00:00
balazs.kilvady
fcae49409d
MIPS: Followup 'Fix Add HArrayBufferNotNeutered instruction'.
...
Followup fix of nit discussed in Issue 1111003002.
BUG=
Review URL: https://codereview.chromium.org/1112793004
Cr-Commit-Position: refs/heads/master@{#28130}
2015-04-29 11:46:57 +00:00
titzer
1d24520c34
[turbofan] Fix returns for large-sized frames in TurboFan ia32 and x64 backends.
...
R=dcarney@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1112823002
Cr-Commit-Position: refs/heads/master@{#28129}
2015-04-29 11:32:25 +00:00
chunyang.dai
77a2c15fb4
X87: Don't MISS if you read the hole from certain FastHoley arrays.
...
port caeb9004f0
(r28056)
original commit message:
If the array's map is the initial FastHoley array map, and the array prototype
chain is undisturbed and empty of elements, then keyed loads can convert the
load of a hole to undefined.
BUG=
Review URL: https://codereview.chromium.org/1104073003
Cr-Commit-Position: refs/heads/master@{#28128}
2015-04-29 10:34:25 +00:00
jochen
9ba5fe028f
Pass ArrayBuffer::Allocator via Isolate::CreateParams
...
We shouldn't have shared state between isolates by default. The embedder
is free to pass the same allocator to all isolates it creates.
BUG=none
R=dcarney@chromium.org
LOG=y
Review URL: https://codereview.chromium.org/1116633002
Cr-Commit-Position: refs/heads/master@{#28127}
2015-04-29 09:54:43 +00:00
jkummerow
22f2b13fa8
Fix unobservable constructor replacement on prototype maps
...
BUG=chromium:478522
LOG=y
R=verwaest@chromium.org
Review URL: https://codereview.chromium.org/1097113003
Cr-Commit-Position: refs/heads/master@{#28126}
2015-04-29 09:31:51 +00:00
mstarzinger
e7292b3c1a
[turbofan] Correctly handle illegal redeclarations.
...
R=titzer@chromium.org
TEST=mjsunit/const-redecl
Review URL: https://codereview.chromium.org/1115613002
Cr-Commit-Position: refs/heads/master@{#28125}
2015-04-29 09:22:45 +00:00
jkummerow
fefe91ce6a
Fix stale pointer issue in heap snapshot generator
...
Review URL: https://codereview.chromium.org/1109153002
Cr-Commit-Position: refs/heads/master@{#28124}
2015-04-29 09:03:15 +00:00
ulan
98390a07a5
Add comment to justify AllowDeferredHandleDereference in WeakCell factory.
...
BUG=
Review URL: https://codereview.chromium.org/1110373002
Cr-Commit-Position: refs/heads/master@{#28123}
2015-04-29 08:36:11 +00:00
machenbach
38a8d369b7
[test] Skip tests on msan.
...
NOTRY=true
BUG=chromium:425187
LOG=n
TBR=Sven Panne, titzer
Review URL: https://codereview.chromium.org/1110903004
Cr-Commit-Position: refs/heads/master@{#28122}
2015-04-29 07:19:59 +00:00
machenbach
4c1f9d53cf
Revert of deprecate non-phantom weak callbacks (patchset #1 id:1 of https://codereview.chromium.org/1103173002/ )
...
Reason for revert:
[Sheriff] This is still used and now blocks the roll here:
http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/47889
Original issue's description:
> Reland: deprecate non-phantom weak callbacks
>
> BUG=
>
> Committed: https://crrev.com/3be656fb55ad49834ec8ec0a57ba858bb1b21f37
> Cr-Commit-Position: refs/heads/master@{#28094}
TBR=jochen@chromium.org ,dcarney@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=
Review URL: https://codereview.chromium.org/1117623002
Cr-Commit-Position: refs/heads/master@{#28121}
2015-04-29 05:57:15 +00:00
svenpanne
bc7f79a670
Calculate blocks needing a frame and frame (de)construction sites.
...
Review URL: https://codereview.chromium.org/1053123006
Cr-Commit-Position: refs/heads/master@{#28120}
2015-04-29 05:54:52 +00:00
v8-autoroll
7b9debd09b
Update V8 DEPS.
...
Rolling v8/tools/clang to 44f7f0bbbce9e581d9328e80d5b0ae88efbc3db4
TBR=machenbach@chromium.org
Review URL: https://codereview.chromium.org/1108203005
Cr-Commit-Position: refs/heads/master@{#28119}
2015-04-29 03:28:48 +00:00
mbrandy
f76fd06d11
Fix JSArrayBuffer for big endian.
...
BUG=
R=jochen@chromium.org , dcarney@chromium.org , dstence@us.ibm.com , michael_dawson@ca.ibm.com
Review URL: https://codereview.chromium.org/1108373002
Cr-Commit-Position: refs/heads/master@{#28118}
2015-04-28 20:00:52 +00:00
balazs.kilvady
29bee1604f
MIPS: Fix 'Add HArrayBufferNotNeutered instruction'.
...
BUG=
Review URL: https://codereview.chromium.org/1111003002
Cr-Commit-Position: refs/heads/master@{#28117}
2015-04-28 17:20:57 +00:00
mbrandy
b108f4615c
PPC: Fix HArrayBufferNotNeutered instruction
...
Fix faulty condition register usage after andi.
BUG=
R=dstence@us.ibm.com , michael_dawson@ca.ibm.com , jochen@chromium.org , bmeurer@chromium.org
Review URL: https://codereview.chromium.org/1108363002
Cr-Commit-Position: refs/heads/master@{#28116}
2015-04-28 17:19:46 +00:00
arv
525f7c85b9
Import webkit class tests
...
BUG=v8:3330
LOG=N
Review URL: https://codereview.chromium.org/1109783003
Cr-Commit-Position: refs/heads/master@{#28115}
2015-04-28 16:42:46 +00:00
arv
baddc25eb2
[es6] Fix return checking in derived constructors
...
In a derived class constructor in case undefined is returned, we
should return the receiver. If the return is any other value type
we should throw a TypeError.
BUG=v8:4061
LOG=N
R=dslomov@chromium.org , adamk@chromium.org
Review URL: https://codereview.chromium.org/1107203002
Cr-Commit-Position: refs/heads/master@{#28114}
2015-04-28 16:09:30 +00:00
paul.lind
a601987024
MIPS: Fix FP load/store with large offsets from base register.
...
BUG=481519
LOG=y
Review URL: https://codereview.chromium.org/1111633002
Cr-Commit-Position: refs/heads/master@{#28113}
2015-04-28 15:42:33 +00:00
dslomov
80bf5686fa
Parsing binding patterns.
...
Just parsing, no desugaring yet.
R=arv@chromium.org ,rossberg@chromium.org
BUG=v8:811
LOG=N
Review URL: https://codereview.chromium.org/1107053002
Cr-Commit-Position: refs/heads/master@{#28112}
2015-04-28 15:15:09 +00:00
domenic
f39707cd96
Use "define" instead of "const" for natives macros
...
The use of "const" prevented the actual JavaScript const keyword from
functioning as intended.
R=jochen@chromium.org ,yangguo@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1110963003
Cr-Commit-Position: refs/heads/master@{#28111}
2015-04-28 14:58:25 +00:00
domenic
8a89a4a5ce
Allow extra library files to be snapshotted
...
BUG=
R=jochen@chromium.org , yangguo@chromium.org
Review URL: https://codereview.chromium.org/1113593002
Cr-Commit-Position: refs/heads/master@{#28110}
2015-04-28 14:56:07 +00:00
jochen
a2e6f970c7
Add HArrayBufferNotNeutered instruction
...
This instruction can be hoisted out of loops even though it contains a branch.
BUG=v8:3996
R=bmeurer@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/1108313003
Cr-Commit-Position: refs/heads/master@{#28109}
2015-04-28 13:43:03 +00:00
Jochen Eisinger
31dae36f28
Add missing stdlib include for sample
...
BUG=none
R=machenbach@chromium.org , machenbach@chromium.or
LOG=n
Review URL: https://codereview.chromium.org/1113563002
Cr-Commit-Position: refs/heads/master@{#28108}
2015-04-28 12:29:16 +00:00
hpayer
309c082a73
Shrink new space and uncommit from space in idle notification during long idle times.
...
BUG=chromium:481811
LOG=n
Review URL: https://codereview.chromium.org/1108133003
Cr-Commit-Position: refs/heads/master@{#28107}
2015-04-28 12:17:55 +00:00
scottmg
bb940247d9
Update _MSC_FULL_VER for 'final' RC bug workaround
...
Repeat of https://codereview.chromium.org/1084763002/ .
The 'final' RC has changed the version number, but the bug will not be
fixed until RTM.
LOG=N
R=jochen@chromium.org
BUG=chromium:440500
Review URL: https://codereview.chromium.org/1108193002
Cr-Commit-Position: refs/heads/master@{#28106}
2015-04-28 11:33:12 +00:00
jochen
b584bab2f5
Remove support for malloc'd typed arrays
...
All typed arrays should be allocated through the array buffer allocator
BUG=none
R=dcarney@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/1110603005
Cr-Commit-Position: refs/heads/master@{#28105}
2015-04-28 11:24:55 +00:00
conradw
6988aec61f
[strong] Disallow implicit conversions for bitwise ops, shifts
...
See https://codereview.chromium.org/1092353002/
Due to parser rewrites, also implements restrictions for unary ~.
Still to come, implementing restrictions for binary + and comparison.
BUG=v8:3956
LOG=N
Review URL: https://codereview.chromium.org/1102923002
Cr-Commit-Position: refs/heads/master@{#28104}
2015-04-28 11:19:49 +00:00
machenbach
b3000dda14
[test] Skip unsuitable tests for msan.
...
NOTRY=true
BUG=chromium:425187
LOG=n
TBR=Sven Panne, titzer
Review URL: https://codereview.chromium.org/1107323003
Cr-Commit-Position: refs/heads/master@{#28103}
2015-04-28 11:18:12 +00:00
yangguo
46b3582f48
Reland: Preprocess structured stack trace on GC to get rid of code reference.
...
BUG=v8:2340
LOG=N
Review URL: https://codereview.chromium.org/1109093002
Cr-Commit-Position: refs/heads/master@{#28102}
2015-04-28 11:12:56 +00:00
jkummerow
6270b797bc
Only try to unregister prototype users that are prototypes themselves
...
Because only such maps would have been registered in the first place.
This is a performance fix/followup to f6187fb3b5
/ r28076.
BUG=chromium:481785
LOG=n
R=yangguo@chromium.org
Review URL: https://codereview.chromium.org/1105063003
Cr-Commit-Position: refs/heads/master@{#28101}
2015-04-28 11:02:18 +00:00
ssid
0a1352a716
Extending v8::GetHeapStatistics to return total available size.
...
For dumping memory statistics about v8 heap, we need the total
available size of the heap. This CL adds extra field in HeapStatistics
to return the available size.
BUG=476013
LOG=Y
Review URL: https://codereview.chromium.org/1104123002
Cr-Commit-Position: refs/heads/master@{#28100}
2015-04-28 10:57:15 +00:00
dcarney
12350f16b8
[turbofan] Cleanup LiveRange a bit.
...
Review URL: https://codereview.chromium.org/1111563004
Cr-Commit-Position: refs/heads/master@{#28099}
2015-04-28 09:59:27 +00:00
jochen
1630253f93
Turn JSArrayBuffer::flags into a bit field
...
That way, we can access it more easily without all the smi magic
BUG=none
R=dcarney@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/1112503002
Cr-Commit-Position: refs/heads/master@{#28098}
2015-04-28 09:40:07 +00:00
machenbach
4b95b9bb32
[test] Restrict msan to default variant.
...
NOTRY=true
BUG=chromium:425187
LOG=n
TBR=Sven Panne, titzer
Review URL: https://codereview.chromium.org/1110923002
Cr-Commit-Position: refs/heads/master@{#28097}
2015-04-28 09:05:11 +00:00
ofrobots
1f03256de3
fix assertion in Logger::CurrentTimeEvent with --prof
...
assertion did match the conditions under which this method gets called
(Runtime_DateCurrentTime). The bug got introduced as part of this change:
https://codereview.chromium.org/802333002
The assertion crash can be reproduced using:
% out/Debug/d8 --prof -e 'new Date();'
R=jkummerow@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1104303002
Cr-Commit-Position: refs/heads/master@{#28096}
2015-04-28 08:53:49 +00:00
yangguo
4d12e94801
Port CallSite methods to C++.
...
The goal is to port all of error stack trace formatting to C++.
We will do this bottom up, by first porting helper functions.
Eventually, CallSite methods will only be used when a custom
error stack trace formatter is defined via Error.prepareStackTrace.
R=jkummerow@chromium.org
Review URL: https://codereview.chromium.org/1060583008
Cr-Commit-Position: refs/heads/master@{#28095}
2015-04-28 08:52:47 +00:00
dcarney
3be656fb55
Reland: deprecate non-phantom weak callbacks
...
BUG=
Review URL: https://codereview.chromium.org/1103173002
Cr-Commit-Position: refs/heads/master@{#28094}
2015-04-28 08:31:24 +00:00
bmeurer
4486c47d9b
[clang] Use -Wshorten-64-to-32 to enable warnings about 64bit to 32bit truncations.
...
Currently only the Win64 bots report this warnings, which adds quite
some overhead to the development process. With this flag we also get
compiler warnings about implicit 64bit to 32bit truncations when
building with clang on Linux/x64 and Mac/x64.
R=svenpanne@chromium.org
Review URL: https://codereview.chromium.org/1111733002
Cr-Commit-Position: refs/heads/master@{#28093}
2015-04-28 06:53:41 +00:00
bmeurer
ef15f83bc3
[turbofan] Better fix for Win64 after r28066.
...
TBR=svenpanne@chromium.org
Review URL: https://codereview.chromium.org/1107253003
Cr-Commit-Position: refs/heads/master@{#28092}
2015-04-28 05:09:01 +00:00
v8-autoroll
2613b7fb63
Update V8 DEPS.
...
Rolling v8/tools/clang to 5df4027be48d44a72ef035978746aac46184720e
TBR=machenbach@chromium.org
Review URL: https://codereview.chromium.org/1105343002
Cr-Commit-Position: refs/heads/master@{#28091}
2015-04-28 03:27:32 +00:00
chunyang.dai
e31f5ec7eb
Disable two test cases for turbofan unsupported platform.
...
These two test cases "InlineCreateArrayLiteral" and "InlineCreateObjectLiteral" are
added in d1597b7d22
. They invokes Linkage::GetStubCallDescriptor
which is unimplemented for turbofan unsupported platform.
BUG=
Review URL: https://codereview.chromium.org/1095793007
Cr-Commit-Position: refs/heads/master@{#28090}
2015-04-27 17:02:27 +00:00