OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 <iosfwd> | 8 #include <iosfwd> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 5208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5219 DECLARE_ENTRY_ACCESSORS(Pc, Smi) | 5219 DECLARE_ENTRY_ACCESSORS(Pc, Smi) |
5220 | 5220 |
5221 #undef DECLARE_ENTRY_ACCESSORS | 5221 #undef DECLARE_ENTRY_ACCESSORS |
5222 | 5222 |
5223 inline BailoutId AstId(int i); | 5223 inline BailoutId AstId(int i); |
5224 | 5224 |
5225 inline void SetAstId(int i, BailoutId value); | 5225 inline void SetAstId(int i, BailoutId value); |
5226 | 5226 |
5227 inline int DeoptCount(); | 5227 inline int DeoptCount(); |
5228 | 5228 |
| 5229 static const int kNotInlinedIndex = -1; |
| 5230 |
| 5231 // Returns the inlined function at the given position in LiteralArray, or the |
| 5232 // outer function if index == kNotInlinedIndex. |
| 5233 class SharedFunctionInfo* GetInlinedFunction(int index); |
| 5234 |
5229 // Allocates a DeoptimizationInputData. | 5235 // Allocates a DeoptimizationInputData. |
5230 static Handle<DeoptimizationInputData> New(Isolate* isolate, | 5236 static Handle<DeoptimizationInputData> New(Isolate* isolate, |
5231 int deopt_entry_count, | 5237 int deopt_entry_count, |
5232 PretenureFlag pretenure); | 5238 PretenureFlag pretenure); |
5233 | 5239 |
5234 DECLARE_CAST(DeoptimizationInputData) | 5240 DECLARE_CAST(DeoptimizationInputData) |
5235 | 5241 |
5236 #ifdef ENABLE_DISASSEMBLER | 5242 #ifdef ENABLE_DISASSEMBLER |
5237 void DeoptimizationInputDataPrint(std::ostream& os); // NOLINT | 5243 void DeoptimizationInputDataPrint(std::ostream& os); // NOLINT |
5238 #endif | 5244 #endif |
(...skipping 6623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11862 } | 11868 } |
11863 return value; | 11869 return value; |
11864 } | 11870 } |
11865 }; | 11871 }; |
11866 | 11872 |
11867 | 11873 |
11868 } // NOLINT, false-positive due to second-order macros. | 11874 } // NOLINT, false-positive due to second-order macros. |
11869 } // NOLINT, false-positive due to second-order macros. | 11875 } // NOLINT, false-positive due to second-order macros. |
11870 | 11876 |
11871 #endif // V8_OBJECTS_H_ | 11877 #endif // V8_OBJECTS_H_ |
OLD | NEW |