| 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 7366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7377 inline BailoutReason disable_optimization_reason(); | 7377 inline BailoutReason disable_optimization_reason(); |
| 7378 | 7378 |
| 7379 // Lookup the bailout ID and DCHECK that it exists in the non-optimized | 7379 // Lookup the bailout ID and DCHECK that it exists in the non-optimized |
| 7380 // code, returns whether it asserted (i.e., always true if assertions are | 7380 // code, returns whether it asserted (i.e., always true if assertions are |
| 7381 // disabled). | 7381 // disabled). |
| 7382 bool VerifyBailoutId(BailoutId id); | 7382 bool VerifyBailoutId(BailoutId id); |
| 7383 | 7383 |
| 7384 // [source code]: Source code for the function. | 7384 // [source code]: Source code for the function. |
| 7385 bool HasSourceCode() const; | 7385 bool HasSourceCode() const; |
| 7386 Handle<Object> GetSourceCode(); | 7386 Handle<Object> GetSourceCode(); |
| 7387 Handle<Object> GetSourceCodeHarmony(); |
| 7387 | 7388 |
| 7388 // Number of times the function was optimized. | 7389 // Number of times the function was optimized. |
| 7389 inline int opt_count(); | 7390 inline int opt_count(); |
| 7390 inline void set_opt_count(int opt_count); | 7391 inline void set_opt_count(int opt_count); |
| 7391 | 7392 |
| 7392 // Number of times the function was deoptimized. | 7393 // Number of times the function was deoptimized. |
| 7393 inline void set_deopt_count(int value); | 7394 inline void set_deopt_count(int value); |
| 7394 inline int deopt_count(); | 7395 inline int deopt_count(); |
| 7395 inline void increment_deopt_count(); | 7396 inline void increment_deopt_count(); |
| 7396 | 7397 |
| (...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8764 HashTableKey*> { | 8765 HashTableKey*> { |
| 8765 public: | 8766 public: |
| 8766 // Find cached value for a string key, otherwise return null. | 8767 // Find cached value for a string key, otherwise return null. |
| 8767 Handle<Object> Lookup( | 8768 Handle<Object> Lookup( |
| 8768 Handle<String> src, Handle<Context> context, LanguageMode language_mode); | 8769 Handle<String> src, Handle<Context> context, LanguageMode language_mode); |
| 8769 InfoVectorPair LookupScript(Handle<String> src, Handle<Context> context, | 8770 InfoVectorPair LookupScript(Handle<String> src, Handle<Context> context, |
| 8770 LanguageMode language_mode); | 8771 LanguageMode language_mode); |
| 8771 InfoVectorPair LookupEval(Handle<String> src, | 8772 InfoVectorPair LookupEval(Handle<String> src, |
| 8772 Handle<SharedFunctionInfo> shared, | 8773 Handle<SharedFunctionInfo> shared, |
| 8773 Handle<Context> native_context, | 8774 Handle<Context> native_context, |
| 8774 LanguageMode language_mode, int scope_position); | 8775 LanguageMode language_mode, int position); |
| 8775 Handle<Object> LookupRegExp(Handle<String> source, JSRegExp::Flags flags); | 8776 Handle<Object> LookupRegExp(Handle<String> source, JSRegExp::Flags flags); |
| 8776 static Handle<CompilationCacheTable> Put( | 8777 static Handle<CompilationCacheTable> Put( |
| 8777 Handle<CompilationCacheTable> cache, Handle<String> src, | 8778 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 8778 Handle<Context> context, LanguageMode language_mode, | 8779 Handle<Context> context, LanguageMode language_mode, |
| 8779 Handle<Object> value); | 8780 Handle<Object> value); |
| 8780 static Handle<CompilationCacheTable> PutScript( | 8781 static Handle<CompilationCacheTable> PutScript( |
| 8781 Handle<CompilationCacheTable> cache, Handle<String> src, | 8782 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 8782 Handle<Context> context, LanguageMode language_mode, | 8783 Handle<Context> context, LanguageMode language_mode, |
| 8783 Handle<SharedFunctionInfo> value, Handle<Cell> literals); | 8784 Handle<SharedFunctionInfo> value, Handle<Cell> literals); |
| 8784 static Handle<CompilationCacheTable> PutEval( | 8785 static Handle<CompilationCacheTable> PutEval( |
| 8785 Handle<CompilationCacheTable> cache, Handle<String> src, | 8786 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 8786 Handle<SharedFunctionInfo> outer_info, Handle<SharedFunctionInfo> value, | 8787 Handle<SharedFunctionInfo> outer_info, Handle<SharedFunctionInfo> value, |
| 8787 Handle<Context> native_context, Handle<Cell> literals, | 8788 Handle<Context> native_context, Handle<Cell> literals, int position); |
| 8788 int scope_position); | |
| 8789 static Handle<CompilationCacheTable> PutRegExp( | 8789 static Handle<CompilationCacheTable> PutRegExp( |
| 8790 Handle<CompilationCacheTable> cache, Handle<String> src, | 8790 Handle<CompilationCacheTable> cache, Handle<String> src, |
| 8791 JSRegExp::Flags flags, Handle<FixedArray> value); | 8791 JSRegExp::Flags flags, Handle<FixedArray> value); |
| 8792 void Remove(Object* value); | 8792 void Remove(Object* value); |
| 8793 void Age(); | 8793 void Age(); |
| 8794 static const int kHashGenerations = 10; | 8794 static const int kHashGenerations = 10; |
| 8795 | 8795 |
| 8796 DECLARE_CAST(CompilationCacheTable) | 8796 DECLARE_CAST(CompilationCacheTable) |
| 8797 | 8797 |
| 8798 private: | 8798 private: |
| (...skipping 2837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11636 } | 11636 } |
| 11637 }; | 11637 }; |
| 11638 | 11638 |
| 11639 | 11639 |
| 11640 } // NOLINT, false-positive due to second-order macros. | 11640 } // NOLINT, false-positive due to second-order macros. |
| 11641 } // NOLINT, false-positive due to second-order macros. | 11641 } // NOLINT, false-positive due to second-order macros. |
| 11642 | 11642 |
| 11643 #include "src/objects/object-macros-undef.h" | 11643 #include "src/objects/object-macros-undef.h" |
| 11644 | 11644 |
| 11645 #endif // V8_OBJECTS_H_ | 11645 #endif // V8_OBJECTS_H_ |
| OLD | NEW |