diff options
author | Michaël Zasso <targos@protonmail.com> | 2016-11-02 11:28:09 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2016-11-11 10:34:31 +0100 |
commit | 0fa09b4887dd3e45793309fb1e5d4326eb2f734d (patch) | |
tree | b5d8ba424b2b47768b3e5ca03f5b463f23a67244 /deps/v8/src/interpreter/bytecode-generator.cc | |
parent | fb05e31466ac0baddc3b81cb2df2cb24c181b602 (diff) | |
download | android-node-v8-0fa09b4887dd3e45793309fb1e5d4326eb2f734d.tar.gz android-node-v8-0fa09b4887dd3e45793309fb1e5d4326eb2f734d.tar.bz2 android-node-v8-0fa09b4887dd3e45793309fb1e5d4326eb2f734d.zip |
deps: update V8 to 5.4.500.41
PR-URL: https://github.com/nodejs/node/pull/9412
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'deps/v8/src/interpreter/bytecode-generator.cc')
-rw-r--r-- | deps/v8/src/interpreter/bytecode-generator.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/v8/src/interpreter/bytecode-generator.cc b/deps/v8/src/interpreter/bytecode-generator.cc index a57399cf6f..6ff43a4170 100644 --- a/deps/v8/src/interpreter/bytecode-generator.cc +++ b/deps/v8/src/interpreter/bytecode-generator.cc @@ -3168,7 +3168,12 @@ void BytecodeGenerator::VisitNewLocalFunctionContext() { .CallRuntime(Runtime::kNewScriptContext, closure, 2); } else { int slot_count = scope->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; - builder()->CreateFunctionContext(slot_count); + if (slot_count <= FastNewFunctionContextStub::kMaximumSlots) { + builder()->CreateFunctionContext(slot_count); + } else { + builder()->CallRuntime(Runtime::kNewFunctionContext, + Register::function_closure(), 1); + } } execution_result()->SetResultInAccumulator(); } |