OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3411 return (length() - kFirstDeoptEntryIndex) / kDeoptEntrySize; | 3411 return (length() - kFirstDeoptEntryIndex) / kDeoptEntrySize; |
3412 } | 3412 } |
3413 | 3413 |
3414 // Allocates a DeoptimizationInputData. | 3414 // Allocates a DeoptimizationInputData. |
3415 MUST_USE_RESULT static MaybeObject* Allocate(int deopt_entry_count, | 3415 MUST_USE_RESULT static MaybeObject* Allocate(int deopt_entry_count, |
3416 PretenureFlag pretenure); | 3416 PretenureFlag pretenure); |
3417 | 3417 |
3418 // Casting. | 3418 // Casting. |
3419 static inline DeoptimizationInputData* cast(Object* obj); | 3419 static inline DeoptimizationInputData* cast(Object* obj); |
3420 | 3420 |
3421 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) | 3421 #ifdef ENABLE_DISASSEMBLER |
3422 void DeoptimizationInputDataPrint(FILE* out); | 3422 void DeoptimizationInputDataPrint(FILE* out); |
3423 #endif | 3423 #endif |
3424 | 3424 |
3425 private: | 3425 private: |
3426 static int IndexForEntry(int i) { | 3426 static int IndexForEntry(int i) { |
3427 return kFirstDeoptEntryIndex + (i * kDeoptEntrySize); | 3427 return kFirstDeoptEntryIndex + (i * kDeoptEntrySize); |
3428 } | 3428 } |
3429 | 3429 |
3430 static int LengthFor(int entry_count) { | 3430 static int LengthFor(int entry_count) { |
3431 return IndexForEntry(entry_count); | 3431 return IndexForEntry(entry_count); |
(...skipping 3700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7132 } else { | 7132 } else { |
7133 value &= ~(1 << bit_position); | 7133 value &= ~(1 << bit_position); |
7134 } | 7134 } |
7135 return value; | 7135 return value; |
7136 } | 7136 } |
7137 }; | 7137 }; |
7138 | 7138 |
7139 } } // namespace v8::internal | 7139 } } // namespace v8::internal |
7140 | 7140 |
7141 #endif // V8_OBJECTS_H_ | 7141 #endif // V8_OBJECTS_H_ |
OLD | NEW |