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

Unified Diff: src/objects.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/hydrogen.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index ef55761e169bb6dd75ca59193355134f73c1f6d1..a0da45a4d6629cc7bb1af414f62dbc8aff0ca54f 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7038,7 +7038,9 @@ class Script: public Struct {
V(Array.prototype, push, ArrayPush) \
V(Array.prototype, pop, ArrayPop) \
V(Array.prototype, shift, ArrayShift) \
+ V(Array.prototype, slice, ArraySlice) \
V(Function.prototype, apply, FunctionApply) \
+ V(Function.prototype, call, FunctionCall) \
V(String.prototype, charCodeAt, StringCharCodeAt) \
V(String.prototype, charAt, StringCharAt) \
V(String, fromCharCode, StringFromCharCode) \
@@ -7064,7 +7066,9 @@ enum BuiltinFunctionId {
// list of math functions.
kMathPowHalf,
// Installed only on --harmony-maths.
- kMathClz32
+ kMathClz32,
+
+ kBuiltinsLength
};
@@ -7221,6 +7225,12 @@ class SharedFunctionInfo: public HeapObject {
inline int compiler_hints();
inline void set_compiler_hints(int value);
+ // Whether the function should use optimistic optimizations that
+ // cannot be easily ensured to work due to e.g. lack of type feedback
+ inline bool use_optimistic_optimizations();
+ inline void disable_optimistic_optimizations();
+ DECL_BOOLEAN_ACCESSORS(optimistic_optimizations)
+
inline int ast_node_count();
inline void set_ast_node_count(int count);
@@ -7505,6 +7515,7 @@ class SharedFunctionInfo: public HeapObject {
kDontCache,
kDontFlush,
kIsGenerator,
+ kOptimisticOptimizations,
kCompilerHintsCount // Pseudo entry
};
« no previous file with comments | « src/hydrogen.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698