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 4183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4194 inline void set_binary_op_result_type(byte value); | 4194 inline void set_binary_op_result_type(byte value); |
4195 | 4195 |
4196 // [compare state]: For kind COMPARE_IC, tells what state the stub is in. | 4196 // [compare state]: For kind COMPARE_IC, tells what state the stub is in. |
4197 inline byte compare_state(); | 4197 inline byte compare_state(); |
4198 inline void set_compare_state(byte value); | 4198 inline void set_compare_state(byte value); |
4199 | 4199 |
4200 // [to_boolean_foo]: For kind TO_BOOLEAN_IC tells what state the stub is in. | 4200 // [to_boolean_foo]: For kind TO_BOOLEAN_IC tells what state the stub is in. |
4201 inline byte to_boolean_state(); | 4201 inline byte to_boolean_state(); |
4202 inline void set_to_boolean_state(byte value); | 4202 inline void set_to_boolean_state(byte value); |
4203 | 4203 |
| 4204 // [has_function_cache]: For kind STUB tells whether there is a function |
| 4205 // cache is passed to the stub. |
| 4206 inline bool has_function_cache(); |
| 4207 inline void set_has_function_cache(bool flag); |
| 4208 |
4204 // Get the safepoint entry for the given pc. | 4209 // Get the safepoint entry for the given pc. |
4205 SafepointEntry GetSafepointEntry(Address pc); | 4210 SafepointEntry GetSafepointEntry(Address pc); |
4206 | 4211 |
4207 // Mark this code object as not having a stack check table. Assumes kind | 4212 // Mark this code object as not having a stack check table. Assumes kind |
4208 // is FUNCTION. | 4213 // is FUNCTION. |
4209 void SetNoStackCheckTable(); | 4214 void SetNoStackCheckTable(); |
4210 | 4215 |
4211 // Find the first map in an IC stub. | 4216 // Find the first map in an IC stub. |
4212 Map* FindFirstMap(); | 4217 Map* FindFirstMap(); |
4213 | 4218 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4334 // Byte offsets within kKindSpecificFlagsOffset. | 4339 // Byte offsets within kKindSpecificFlagsOffset. |
4335 static const int kStubMajorKeyOffset = kKindSpecificFlagsOffset; | 4340 static const int kStubMajorKeyOffset = kKindSpecificFlagsOffset; |
4336 static const int kOptimizableOffset = kKindSpecificFlagsOffset; | 4341 static const int kOptimizableOffset = kKindSpecificFlagsOffset; |
4337 static const int kStackSlotsOffset = kKindSpecificFlagsOffset; | 4342 static const int kStackSlotsOffset = kKindSpecificFlagsOffset; |
4338 static const int kCheckTypeOffset = kKindSpecificFlagsOffset; | 4343 static const int kCheckTypeOffset = kKindSpecificFlagsOffset; |
4339 | 4344 |
4340 static const int kUnaryOpTypeOffset = kStubMajorKeyOffset + 1; | 4345 static const int kUnaryOpTypeOffset = kStubMajorKeyOffset + 1; |
4341 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; | 4346 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; |
4342 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; | 4347 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; |
4343 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; | 4348 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; |
| 4349 static const int kHasFunctionCacheOffset = kStubMajorKeyOffset + 1; |
4344 | 4350 |
4345 static const int kFullCodeFlags = kOptimizableOffset + 1; | 4351 static const int kFullCodeFlags = kOptimizableOffset + 1; |
4346 class FullCodeFlagsHasDeoptimizationSupportField: | 4352 class FullCodeFlagsHasDeoptimizationSupportField: |
4347 public BitField<bool, 0, 1> {}; // NOLINT | 4353 public BitField<bool, 0, 1> {}; // NOLINT |
4348 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; | 4354 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; |
4349 class FullCodeFlagsIsCompiledOptimizable: public BitField<bool, 2, 1> {}; | 4355 class FullCodeFlagsIsCompiledOptimizable: public BitField<bool, 2, 1> {}; |
4350 | 4356 |
4351 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; | 4357 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; |
4352 | 4358 |
4353 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; | 4359 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; |
(...skipping 3876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8230 } else { | 8236 } else { |
8231 value &= ~(1 << bit_position); | 8237 value &= ~(1 << bit_position); |
8232 } | 8238 } |
8233 return value; | 8239 return value; |
8234 } | 8240 } |
8235 }; | 8241 }; |
8236 | 8242 |
8237 } } // namespace v8::internal | 8243 } } // namespace v8::internal |
8238 | 8244 |
8239 #endif // V8_OBJECTS_H_ | 8245 #endif // V8_OBJECTS_H_ |
OLD | NEW |