diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2015-08-23 06:09:40 -0700 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-09-06 21:38:01 +1000 |
commit | 9fddd83cf9adf505bce2e2373881df0c4d41b261 (patch) | |
tree | 4272ce14c10fea496af2e78fc6debb187d613451 /deps/v8/src/runtime/runtime-test.cc | |
parent | 46b7d151674d138e7ea4342d5f3ada1208b87ff2 (diff) | |
download | node-new-9fddd83cf9adf505bce2e2373881df0c4d41b261.tar.gz |
deps: upgrade V8 to 4.5.103.24
Upgrade to the latest branch-head for V8 4.5. For the full commit log see
https://github.com/v8/v8-git-mirror/commits/4.5.103.24
PR-URL: https://github.com/nodejs/node/pull/2509
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/src/runtime/runtime-test.cc')
-rw-r--r-- | deps/v8/src/runtime/runtime-test.cc | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/deps/v8/src/runtime/runtime-test.cc b/deps/v8/src/runtime/runtime-test.cc index f590f81a2d..1325eeb67b 100644 --- a/deps/v8/src/runtime/runtime-test.cc +++ b/deps/v8/src/runtime/runtime-test.cc @@ -20,7 +20,8 @@ RUNTIME_FUNCTION(Runtime_DeoptimizeFunction) { if (!function->IsOptimized()) return isolate->heap()->undefined_value(); // TODO(turbofan): Deoptimization is not supported yet. - if (function->code()->is_turbofanned() && !FLAG_turbo_deoptimization) { + if (function->code()->is_turbofanned() && + function->shared()->asm_function() && !FLAG_turbo_asm_deoptimization) { return isolate->heap()->undefined_value(); } @@ -50,7 +51,8 @@ RUNTIME_FUNCTION(Runtime_DeoptimizeNow) { if (!function->IsOptimized()) return isolate->heap()->undefined_value(); // TODO(turbofan): Deoptimization is not supported yet. - if (function->code()->is_turbofanned() && !FLAG_turbo_deoptimization) { + if (function->code()->is_turbofanned() && + function->shared()->asm_function() && !FLAG_turbo_asm_deoptimization) { return isolate->heap()->undefined_value(); } @@ -87,7 +89,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeFunctionOnNextCall) { // JSFunction::MarkForOptimization(). RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() || (function->code()->kind() == Code::FUNCTION && - function->code()->optimizable())); + !function->shared()->optimization_disabled())); // If the function is already optimized, just return. if (function->IsOptimized()) return isolate->heap()->undefined_value(); @@ -131,8 +133,7 @@ RUNTIME_FUNCTION(Runtime_OptimizeOsr) { // The following assertion was lifted from the DCHECK inside // JSFunction::MarkForOptimization(). RUNTIME_ASSERT(function->shared()->allows_lazy_compilation() || - (function->code()->kind() == Code::FUNCTION && - function->code()->optimizable())); + !function->shared()->optimization_disabled()); // If the function is already optimized, just return. if (function->IsOptimized()) return isolate->heap()->undefined_value(); @@ -212,6 +213,21 @@ RUNTIME_FUNCTION(Runtime_GetOptimizationCount) { } +RUNTIME_FUNCTION(Runtime_GetUndetectable) { + HandleScope scope(isolate); + DCHECK(args.length() == 0); + v8::Isolate* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate); + + Local<v8::ObjectTemplate> desc = v8::ObjectTemplate::New(v8_isolate); + desc->MarkAsUndetectable(); + Local<v8::Object> obj; + if (!desc->NewInstance(v8_isolate->GetCurrentContext()).ToLocal(&obj)) { + return nullptr; + } + return *Utils::OpenHandle(*obj); +} + + RUNTIME_FUNCTION(Runtime_ClearFunctionTypeFeedback) { HandleScope scope(isolate); DCHECK(args.length() == 1); @@ -266,8 +282,9 @@ RUNTIME_FUNCTION(Runtime_DebugPrint) { // and print some interesting cpu debugging info. JavaScriptFrameIterator it(isolate); JavaScriptFrame* frame = it.frame(); - os << "fp = " << frame->fp() << ", sp = " << frame->sp() - << ", caller_sp = " << frame->caller_sp() << ": "; + os << "fp = " << static_cast<void*>(frame->fp()) + << ", sp = " << static_cast<void*>(frame->sp()) + << ", caller_sp = " << static_cast<void*>(frame->caller_sp()) << ": "; } else { os << "DebugPrint: "; } @@ -360,7 +377,8 @@ RUNTIME_FUNCTION(Runtime_AbortJS) { RUNTIME_FUNCTION(Runtime_NativeScriptsCount) { DCHECK(args.length() == 0); - return Smi::FromInt(Natives::GetBuiltinsCount()); + return Smi::FromInt(Natives::GetBuiltinsCount() + + ExtraNatives::GetBuiltinsCount()); } @@ -488,5 +506,5 @@ TYPED_ARRAYS(TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) TYPED_ARRAYS(FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION) #undef FIXED_TYPED_ARRAYS_CHECK_RUNTIME_FUNCTION -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 |