ishell@chromium.org
220fa8ea08
More set_map() calls replaced with MigrateToMap().
...
R=verwaest@chromium.org
Review URL: https://codereview.chromium.org/338793004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21983 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 14:53:48 +00:00
hpayer@chromium.org
776a65684a
Promote objects if semi-space copy fails while scavenging.
...
BUG=388188
LOG=N
R=jarin@chromium.org
Review URL: https://codereview.chromium.org/351853006
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21980 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 14:30:22 +00:00
jochen@chromium.org
0323525d1b
Initialize the Isolate's use_counter_callback_ member
...
BUG=none
R=marja@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/345363003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21975 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 14:13:15 +00:00
marja@chromium.org
62ffc7de20
New try: Parser: Delay internalizing strings and values
...
This is a reincarnation of r21841.
The previous try was https://codereview.chromium.org/314603004/ but it regressed
JSBench and morejs.
BUG=
R=rossberg@chromium.org
Review URL: https://codereview.chromium.org/335293004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21972 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 14:03:24 +00:00
yangguo@chromium.org
256d406c73
Revert assertion change from r21933 in Isolate::RunMicrotasks().
...
R=marja@chromium.org
Review URL: https://codereview.chromium.org/357453002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21971 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 13:58:56 +00:00
jkummerow@chromium.org
426061d3d0
Sync 'git cl presubmit' and 'tools/presubmit.py'
...
More precisely, add CheckGeneratedRuntimeTests to checks performed by
'git cl presubmit'.
R=machenbach@chromium.org
Review URL: https://codereview.chromium.org/352583005
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21970 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 13:56:54 +00:00
machenbach@chromium.org
9d58d1428a
Whitespace change to trigger bots.
...
BUG=
TBR=jkummerow@chromium.org
Review URL: https://codereview.chromium.org/348583004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21969 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 13:55:26 +00:00
Jacob.Bramley@arm.com
cb3c7a0db9
ARM: optimize Lithium Allocate
...
R=ulan@chromium.org , bmeurer@chromium.org
BUG=
Review URL: https://codereview.chromium.org/331993004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21968 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 12:54:59 +00:00
jochen@chromium.org
8a21855b7f
Don't list platform-posix.cc twice on android
...
BUG=387326
R=marja@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/350893002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21967 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 12:41:17 +00:00
baptiste.afsa@arm.com
f10c5574b0
ARM64: Enable low level profiling.
...
R=ulan@chromium.org
Review URL: https://codereview.chromium.org/353643003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21965 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 12:40:20 +00:00
marja@chromium.org
9e121d0d5d
Remove unused variables from assembler-arm.cc.
...
Local arm.debug build with make fails - not sure why arm build doesn't fail on
the waterfall.
R=rmcilroy@chromium.org
BUG=
Review URL: https://codereview.chromium.org/337273003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21964 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 12:20:12 +00:00
Jacob.Bramley@arm.com
63b3d1358c
ARM: Fix inline assembly (r21949) for Clang.
...
Add a 'c' predicate to the immediate syscall number. This tells the
compiler to omit the leading '#' that immediates usually have in ARM.
The GNU assembler tolerates "ldr r7, =#1234" but Clang does not.
BUG=V8:3403
LOG=N
R=bmeurer@chromium.org
Review URL: https://codereview.chromium.org/356463004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21963 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 11:26:48 +00:00
svenpanne@chromium.org
52fa41c3df
Make Object::IsFoo const.
...
Removed a few useless const_casts on the way.
R=mstarzinger@chromium.org
Review URL: https://codereview.chromium.org/351573002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21961 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 09:47:25 +00:00
yangguo@chromium.org
3563b7095a
Fix a potential overflow in SortedListBSearch
...
R=yangguo@chromium.org
Review URL: https://codereview.chromium.org/344513004
Patch from Jianghua Yang <jianghua.jhy@alibaba-inc.com>.
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21960 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 09:37:51 +00:00
yangguo@chromium.org
58bf19e9d5
Remove bogus assertions in HCompareObjectEqAndBranch.
...
R=jkummerow@chromium.org , danno@chromium.org
BUG=387636
LOG=Y
Review URL: https://codereview.chromium.org/331863015
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21959 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 09:33:05 +00:00
yangguo@chromium.org
438f49a322
Do not eagerly update allow_osr_at_loop_nesting_level.
...
Having debug break points prevents OSR. That causes
allow_osr_at_loop_nesting_level and the actually patched state
to go out of sync.
R=jkummerow@chromium.org
BUG=387599
LOG=Y
Review URL: https://codereview.chromium.org/346223007
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21958 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 09:31:30 +00:00
Jacob.Bramley@arm.com
00617033dd
ARM64: Clean up LiveEdit.
...
BUG=
R=yangguo@chromium.org
Review URL: https://codereview.chromium.org/349973007
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21957 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 08:16:33 +00:00
jochen@chromium.org
bab70ca936
Set host_arch to ia32 on machines with a 32bit userland but a 64bit kernel.
...
I don't know if there are any v8 bots with that configuration, but it seems
like a good idea to have v8 be consistent with chromium and nacl here, so that
this works fine if such a bot is ever set up.
This is similar to https://codereview.chromium.org/342493002/ , but with a
detect_v8_host_arch.py script that handles the additional machine types that
standalone.gypi used to handle.
Originally reviewed at https://codereview.chromium.org/346643002/
BUG=368384
LOG=Y
R=jochen@chromium.org
Review URL: https://codereview.chromium.org/349333006
Patch from Nico Weber <thakis@chromium.org>.
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21956 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 07:12:48 +00:00
haitao.feng@intel.com
5970d4fa10
Add X32 port into V8
...
R=verwaest@chromium.org
Review URL: https://codereview.chromium.org/18014003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21955 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 05:27:44 +00:00
haitao.feng@intel.com
88e8db4d41
Update GetNextSpillIndex to support x32 port.
...
R=verwaest@chromium.org
Review URL: https://codereview.chromium.org/324253004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21954 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 03:41:45 +00:00
haitao.feng@intel.com
d8b5940abd
Change some cmpq to cmpp, times_8 to times_pointer_size for x32 port.
...
R=verwaest@chromium.org
Review URL: https://codereview.chromium.org/334793003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21953 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-24 03:39:54 +00:00
adamk@chromium.org
257adcf0ed
Map/Set: Implement constructor parameter handling
...
When an iterable object is passed in as the argument to the Map and Set
constructor the elements of the iterable object are used to populate the
Map and Set.
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-map-iterable
http://people.mozilla.org/~jorendorff/es6-draft.html#sec-set-iterable
BUG=v8:3398
LOG=Y
R=rossberg@chromium.org
Review URL: https://codereview.chromium.org/345613003
Patch from Erik Arvidsson <arv@chromium.org>.
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21950 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 18:05:57 +00:00
Jacob.Bramley@arm.com
6b264de751
ARM: Clean up FlushICache.
...
In theory, the Thumb version of FlushICache doesn't have to be any
different from the ARM version: There is no need to switch to ARM mode
for the svc, and r7 can be used just like any other register.
In practice, GCC uses r7 as a frame pointer in Thumb code, and it
refuses to allow it be used in inline assembly. To avoid complicated
checks to determine whether or not it is possible to use it directly,
the FlushICache function explicitly preserves r7.
R=ulan@chromium.org
Review URL: https://codereview.chromium.org/335133002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21949 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 17:30:00 +00:00
kilvadyb@homejinni.com
61f2fa88e8
MIPS: Fix comment in r21905: "Support LiveEdit."
...
BUG=
R=plind44@gmail.com
Review URL: https://codereview.chromium.org/345243005
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21948 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 17:17:01 +00:00
Jacob.Bramley@arm.com
d8120bbcde
Fix #include order in snapshot-external.cc
...
This corrects a linter complaint.
BUG=
R=mstarzinger@chromium.org , vogelheim@chromium.org
Review URL: https://codereview.chromium.org/351643002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21947 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 17:16:07 +00:00
kilvadyb@homejinni.com
6ca66800fd
MIPS: Introduce intrinsic to expose debug state to generated code.
...
Port r21908 (527abba)
BUG=
R=plind44@gmail.com
Review URL: https://codereview.chromium.org/343193005
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21946 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 16:49:52 +00:00
Jacob.Bramley@arm.com
add767f139
ARM64: Optimize generated code for gaps
...
R=ulan@chromium.org , jochen@chromium.org
Review URL: https://codereview.chromium.org/268673003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21945 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 16:00:53 +00:00
machenbach@chromium.org
5af69a1bb9
Add PROJECT to v8
...
BUG=374398
R=machenbach@chromium.org
Review URL: https://codereview.chromium.org/344163005
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21944 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 15:33:19 +00:00
mvstanton@chromium.org
41e2dc7063
Revert "Create a RegisterSpec class inside of the IC that provides:"
...
This reverts commit r21939 due to a static initializer issue.
TBR=marja@chromium.org
Review URL: https://codereview.chromium.org/339663008
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21943 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 14:28:38 +00:00
ishell@chromium.org
f73e033be7
Map::MigrateToMap() now supports fast case (transition from a map that has run out of property space).
...
R=verwaest@chromium.org
Review URL: https://codereview.chromium.org/347413002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21942 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 14:23:25 +00:00
vogelheim@chromium.org
7b7bb25a24
Support external startup data in V8.
...
[Re-retry of r21696 and r21739]
If the embedder chooses, the 'natives' (library sources) and the
precompiled startup blob can be written to files during the build
process and handed over to V8 at startup. The main purpose would be
to reduce the size of the compiled binary for space constrained
platforms.
The build-time option is off by default. Nothing should change if
it's not enabled.
BUG=
R=jochen@chromium.org
Review URL: https://codereview.chromium.org/334913004
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21941 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 13:52:17 +00:00
ishell@chromium.org
d2f229bf9f
Several methods moved from JSObject to Map.
...
R=verwaest@chromium.org
Review URL: https://codereview.chromium.org/349203002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21940 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 13:46:49 +00:00
mvstanton@chromium.org
b3f8487726
Create a RegisterSpec class inside of the IC that provides:
...
1) symbolic names for the register (like, edx == receiver)
2) can return an array of registers
3) defines ordering when passed on the stack
Code that implements or uses the IC should use this RegisterSpec instead of "knowing" what the registers are. Or at least have the RegisterSpec to validate it's assumptions.
R=jkummerow@chromium.org
Review URL: https://codereview.chromium.org/340363002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21939 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 13:42:12 +00:00
jochen@chromium.org
23521436fb
Partial revert of r21901 (2nd attempt)
...
Only disable runtime check for sse2 if __SSE2__ is not defined. This
is required for the x87 port
BUG=none
LOG=n
R=jkummerow@chromium.org
Review URL: https://codereview.chromium.org/331803006
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21938 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 13:30:03 +00:00
alph@chromium.org
f61854fe0a
Support LiveEdit on Arm64
...
BUG=368580
LOG=Y
R=yangguo@chromium.org
Review URL: https://codereview.chromium.org/339663007
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21937 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 13:20:26 +00:00
yangguo@chromium.org
2411bc9447
Harden %FunctionBindArguments wrt optimized code cache.
...
R=jkummerow@chromium.org
BUG=387627
LOG=N
Review URL: https://codereview.chromium.org/345463005
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21936 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 13:17:42 +00:00
rmcilroy@chromium.org
7f429e62c3
[Arm]: Simplify compile-time Arm feature detection.
...
Simplify the compile time feature detection on Arm:
- Define CAN_USE_XXX definitions unconditionally for all target/host
toolchain combinations
- Rename arm_test / ARM_TEST to arm_test_noprob / ARM_TEST_NO_FEATURE_PROBE
- Don't set ARM_TEST_NO_FEATURE_PROBE implicitly on the simulator to make
make simulator / native more consistent
- Unify CpuFeatures::PrintTarget for simulator and native builds
- Remove unecessary CAN_USE_VFP_INSTRUCTIONS definition for android (this is
the default for arm_fpu=default)
- Add a CpuFeatures::Probe() before calling CpuFeatures::PrintFeatures() in PrintHelp
to ensure we have probed features before printing them.
BUG=384474
LOG=N
R=jkummerow@chromium.org
Review URL: https://codereview.chromium.org/340373002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21935 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 12:19:54 +00:00
rmcilroy@chromium.org
a818a3e7fa
Special case ConstantPoolArray in MarkCompactCollector::MigrateObject.
...
Special case the ConstantPoolArray in MarkCompactCollector::MigrateObject since it could contain
integer value entires which look like tagged pointers.
R=hpayer@chromium.org , mstarzinger@chromium.org
Review URL: https://codereview.chromium.org/304223002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21934 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 12:18:13 +00:00
yangguo@chromium.org
9e3ba659d9
Run JS micro tasks in the appropriate context.
...
R=jochen@chromium.org
BUG=385349
LOG=Y
Review URL: https://codereview.chromium.org/332923003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21933 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 11:47:20 +00:00
rmcilroy@chromium.org
1b080a76c1
[Arm] Various cleanups to the Arm assembler backend.
...
A couple of cleanups to the Arm backend to enable support of extended
OOL constant pools in a following CL.
- Remove instruction pattern extern const's and replace their use with IsXXX()
functions.
- Do calculation of the target address of a load from constant pool in one
place.
- A couple of other small cleanups.
R=ulan@chromium.org
Review URL: https://codereview.chromium.org/317653003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21932 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 11:27:24 +00:00
verwaest@chromium.org
b0d3b668dd
Tiny cleanup, reduce direct usage of the LookupIterator
...
BUG=
R=ishell@chromium.org
Review URL: https://codereview.chromium.org/346233003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21931 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 10:44:08 +00:00
verwaest@chromium.org
e976bfa159
Don't bypass the global proxy as the global object should never escape into JS
...
BUG=
R=yangguo@chromium.org
Review URL: https://codereview.chromium.org/334233003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21930 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 10:42:49 +00:00
verwaest@chromium.org
499ae77e18
Ensure the receiver for EnableAccessCheck is always a JSObject
...
BUG=
TBR=dcarney@chromium.org
Review URL: https://codereview.chromium.org/349923005
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21929 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 10:35:58 +00:00
marja@chromium.org
5ef3f06029
Revert "Partial revert of r21901"
...
This reverts r21927.
Reason: broke the build.
BUG=
TBR=jochen@chromium.org , bmeurer@chromium.org
Review URL: https://codereview.chromium.org/347423002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21928 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 10:31:12 +00:00
jochen@chromium.org
2880181fb8
Partial revert of r21901
...
Only disable runtime check for sse2 if __SSE2__ is not defined. This
is required for the x87 port
BUG=none
LOG=n
R=jkummerow@chromium.org
Review URL: https://codereview.chromium.org/350693005
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21927 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 10:18:43 +00:00
verwaest@chromium.org
064885b62d
Turn assert into RUNTIME_ASSERT
...
TBR=dcarney@chromium.org
BUG=
Review URL: https://codereview.chromium.org/350683003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21926 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 09:52:05 +00:00
jochen@chromium.org
ce02221828
Add a use counter API
...
This lets embedders track certain features of v8 and the number of times
they are used
BUG=none
R=svenpanne@chromium.org , marja@chromium.org
LOG=y
Review URL: https://codereview.chromium.org/346233002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21925 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 09:46:58 +00:00
rodolph.perfetta@arm.com
ec22430733
ARM64: updated literal pool implementation.
...
Currently the literal pool implemetation is inherited from the arm 32-bit port
and it shares the same limitations: 4k of range and 1000 entries max. In arm64
the load literal has a 1MB range giving us more flexibility.
Immutable entries are now shared.
BUG=
R=rmcilroy@chromium.org
Review URL: https://codereview.chromium.org/338523005
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21924 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 09:30:45 +00:00
weiliang.lin@intel.com
16d5587c6d
X87: Introduce intrinsic to expose debug state to generated code.
...
port r21908.
original commit message:
BUG=
R=weiliang.lin@intel.com
Review URL: https://codereview.chromium.org/349183002
Patch from Chunyang Dai <chunyang.dai@intel.com>.
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21923 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 09:17:04 +00:00
verwaest@chromium.org
bd5f13ebc3
Remove specialized access checks and overwrites altogether. They are already handled by GetOwnPropertyAttributes (and GetPropertyAttributesWithFailedAccessChecks)
...
BUG=
R=dcarney@chromium.org
Review URL: https://codereview.chromium.org/331693006
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21922 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-06-23 09:11:45 +00:00