[Interpreter] Add support for JS calls.
authorrmcilroy <rmcilroy@chromium.org>
Mon, 14 Sep 2015 10:05:18 +0000 (03:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 14 Sep 2015 10:05:35 +0000 (10:05 +0000)
commite7fb233946b990ecbbbd76cc6529f62bd5da64e3
tree3f1117cec53a99e561565d7a5b0d947d3f3ccec9
parentd3df2b058440b6c24c0cf012ab2294d45c3a577c
[Interpreter] Add support for JS calls.

Adds support for JS calls to the interpreter. In order to support
calls from the interpreter, the PushArgsAndCall builtin is added
which pushes a sequence of arguments onto the stack and calls
builtin::Call.

Adds the Call bytecode.

MIPS port contributed by akos.palfi@imgtec.com in https://codereview.chromium.org/1334873002/

BUG=v8:4280
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#30710}
31 files changed:
src/arm/builtins-arm.cc
src/arm/interface-descriptors-arm.cc
src/arm64/assembler-arm64.cc
src/arm64/builtins-arm64.cc
src/arm64/interface-descriptors-arm64.cc
src/builtins.h
src/code-factory.cc
src/code-factory.h
src/compiler/bytecode-graph-builder.cc
src/compiler/interpreter-assembler.cc
src/compiler/interpreter-assembler.h
src/ia32/builtins-ia32.cc
src/ia32/interface-descriptors-ia32.cc
src/interface-descriptors.h
src/interpreter/bytecode-array-builder.cc
src/interpreter/bytecode-array-builder.h
src/interpreter/bytecode-generator.cc
src/interpreter/bytecode-generator.h
src/interpreter/bytecodes.cc
src/interpreter/bytecodes.h
src/interpreter/interpreter.cc
src/mips/builtins-mips.cc
src/mips/interface-descriptors-mips.cc
src/mips64/builtins-mips64.cc
src/mips64/interface-descriptors-mips64.cc
src/x64/builtins-x64.cc
src/x64/interface-descriptors-x64.cc
test/cctest/interpreter/test-bytecode-generator.cc
test/cctest/interpreter/test-interpreter.cc
test/unittests/compiler/interpreter-assembler-unittest.cc
test/unittests/interpreter/bytecode-array-builder-unittest.cc