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 5114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5125 // for. | 5125 // for. |
5126 inline void set_allow_osr_at_loop_nesting_level(int level); | 5126 inline void set_allow_osr_at_loop_nesting_level(int level); |
5127 inline int allow_osr_at_loop_nesting_level(); | 5127 inline int allow_osr_at_loop_nesting_level(); |
5128 | 5128 |
5129 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks | 5129 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks |
5130 // the code object was seen on the stack with no IC patching going on. | 5130 // the code object was seen on the stack with no IC patching going on. |
5131 inline int profiler_ticks(); | 5131 inline int profiler_ticks(); |
5132 inline void set_profiler_ticks(int ticks); | 5132 inline void set_profiler_ticks(int ticks); |
5133 | 5133 |
5134 // [builtin_index]: For BUILTIN kind, tells which builtin index it has. | 5134 // [builtin_index]: For BUILTIN kind, tells which builtin index it has. |
| 5135 // For builtins, tells which builtin index it has. |
| 5136 // Note that builtins can have a code kind other than BUILTIN, which means |
| 5137 // that for arbitrary code objects, this index value may be random garbage. |
| 5138 // To verify in that case, compare the code object to the indexed builtin. |
5135 inline int builtin_index(); | 5139 inline int builtin_index(); |
5136 inline void set_builtin_index(int id); | 5140 inline void set_builtin_index(int id); |
5137 | 5141 |
5138 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots | 5142 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots |
5139 // reserved in the code prologue. | 5143 // reserved in the code prologue. |
5140 inline unsigned stack_slots(); | 5144 inline unsigned stack_slots(); |
5141 inline void set_stack_slots(unsigned slots); | 5145 inline void set_stack_slots(unsigned slots); |
5142 | 5146 |
5143 // [safepoint_table_start]: For kind OPTIMIZED_FUNCTION, the offset in | 5147 // [safepoint_table_start]: For kind OPTIMIZED_FUNCTION, the offset in |
5144 // the instruction stream where the safepoint table starts. | 5148 // the instruction stream where the safepoint table starts. |
(...skipping 5754 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10899 } else { | 10903 } else { |
10900 value &= ~(1 << bit_position); | 10904 value &= ~(1 << bit_position); |
10901 } | 10905 } |
10902 return value; | 10906 return value; |
10903 } | 10907 } |
10904 }; | 10908 }; |
10905 | 10909 |
10906 } } // namespace v8::internal | 10910 } } // namespace v8::internal |
10907 | 10911 |
10908 #endif // V8_OBJECTS_H_ | 10912 #endif // V8_OBJECTS_H_ |
OLD | NEW |