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 "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/builtins.h" | 10 #include "src/builtins.h" |
(...skipping 5590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5601 // level of loop nesting we are willing to do on-stack replacement | 5601 // level of loop nesting we are willing to do on-stack replacement |
5602 // for. | 5602 // for. |
5603 inline void set_allow_osr_at_loop_nesting_level(int level); | 5603 inline void set_allow_osr_at_loop_nesting_level(int level); |
5604 inline int allow_osr_at_loop_nesting_level(); | 5604 inline int allow_osr_at_loop_nesting_level(); |
5605 | 5605 |
5606 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks | 5606 // [profiler_ticks]: For FUNCTION kind, tells for how many profiler ticks |
5607 // the code object was seen on the stack with no IC patching going on. | 5607 // the code object was seen on the stack with no IC patching going on. |
5608 inline int profiler_ticks(); | 5608 inline int profiler_ticks(); |
5609 inline void set_profiler_ticks(int ticks); | 5609 inline void set_profiler_ticks(int ticks); |
5610 | 5610 |
| 5611 // [builtin_index]: For BUILTIN kind, tells which builtin index it has. |
| 5612 inline int builtin_index(); |
| 5613 inline void set_builtin_index(int id); |
| 5614 |
5611 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots | 5615 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots |
5612 // reserved in the code prologue. | 5616 // reserved in the code prologue. |
5613 inline unsigned stack_slots(); | 5617 inline unsigned stack_slots(); |
5614 inline void set_stack_slots(unsigned slots); | 5618 inline void set_stack_slots(unsigned slots); |
5615 | 5619 |
5616 // [safepoint_table_start]: For kind OPTIMIZED_CODE, the offset in | 5620 // [safepoint_table_start]: For kind OPTIMIZED_CODE, the offset in |
5617 // the instruction stream where the safepoint table starts. | 5621 // the instruction stream where the safepoint table starts. |
5618 inline unsigned safepoint_table_offset(); | 5622 inline unsigned safepoint_table_offset(); |
5619 inline void set_safepoint_table_offset(unsigned offset); | 5623 inline void set_safepoint_table_offset(unsigned offset); |
5620 | 5624 |
(...skipping 5606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11227 } else { | 11231 } else { |
11228 value &= ~(1 << bit_position); | 11232 value &= ~(1 << bit_position); |
11229 } | 11233 } |
11230 return value; | 11234 return value; |
11231 } | 11235 } |
11232 }; | 11236 }; |
11233 | 11237 |
11234 } } // namespace v8::internal | 11238 } } // namespace v8::internal |
11235 | 11239 |
11236 #endif // V8_OBJECTS_H_ | 11240 #endif // V8_OBJECTS_H_ |
OLD | NEW |