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

Unified Diff: src/objects-inl.h

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/objects.h ('k') | src/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index cd61ab52b92a657d66eaef1d2b759e3123584d0d..d8afb164f556463a818490ece38ec09a588b447b 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5344,6 +5344,23 @@ BOOL_GETTER(SharedFunctionInfo,
compiler_hints,
optimization_disabled,
kOptimizationDisabled)
+BOOL_GETTER(SharedFunctionInfo,
+ compiler_hints,
+ optimistic_optimizations,
+ kOptimisticOptimizations)
+
+
+bool SharedFunctionInfo::use_optimistic_optimizations() {
+ return BooleanBit::get(compiler_hints(), kOptimisticOptimizations)
+ ? false : true;
+}
+
+
+void SharedFunctionInfo::disable_optimistic_optimizations() {
+ set_compiler_hints(BooleanBit::set(compiler_hints(),
+ kOptimisticOptimizations,
+ true));
+}
void SharedFunctionInfo::set_optimization_disabled(bool disable) {
« no previous file with comments | « src/objects.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698