dcarney
a338f2738a
drop interalization of strings entering global constant slots
...
BUG=
Review URL: https://codereview.chromium.org/1110393003
Cr-Commit-Position: refs/heads/master@{#28155}
2015-04-30 10:50:49 +00:00
yangguo
7681432dbf
JSON serializer should fail gracefully for special value wrappers.
...
R=mstarzinger@chromium.org
BUG=chromium:471702
LOG=N
Review URL: https://codereview.chromium.org/1120573002
Cr-Commit-Position: refs/heads/master@{#28154}
2015-04-30 10:02:21 +00:00
bmeurer
b9d583d581
[turbofan] Don't spread global flag checks all over the compiler code.
...
Better encapsulate the source position handling in TurboFan.
R=svenpanne@chromium.org
Review URL: https://codereview.chromium.org/1105363003
Cr-Commit-Position: refs/heads/master@{#28153}
2015-04-30 09:56:31 +00:00
Jochen Eisinger
66f428dd37
Bump Isolate::New back to deprecate soon
...
R=machenbach@chromium.org
TBR=machenbach@chromium.org
Review URL: https://codereview.chromium.org/1115133002
Cr-Commit-Position: refs/heads/master@{#28152}
2015-04-30 09:44:55 +00:00
domenic
a34bbef314
Show function <name>() { [native code] } for built-in classes
...
The existing logic would show the full source for all classes, even
built-in ones.
R=arv@chromium.org ,dslomov@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1112113002
Cr-Commit-Position: refs/heads/master@{#28151}
2015-04-30 09:29:39 +00:00
svenpanne
4b122b7504
Detect simple tail calls
...
This CL contains the first steps towards tail call optimization:
* Structurally detect tail calls during instruction selection,
looking for special return/call combinations.
* Added new architecture-specific instructions for tail calls which
jump instead of call and take care of frame adjustment.
* Moved some code around.
Currently we restrict tail calls to callees which only use registers
for arguments/return value and to call sites which are explicitly
marked as being OK for tail calls. This excludes, among other things,
call sites in sloppy JS functions and our IC machinery (both need in
general to be able to access the caller's frame).
All this is behind a flag --turbo-tail-calls, which is currently off
by default, so it can easily be toggled.
Review URL: https://codereview.chromium.org/1108563002
Cr-Commit-Position: refs/heads/master@{#28150}
2015-04-30 09:10:28 +00:00
machenbach
ab25d39349
[test] Add avx2 bot to CQ.
...
BUG=chromium:478460
LOG=n
NOTRY=true
TBR=bmeurer@chromium.org , mvstanton@chromium.org
Review URL: https://codereview.chromium.org/1107973007
Cr-Commit-Position: refs/heads/master@{#28149}
2015-04-30 08:47:49 +00:00
machenbach
3e25666c79
Revert of Remove the weak list of array buffers (patchset #8 id:140001 of https://codereview.chromium.org/1114563002/ )
...
Reason for revert:
[Sheriff] Crashes in layout tests:
https://chromegw.corp.google.com/i/client.v8/builders/V8-Blink%20Linux%2064%20%28dbg%29/builds/2668
Original issue's description:
> 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
>
> Committed: https://crrev.com/2d39709cf5ee17637f6f2d75380a9e61ae0b342b
> Cr-Commit-Position: refs/heads/master@{#28132}
TBR=dslomov@chromium.org ,hpayer@chromium.org,jochen@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=v8:3996
Review URL: https://codereview.chromium.org/1115043005
Cr-Commit-Position: refs/heads/master@{#28148}
2015-04-30 08:38:24 +00:00
bmeurer
cf420ec337
[base] Drop obsolete Thread::YieldCPU.
...
The method is not used anywhere, and it is a bad idea in general anyway.
If you see a need to call YieldCPU, then you're code is probably in need
of a redesign!
R=svenpanne@chromium.org
Review URL: https://codereview.chromium.org/1116853002
Cr-Commit-Position: refs/heads/master@{#28147}
2015-04-30 08:08:54 +00:00
domenic
f47f88ad0e
Add shift to InternalArray and InternalPackedArray
...
It's useful for queue-like data structures.
R=yangguo@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1117713002
Cr-Commit-Position: refs/heads/master@{#28146}
2015-04-30 08:07:21 +00:00
michael_dawson
3fa1b606fd
Fix AIX compiler warning
...
Fix AIX compiler warning indicating that variable may not be
initialized
modified: src/heap/heap.cc
R=danno@chromium.org , svenpanne@chromium.org , mbrandy@us.ibm.com
BUG=
Review URL: https://codereview.chromium.org/1112883002
Cr-Commit-Position: refs/heads/master@{#28145}
2015-04-30 08:01:58 +00:00
michael_dawson
41cb1e51b9
Switch to larger TOC on AIX for unitttests
...
Switch to larger TOC on AIX for unitttests as the size has grown
such that it no longer compiles with the default TOC size
modified: unittests.gyp
R=danno@chromium.org , svenpanne@chromium.org , mbrandy@us.ibm.com
BUG=
Review URL: https://codereview.chromium.org/1115763003
Cr-Commit-Position: refs/heads/master@{#28144}
2015-04-30 07:50:27 +00:00
Djordje.Pesic
9da34c56a1
MIPS: Add rounding support in simulator and RINT instruction.
...
Added rounding according to fcsr, CVT_W_D and RINT.D instruction in assembler, dissasembler and simulator and wrote appropiate tests.
BUG=
Review URL: https://codereview.chromium.org/1108583003
Cr-Commit-Position: refs/heads/master@{#28143}
2015-04-30 06:29:16 +00:00
machenbach
4b8bb5ed1e
[test-runner] Enable specification of trybots.
...
Now it's possible to specify the desired trybots for perf
tries, e.g.:
tools/try_perf.py --linux64_haswell octane sunspider
BUG=chromium:478460
LOG=n
NOTRY=true
Review URL: https://codereview.chromium.org/1114913002
Cr-Commit-Position: refs/heads/master@{#28142}
2015-04-30 05:12:42 +00:00
v8-autoroll
4d842b72a9
Update V8 DEPS.
...
Rolling v8/build/gyp to 0bb67471bca068996e15b56738fa4824dfa19de0
Rolling v8/buildtools to 15f5fc6fdb1795e2b99f66e5bc6c01e9fb62b436
TBR=machenbach@chromium.org
Review URL: https://codereview.chromium.org/1110063010
Cr-Commit-Position: refs/heads/master@{#28141}
2015-04-30 03:33:01 +00:00
dcarney
81345f1a2c
Reland: [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
TBR=jarin@chromium.org
BUG=
Review URL: https://codereview.chromium.org/1111323003
Cr-Commit-Position: refs/heads/master@{#28140}
2015-04-29 19:36:25 +00:00
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