OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 6752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6763 DECL_ACCESSORS(construct_stub, Code) | 6763 DECL_ACCESSORS(construct_stub, Code) |
6764 | 6764 |
6765 // Returns if this function has been compiled to native code yet. | 6765 // Returns if this function has been compiled to native code yet. |
6766 inline bool is_compiled(); | 6766 inline bool is_compiled(); |
6767 | 6767 |
6768 // [length]: The function length - usually the number of declared parameters. | 6768 // [length]: The function length - usually the number of declared parameters. |
6769 // Use up to 2^30 parameters. | 6769 // Use up to 2^30 parameters. |
6770 inline int length() const; | 6770 inline int length() const; |
6771 inline void set_length(int value); | 6771 inline void set_length(int value); |
6772 | 6772 |
6773 // [formal parameter count]: The declared number of parameters. | 6773 // [internal formal parameter count]: The declared number of parameters. |
6774 inline int formal_parameter_count() const; | 6774 // For subclass constructors, also includes new.target. |
6775 inline void set_formal_parameter_count(int value); | 6775 // The size of function's frame is internal_formal_parameter_count + 1. |
| 6776 inline int internal_formal_parameter_count() const; |
| 6777 inline void set_internal_formal_parameter_count(int value); |
6776 | 6778 |
6777 // Set the formal parameter count so the function code will be | 6779 // Set the formal parameter count so the function code will be |
6778 // called without using argument adaptor frames. | 6780 // called without using argument adaptor frames. |
6779 inline void DontAdaptArguments(); | 6781 inline void DontAdaptArguments(); |
6780 | 6782 |
6781 // [expected_nof_properties]: Expected number of properties for the function. | 6783 // [expected_nof_properties]: Expected number of properties for the function. |
6782 inline int expected_nof_properties() const; | 6784 inline int expected_nof_properties() const; |
6783 inline void set_expected_nof_properties(int value); | 6785 inline void set_expected_nof_properties(int value); |
6784 | 6786 |
6785 // [feedback_vector] - accumulates ast node feedback from full-codegen and | 6787 // [feedback_vector] - accumulates ast node feedback from full-codegen and |
(...skipping 4179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10965 } else { | 10967 } else { |
10966 value &= ~(1 << bit_position); | 10968 value &= ~(1 << bit_position); |
10967 } | 10969 } |
10968 return value; | 10970 return value; |
10969 } | 10971 } |
10970 }; | 10972 }; |
10971 | 10973 |
10972 } } // namespace v8::internal | 10974 } } // namespace v8::internal |
10973 | 10975 |
10974 #endif // V8_OBJECTS_H_ | 10976 #endif // V8_OBJECTS_H_ |
OLD | NEW |