OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 4225 matching lines...) Loading... |
4236 // [has_debug_break_slots]: For FUNCTION kind, tells if it has | 4236 // [has_debug_break_slots]: For FUNCTION kind, tells if it has |
4237 // been compiled with debug break slots. | 4237 // been compiled with debug break slots. |
4238 inline bool has_debug_break_slots(); | 4238 inline bool has_debug_break_slots(); |
4239 inline void set_has_debug_break_slots(bool value); | 4239 inline void set_has_debug_break_slots(bool value); |
4240 | 4240 |
4241 // [compiled_with_optimizing]: For FUNCTION kind, tells if it has | 4241 // [compiled_with_optimizing]: For FUNCTION kind, tells if it has |
4242 // been compiled with IsOptimizing set to true. | 4242 // been compiled with IsOptimizing set to true. |
4243 inline bool is_compiled_optimizable(); | 4243 inline bool is_compiled_optimizable(); |
4244 inline void set_compiled_optimizable(bool value); | 4244 inline void set_compiled_optimizable(bool value); |
4245 | 4245 |
4246 // [has_self_optimization_header]: For FUNCTION kind, tells if it has | |
4247 // a self-optimization header. | |
4248 inline bool has_self_optimization_header(); | |
4249 inline void set_self_optimization_header(bool value); | |
4250 | |
4251 // [allow_osr_at_loop_nesting_level]: For FUNCTION kind, tells for | 4246 // [allow_osr_at_loop_nesting_level]: For FUNCTION kind, tells for |
4252 // how long the function has been marked for OSR and therefore which | 4247 // how long the function has been marked for OSR and therefore which |
4253 // level of loop nesting we are willing to do on-stack replacement | 4248 // level of loop nesting we are willing to do on-stack replacement |
4254 // for. | 4249 // for. |
4255 inline void set_allow_osr_at_loop_nesting_level(int level); | 4250 inline void set_allow_osr_at_loop_nesting_level(int level); |
4256 inline int allow_osr_at_loop_nesting_level(); | 4251 inline int allow_osr_at_loop_nesting_level(); |
4257 | 4252 |
4258 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots | 4253 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots |
4259 // reserved in the code prologue. | 4254 // reserved in the code prologue. |
4260 inline unsigned stack_slots(); | 4255 inline unsigned stack_slots(); |
(...skipping 200 matching lines...) Loading... |
4461 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; | 4456 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; |
4462 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; | 4457 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; |
4463 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; | 4458 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; |
4464 static const int kHasFunctionCacheOffset = kStubMajorKeyOffset + 1; | 4459 static const int kHasFunctionCacheOffset = kStubMajorKeyOffset + 1; |
4465 | 4460 |
4466 static const int kFullCodeFlags = kOptimizableOffset + 1; | 4461 static const int kFullCodeFlags = kOptimizableOffset + 1; |
4467 class FullCodeFlagsHasDeoptimizationSupportField: | 4462 class FullCodeFlagsHasDeoptimizationSupportField: |
4468 public BitField<bool, 0, 1> {}; // NOLINT | 4463 public BitField<bool, 0, 1> {}; // NOLINT |
4469 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; | 4464 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; |
4470 class FullCodeFlagsIsCompiledOptimizable: public BitField<bool, 2, 1> {}; | 4465 class FullCodeFlagsIsCompiledOptimizable: public BitField<bool, 2, 1> {}; |
4471 class FullCodeFlagsHasSelfOptimizationHeader: public BitField<bool, 3, 1> {}; | |
4472 | 4466 |
4473 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; | 4467 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; |
4474 | 4468 |
4475 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; | 4469 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; |
4476 | 4470 |
4477 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize; | 4471 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize; |
4478 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize; | 4472 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize; |
4479 | 4473 |
4480 // Flags layout. BitField<type, shift, size>. | 4474 // Flags layout. BitField<type, shift, size>. |
4481 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; | 4475 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; |
(...skipping 4101 matching lines...) Loading... |
8583 } else { | 8577 } else { |
8584 value &= ~(1 << bit_position); | 8578 value &= ~(1 << bit_position); |
8585 } | 8579 } |
8586 return value; | 8580 return value; |
8587 } | 8581 } |
8588 }; | 8582 }; |
8589 | 8583 |
8590 } } // namespace v8::internal | 8584 } } // namespace v8::internal |
8591 | 8585 |
8592 #endif // V8_OBJECTS_H_ | 8586 #endif // V8_OBJECTS_H_ |
OLD | NEW |