Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: src/runtime.cc

Issue 327173002: Optimize various forms of slice.call(arguments, ...) (Closed) Base URL: https://github.com/v8/v8.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime.h ('k') | test/mjsunit/compiler/slice-call-arguments.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index 07987e2e39e271da31ce4b88346de252736167f3..5a7490db78e28a086477ca7ca39e64da41e38514 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -5521,6 +5521,18 @@ RUNTIME_FUNCTION(Runtime_SetInlineBuiltinFlag) {
}
+RUNTIME_FUNCTION(Runtime_DisableOptimisticOptimizations) {
+ SealHandleScope shs(isolate);
+ RUNTIME_ASSERT(args.length() == 1);
+ CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
+
+ if (object->IsSharedFunctionInfo()) {
+ SharedFunctionInfo::cast(*object)->disable_optimistic_optimizations();
+ }
+ return isolate->heap()->undefined_value();
+}
+
+
RUNTIME_FUNCTION(Runtime_StoreArrayLiteralElement) {
HandleScope scope(isolate);
RUNTIME_ASSERT(args.length() == 5);
« no previous file with comments | « src/runtime.h ('k') | test/mjsunit/compiler/slice-call-arguments.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698