MIPS64: Add missing TODO on use of li CONSTANT_SIZE.
MIPS64: Fix wrong activiation of trace-sim with high instr counts.

Change sim icount_ to int64_t to prevent rollover, which incorrectly
activated trace-sim mode, due to trace-sim-at flag being 0 when
unused.

Leave FLAG_trace_sim_at as 'int' for now, and just cast to int64_t.
My use cases have never needed a trace-sim count greater than 2
billion instuctions.

Changing FLAG_trace_sim_at to int64 would require adding new
flag types in flag-definitions, and possibly new command-line
parsing code. It's only worth doing if we actually need it.

BUG=gh-77
TEST=v8 benchmarks
MIPS64: Fix accessor calls in simulator.

TEST = accessors tests in cctest
BUG =

(cherry picked from commit 2254f7df6d2f619951ca6f9d38daf7d74eccbeb6)
MIPS64: Fix LoadRegPlusOffsetToAt() and kInterruptLimit.
MIPS64: Fix DoMulI() and DoModI().

TEST: mjsunit/date-parse  mjsunit/div-mod
MIPS64: Fix register use of float-point argument with n64.

TEST: mjsunit/div-mod mjsunit/mod etc..
MIPS64: Tweak Yuyin's abi fix to support both abi's.
MIPS: Fix zlib critical performance regression.

The very low score on zlib benchmark is caused by
huge number of deoptimizations inside BinaryOpIC stubs
when arguments are boolean.

TEST=zlib
BUG=
R=plind44@gmail.com

Mips32 Review URL: https://codereview.chromium.org/136193011
MIPS64: Fix push the formal parameter count argument to the generator function.

TEST: mjsunit/harmony/generators-iteration
MIPS64: Add TODO(s).

Need find a good way to fix this.
MIPS64: Comment SharedFunctionInfo::kFormalParameterCountOffset usage.

The FormalParameterCount (arg count) is a Smi on 32-bits, and is a
int32_t on 64-bit platforms. This will require special handling
if/when we do a unified port. Added a TODO to all usages.

No code change.
MIPS64 backport: Fix dictionary element load to pass correct elements kind.

Backport r19387, and adapt for mips64.

Using FAST_SMI_ELEMENTS triggers optimization on 64-bit architectures that load
only the higher 32 bits of the element. If the element is a pointer to undefined
that has 0 in the higher half than it is erroneously treated as SMI 0.

BUG=v8:3158
LOG=N
TEST=mjsunit/sparse-array-reverse,mjsunit/regress/regress-3158.js
R=danno@chromium.org, ishell@chromium.org

Review URL: https://codereview.chromium.org/166653005

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@19387 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
MIPS64: Add debug check that optimized Smi store is done to entry containing Smi.

Modeled largely after r19389/5013ef84 from ishell@chromium.org.
MIPS64: Prevent 32-bit Smi load/store optimization on 32-bit platforms.

This should prevent the mips64 Smi ops that load/store from upper
half of Smi from being used on 32-bit port later.

Taken from r20634 / c87cac39 by haitao.feng@intel.com.
MIPS64: Fix QuietSignalingNaNs for MIPS64.

TEST: cctest/test-api/QuietSignalingNaNs
      cctest/test-api/Thread1
MIPS64: Fix ExternalCallbackScope() to adapt 64-bit simulator.

Fixed in r19311/75295c56

TEST: cctest/test-cpu-profiler/NativeAccessorUninitializedIC (only fix on sim)
      cctest/test-cpu-profiler/NativeAccessorMonomorphicIC (only fix on sim)
      cctest/test-cpu-profiler/NativeMethodMonomorphicIC (only fix on sim)
MIPS64: Fix abi issues in Deoptimizer::EntryGenerator
Merge remote-tracking branch 'mrb/yy-dev-mips64-2' into pldev-05
MIPS64: madd_d loses precision on loongson 3A chip.

On Loongson 3A chip, madd_d is different from mips64, this will cause failure
test/benchmarks/sunspider/3d-cube. Synthesize madd from mul and add.

TEST: benchmarks/sunspider/3d-cube
      benchmarks/sunspider/3d-raytrace
      benchmarks/sunspider/access-nbody
MIPS64: Init TickSample.state on mips64 HW.

TEST: cctest/**/*WithProfiler