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 5152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5163 // level of loop nesting we are willing to do on-stack replacement | 5163 // level of loop nesting we are willing to do on-stack replacement |
5164 // for. | 5164 // for. |
5165 inline void set_allow_osr_at_loop_nesting_level(int level); | 5165 inline void set_allow_osr_at_loop_nesting_level(int level); |
5166 inline int allow_osr_at_loop_nesting_level(); | 5166 inline int allow_osr_at_loop_nesting_level(); |
5167 | 5167 |
5168 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks | 5168 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks |
5169 // the code object was seen on the stack with no IC patching going on. | 5169 // the code object was seen on the stack with no IC patching going on. |
5170 inline int profiler_ticks(); | 5170 inline int profiler_ticks(); |
5171 inline void set_profiler_ticks(int ticks); | 5171 inline void set_profiler_ticks(int ticks); |
5172 | 5172 |
5173 // [builtin_index]: For BUILTIN kind, tells which builtin index it has. | 5173 // [builtin_index]: For builtins, tells which builtin index the code object |
5174 // For builtins, tells which builtin index it has. | 5174 // has. Note that builtins can have a code kind other than BUILTIN. The |
5175 // Note that builtins can have a code kind other than BUILTIN, which means | 5175 // builtin index is a non-negative integer for builtins, and -1 otherwise. |
5176 // that for arbitrary code objects, this index value may be random garbage. | |
5177 // To verify in that case, compare the code object to the indexed builtin. | |
5178 inline int builtin_index(); | 5176 inline int builtin_index(); |
5179 inline void set_builtin_index(int id); | 5177 inline void set_builtin_index(int id); |
5180 | 5178 |
5181 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots | 5179 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots |
5182 // reserved in the code prologue. | 5180 // reserved in the code prologue. |
5183 inline unsigned stack_slots(); | 5181 inline unsigned stack_slots(); |
5184 inline void set_stack_slots(unsigned slots); | 5182 inline void set_stack_slots(unsigned slots); |
5185 | 5183 |
5186 // [safepoint_table_start]: For kind OPTIMIZED_FUNCTION, the offset in | 5184 // [safepoint_table_start]: For kind OPTIMIZED_FUNCTION, the offset in |
5187 // the instruction stream where the safepoint table starts. | 5185 // the instruction stream where the safepoint table starts. |
(...skipping 5893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11081 } | 11079 } |
11082 return value; | 11080 return value; |
11083 } | 11081 } |
11084 }; | 11082 }; |
11085 | 11083 |
11086 | 11084 |
11087 } // NOLINT, false-positive due to second-order macros. | 11085 } // NOLINT, false-positive due to second-order macros. |
11088 } // NOLINT, false-positive due to second-order macros. | 11086 } // NOLINT, false-positive due to second-order macros. |
11089 | 11087 |
11090 #endif // V8_OBJECTS_H_ | 11088 #endif // V8_OBJECTS_H_ |
OLD | NEW |