Call JS functions via native context instead of js builtins object.
authoryangguo <yangguo@chromium.org>
Wed, 26 Aug 2015 11:16:38 +0000 (04:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 26 Aug 2015 11:16:57 +0000 (11:16 +0000)
commit299f775cf4a936c82e0eead5342defe85d312507
treefff11e9bd3fffadeebe858bdc2d1f0032ff90f75
parent24921f76c60ea6e0c01866d121de7227ff095129
Call JS functions via native context instead of js builtins object.

We look up %-functions in the context if not found in the runtime.

R=bmeurer@chromium.org, mstarzinger@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#30379}
46 files changed:
src/array-iterator.js
src/assembler.cc
src/ast-value-factory.h
src/ast.h
src/bootstrapper.cc
src/bootstrapper.h
src/code-stubs-hydrogen.cc
src/collection.js
src/compiler/ast-graph-builder.cc
src/contexts.cc
src/contexts.h
src/date.js
src/full-codegen/arm/full-codegen-arm.cc
src/full-codegen/arm64/full-codegen-arm64.cc
src/full-codegen/ia32/full-codegen-ia32.cc
src/full-codegen/mips/full-codegen-mips.cc
src/full-codegen/mips64/full-codegen-mips64.cc
src/full-codegen/ppc/full-codegen-ppc.cc
src/full-codegen/x64/full-codegen-x64.cc
src/full-codegen/x87/full-codegen-x87.cc
src/harmony-reflect.js
src/harmony-spread.js
src/hydrogen-instructions.cc
src/hydrogen-instructions.h
src/hydrogen.cc
src/hydrogen.h
src/json.js
src/messages.js
src/object-observe.js
src/parser.cc
src/pattern-rewriter.cc
src/prettyprinter.cc
src/prologue.js
src/promise.js
src/proxy.js
src/regexp.js
src/runtime.js
src/runtime/runtime-internal.cc
src/runtime/runtime-scopes.cc
src/runtime/runtime.cc
src/runtime/runtime.h
src/templates.js
src/v8natives.js
test/cctest/compiler/test-run-jscalls.cc
test/cctest/test-parsing.cc
test/mjsunit/compiler/jsnatives.js