OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 7103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7114 inline bool HasBuiltinFunctionId(); | 7114 inline bool HasBuiltinFunctionId(); |
7115 inline BuiltinFunctionId builtin_function_id(); | 7115 inline BuiltinFunctionId builtin_function_id(); |
7116 inline void set_builtin_function_id(BuiltinFunctionId id); | 7116 inline void set_builtin_function_id(BuiltinFunctionId id); |
7117 inline bool HasInferredName(); | 7117 inline bool HasInferredName(); |
7118 inline String* inferred_name(); | 7118 inline String* inferred_name(); |
7119 inline void set_inferred_name(String* inferred_name); | 7119 inline void set_inferred_name(String* inferred_name); |
7120 | 7120 |
7121 // [script]: Script from which the function originates. | 7121 // [script]: Script from which the function originates. |
7122 DECL_ACCESSORS(script, Object) | 7122 DECL_ACCESSORS(script, Object) |
7123 | 7123 |
7124 // [num_literals]: Number of literals used by this function. | |
7125 inline int num_literals() const; | |
7126 inline void set_num_literals(int value); | |
7127 | |
7128 // [start_position_and_type]: Field used to store both the source code | 7124 // [start_position_and_type]: Field used to store both the source code |
7129 // position, whether or not the function is a function expression, | 7125 // position, whether or not the function is a function expression, |
7130 // and whether or not the function is a toplevel function. The two | 7126 // and whether or not the function is a toplevel function. The two |
7131 // least significants bit indicates whether the function is an | 7127 // least significants bit indicates whether the function is an |
7132 // expression and the rest contains the source code position. | 7128 // expression and the rest contains the source code position. |
7133 inline int start_position_and_type() const; | 7129 inline int start_position_and_type() const; |
7134 inline void set_start_position_and_type(int value); | 7130 inline void set_start_position_and_type(int value); |
7135 | 7131 |
7136 // The function is subject to debugging if a debug info is attached. | 7132 // The function is subject to debugging if a debug info is attached. |
7137 inline bool HasDebugInfo() const; | 7133 inline bool HasDebugInfo() const; |
(...skipping 4413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11551 } | 11547 } |
11552 }; | 11548 }; |
11553 | 11549 |
11554 | 11550 |
11555 } // NOLINT, false-positive due to second-order macros. | 11551 } // NOLINT, false-positive due to second-order macros. |
11556 } // NOLINT, false-positive due to second-order macros. | 11552 } // NOLINT, false-positive due to second-order macros. |
11557 | 11553 |
11558 #include "src/objects/object-macros-undef.h" | 11554 #include "src/objects/object-macros-undef.h" |
11559 | 11555 |
11560 #endif // V8_OBJECTS_H_ | 11556 #endif // V8_OBJECTS_H_ |
OLD | NEW |