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 4617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4628 | 4628 |
4629 void SetAstId(int i, BailoutId value) { | 4629 void SetAstId(int i, BailoutId value) { |
4630 SetAstIdRaw(i, Smi::FromInt(value.ToInt())); | 4630 SetAstIdRaw(i, Smi::FromInt(value.ToInt())); |
4631 } | 4631 } |
4632 | 4632 |
4633 int DeoptCount() { | 4633 int DeoptCount() { |
4634 return (length() - kFirstDeoptEntryIndex) / kDeoptEntrySize; | 4634 return (length() - kFirstDeoptEntryIndex) / kDeoptEntrySize; |
4635 } | 4635 } |
4636 | 4636 |
4637 // Allocates a DeoptimizationInputData. | 4637 // Allocates a DeoptimizationInputData. |
4638 MUST_USE_RESULT static MaybeObject* Allocate(int deopt_entry_count, | 4638 MUST_USE_RESULT static MaybeObject* Allocate(Isolate* isolate, |
| 4639 int deopt_entry_count, |
4639 PretenureFlag pretenure); | 4640 PretenureFlag pretenure); |
4640 | 4641 |
4641 // Casting. | 4642 // Casting. |
4642 static inline DeoptimizationInputData* cast(Object* obj); | 4643 static inline DeoptimizationInputData* cast(Object* obj); |
4643 | 4644 |
4644 #ifdef ENABLE_DISASSEMBLER | 4645 #ifdef ENABLE_DISASSEMBLER |
4645 void DeoptimizationInputDataPrint(FILE* out); | 4646 void DeoptimizationInputDataPrint(FILE* out); |
4646 #endif | 4647 #endif |
4647 | 4648 |
4648 private: | 4649 private: |
(...skipping 25 matching lines...) Expand all Loading... |
4674 } | 4675 } |
4675 | 4676 |
4676 Smi* PcAndState(int index) { return Smi::cast(get(1 + index * 2)); } | 4677 Smi* PcAndState(int index) { return Smi::cast(get(1 + index * 2)); } |
4677 void SetPcAndState(int index, Smi* offset) { set(1 + index * 2, offset); } | 4678 void SetPcAndState(int index, Smi* offset) { set(1 + index * 2, offset); } |
4678 | 4679 |
4679 static int LengthOfFixedArray(int deopt_points) { | 4680 static int LengthOfFixedArray(int deopt_points) { |
4680 return deopt_points * 2; | 4681 return deopt_points * 2; |
4681 } | 4682 } |
4682 | 4683 |
4683 // Allocates a DeoptimizationOutputData. | 4684 // Allocates a DeoptimizationOutputData. |
4684 MUST_USE_RESULT static MaybeObject* Allocate(int number_of_deopt_points, | 4685 MUST_USE_RESULT static MaybeObject* Allocate(Isolate* isolate, |
| 4686 int number_of_deopt_points, |
4685 PretenureFlag pretenure); | 4687 PretenureFlag pretenure); |
4686 | 4688 |
4687 // Casting. | 4689 // Casting. |
4688 static inline DeoptimizationOutputData* cast(Object* obj); | 4690 static inline DeoptimizationOutputData* cast(Object* obj); |
4689 | 4691 |
4690 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) | 4692 #if defined(OBJECT_PRINT) || defined(ENABLE_DISASSEMBLER) |
4691 void DeoptimizationOutputDataPrint(FILE* out); | 4693 void DeoptimizationOutputDataPrint(FILE* out); |
4692 #endif | 4694 #endif |
4693 }; | 4695 }; |
4694 | 4696 |
(...skipping 5527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10222 } else { | 10224 } else { |
10223 value &= ~(1 << bit_position); | 10225 value &= ~(1 << bit_position); |
10224 } | 10226 } |
10225 return value; | 10227 return value; |
10226 } | 10228 } |
10227 }; | 10229 }; |
10228 | 10230 |
10229 } } // namespace v8::internal | 10231 } } // namespace v8::internal |
10230 | 10232 |
10231 #endif // V8_OBJECTS_H_ | 10233 #endif // V8_OBJECTS_H_ |
OLD | NEW |