Chromium Code Reviews| 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 7360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7371 // [name]: Function name. | 7371 // [name]: Function name. |
| 7372 DECL_ACCESSORS(name, Object) | 7372 DECL_ACCESSORS(name, Object) |
| 7373 | 7373 |
| 7374 // [code]: Function code. | 7374 // [code]: Function code. |
| 7375 DECL_ACCESSORS(code, Code) | 7375 DECL_ACCESSORS(code, Code) |
| 7376 | 7376 |
| 7377 // Get the abstract code associated with the function, which will either be | 7377 // Get the abstract code associated with the function, which will either be |
| 7378 // a Code object or a BytecodeArray. | 7378 // a Code object or a BytecodeArray. |
| 7379 inline AbstractCode* abstract_code(); | 7379 inline AbstractCode* abstract_code(); |
| 7380 | 7380 |
| 7381 inline bool IsInterpreted() const; | |
|
Michael Starzinger
2016/11/09 12:07:23
nit: Please add a similar comment (like in JSFunct
rmcilroy
2016/11/09 16:50:10
Good point, added a comment as-such to both functi
| |
| 7382 | |
| 7381 inline void ReplaceCode(Code* code); | 7383 inline void ReplaceCode(Code* code); |
| 7382 inline bool HasBaselineCode() const; | 7384 inline bool HasBaselineCode() const; |
| 7383 | 7385 |
| 7384 // [optimized_code_map]: Map from native context to optimized code | 7386 // [optimized_code_map]: Map from native context to optimized code |
| 7385 // and a shared literals array. | 7387 // and a shared literals array. |
| 7386 DECL_ACCESSORS(optimized_code_map, FixedArray) | 7388 DECL_ACCESSORS(optimized_code_map, FixedArray) |
| 7387 | 7389 |
| 7388 // Returns entry from optimized code map for specified context and OSR entry. | 7390 // Returns entry from optimized code map for specified context and OSR entry. |
| 7389 // Note that {code == nullptr, literals == nullptr} indicates no matching | 7391 // Note that {code == nullptr, literals == nullptr} indicates no matching |
| 7390 // entry has been found, whereas {code, literals == nullptr} indicates that | 7392 // entry has been found, whereas {code, literals == nullptr} indicates that |
| (...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 8317 inline void set_code_no_write_barrier(Code* code); | 8319 inline void set_code_no_write_barrier(Code* code); |
| 8318 inline void ReplaceCode(Code* code); | 8320 inline void ReplaceCode(Code* code); |
| 8319 | 8321 |
| 8320 // Get the abstract code associated with the function, which will either be | 8322 // Get the abstract code associated with the function, which will either be |
| 8321 // a Code object or a BytecodeArray. | 8323 // a Code object or a BytecodeArray. |
| 8322 inline AbstractCode* abstract_code(); | 8324 inline AbstractCode* abstract_code(); |
| 8323 | 8325 |
| 8324 // Tells whether this function inlines the given shared function info. | 8326 // Tells whether this function inlines the given shared function info. |
| 8325 bool Inlines(SharedFunctionInfo* candidate); | 8327 bool Inlines(SharedFunctionInfo* candidate); |
| 8326 | 8328 |
| 8329 // Tells whether or not this function is interpreted. | |
| 8330 inline bool IsInterpreted(); | |
| 8331 | |
| 8327 // Tells whether or not this function has been optimized. | 8332 // Tells whether or not this function has been optimized. |
| 8328 inline bool IsOptimized(); | 8333 inline bool IsOptimized(); |
| 8329 | 8334 |
| 8330 // Mark this function for lazy recompilation. The function will be recompiled | 8335 // Mark this function for lazy recompilation. The function will be recompiled |
| 8331 // the next time it is executed. | 8336 // the next time it is executed. |
| 8332 void MarkForBaseline(); | 8337 void MarkForBaseline(); |
| 8333 void MarkForOptimization(); | 8338 void MarkForOptimization(); |
| 8334 void AttemptConcurrentOptimization(); | 8339 void AttemptConcurrentOptimization(); |
| 8335 | 8340 |
| 8336 // Tells whether or not the function is already marked for lazy recompilation. | 8341 // Tells whether or not the function is already marked for lazy recompilation. |
| (...skipping 3432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 11769 } | 11774 } |
| 11770 return value; | 11775 return value; |
| 11771 } | 11776 } |
| 11772 }; | 11777 }; |
| 11773 | 11778 |
| 11774 | 11779 |
| 11775 } // NOLINT, false-positive due to second-order macros. | 11780 } // NOLINT, false-positive due to second-order macros. |
| 11776 } // NOLINT, false-positive due to second-order macros. | 11781 } // NOLINT, false-positive due to second-order macros. |
| 11777 | 11782 |
| 11778 #endif // V8_OBJECTS_H_ | 11783 #endif // V8_OBJECTS_H_ |
| OLD | NEW |