[runtime] Move binary operator fallbacks into the runtime.
authorbmeurer <bmeurer@chromium.org>
Thu, 10 Sep 2015 13:04:15 +0000 (06:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 10 Sep 2015 13:04:33 +0000 (13:04 +0000)
commita1b2ec60b0d5ab1ee5ba5af362b22bc4b86ebcd6
treeefc2d7e9951a9e714e991f21336d58d8c64dbd44
parenta1c1e2bd44ca4f5381c47b34be7648e94bf775d7
[runtime] Move binary operator fallbacks into the runtime.

Replace the ADD, SUB, etc. builtins with proper runtime implementations,
and expose them as runtime calls that can be used by the code stubs and
the interpreter (for now).

Also remove all the support runtime functions for ADD, SUB and friends,
namely %NumberAdd, %NumberSub, and so on.

R=mstarzinger@chromium.org
CQ_INCLUDE_TRYBOTS=tryserver.v8:v8_linux_layout_dbg,v8_linux_nosnap_dbg

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

Cr-Commit-Position: refs/heads/master@{#30680}
31 files changed:
BUILD.gn
src/accessors.cc
src/api.cc
src/compiler/interpreter-assembler.cc
src/compiler/interpreter-assembler.h
src/compiler/linkage.cc
src/compiler/linkage.h
src/compiler/raw-machine-assembler.cc
src/compiler/raw-machine-assembler.h
src/contexts.h
src/execution.cc
src/hydrogen.cc
src/ic/ic.cc
src/ic/ic.h
src/interpreter/interpreter.cc
src/interpreter/interpreter.h
src/json-stringifier.h
src/objects.cc
src/objects.h
src/runtime.js
src/runtime/runtime-i18n.cc
src/runtime/runtime-numbers.cc
src/runtime/runtime-object.cc
src/runtime/runtime-operators.cc [new file with mode: 0644]
src/runtime/runtime.h
test/cctest/compiler/test-run-jscalls.cc
test/mjsunit/stack-traces-2.js
test/unittests/compiler/interpreter-assembler-unittest.cc
test/webkit/function-apply-aliased-expected.txt
test/webkit/function-apply-aliased.js
tools/gyp/v8.gyp