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 |
}; |