| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index bd0268f5a96a98bce30a3b8f03770d8031afd150..b777c4fe6a3648830bb211ad2451c8aa9cbffecd 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -6829,6 +6829,9 @@ class SharedFunctionInfo: public HeapObject {
|
| // Source size of this function.
|
| int SourceSize();
|
|
|
| + // Returns `false` if formal parameters include rest parameters, optional
|
| + // parameters, or destructuring parameters.
|
| + // TODO(caitp): make this a flag set during parsing
|
| inline bool has_simple_parameters();
|
|
|
| // Initialize a SharedFunctionInfo from a parsed function literal.
|
| @@ -7225,18 +7228,9 @@ class JSFunction: public JSObject {
|
| inline void set_code_no_write_barrier(Code* code);
|
| inline void ReplaceCode(Code* code);
|
|
|
| - // Tells whether this function is builtin.
|
| - inline bool IsBuiltin();
|
| -
|
| // Tells whether this function inlines the given shared function info.
|
| bool Inlines(SharedFunctionInfo* candidate);
|
|
|
| - // Tells whether this function should be subject to debugging.
|
| - inline bool IsSubjectToDebugging();
|
| -
|
| - // Tells whether or not the function needs arguments adaption.
|
| - inline bool NeedsArgumentsAdaption();
|
| -
|
| // Tells whether or not this function has been optimized.
|
| inline bool IsOptimized();
|
|
|
| @@ -7345,25 +7339,9 @@ class JSFunction: public JSObject {
|
| // [[Construct]] from this function will not be allowed.
|
| bool RemovePrototype();
|
|
|
| - // Accessor for this function's initial map's [[class]]
|
| - // property. This is primarily used by ECMA native functions. This
|
| - // method sets the class_name field of this function's initial map
|
| - // to a given value. It creates an initial map if this function does
|
| - // not have one. Note that this method does not copy the initial map
|
| - // if it has one already, but simply replaces it with the new value.
|
| - // Instances created afterwards will have a map whose [[class]] is
|
| - // set to 'value', but there is no guarantees on instances created
|
| - // before.
|
| - void SetInstanceClassName(String* name);
|
| -
|
| // Returns if this function has been compiled to native code yet.
|
| inline bool is_compiled();
|
|
|
| - // Returns `false` if formal parameters include rest parameters, optional
|
| - // parameters, or destructuring parameters.
|
| - // TODO(caitp): make this a flag set during parsing
|
| - inline bool has_simple_parameters();
|
| -
|
| // [next_function_link]: Links functions into various lists, e.g. the list
|
| // of optimized functions hanging off the native_context. The CodeFlusher
|
| // uses this link to chain together flushing candidates. Treated weakly
|
|
|