OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 6837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6848 // Initialize a SharedFunctionInfo from a parsed function literal. | 6848 // Initialize a SharedFunctionInfo from a parsed function literal. |
6849 static void InitFromFunctionLiteral(Handle<SharedFunctionInfo> shared_info, | 6849 static void InitFromFunctionLiteral(Handle<SharedFunctionInfo> shared_info, |
6850 FunctionLiteral* lit); | 6850 FunctionLiteral* lit); |
6851 | 6851 |
6852 // Dispatched behavior. | 6852 // Dispatched behavior. |
6853 DECLARE_PRINTER(SharedFunctionInfo) | 6853 DECLARE_PRINTER(SharedFunctionInfo) |
6854 DECLARE_VERIFIER(SharedFunctionInfo) | 6854 DECLARE_VERIFIER(SharedFunctionInfo) |
6855 | 6855 |
6856 void ResetForNewContext(int new_ic_age); | 6856 void ResetForNewContext(int new_ic_age); |
6857 | 6857 |
6858 // Iterate over all shared function infos that are created from a script. | 6858 // Iterate over all shared function infos. |
6859 // That excludes shared function infos created for API functions and C++ | |
6860 // builtins. | |
6861 class Iterator { | 6859 class Iterator { |
6862 public: | 6860 public: |
6863 explicit Iterator(Isolate* isolate); | 6861 explicit Iterator(Isolate* isolate); |
6864 SharedFunctionInfo* Next(); | 6862 SharedFunctionInfo* Next(); |
6865 | 6863 |
6866 private: | 6864 private: |
6867 bool NextScript(); | 6865 bool NextScript(); |
6868 | 6866 |
6869 Script::Iterator script_iterator_; | 6867 Script::Iterator script_iterator_; |
6870 WeakFixedArray::Iterator sfi_iterator_; | 6868 WeakFixedArray::Iterator sfi_iterator_; |
(...skipping 3969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10840 // (elements + properties) in the current level. | 10838 // (elements + properties) in the current level. |
10841 int levelLength_ = 0; | 10839 int levelLength_ = 0; |
10842 | 10840 |
10843 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10841 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
10844 }; | 10842 }; |
10845 | 10843 |
10846 } // NOLINT, false-positive due to second-order macros. | 10844 } // NOLINT, false-positive due to second-order macros. |
10847 } // NOLINT, false-positive due to second-order macros. | 10845 } // NOLINT, false-positive due to second-order macros. |
10848 | 10846 |
10849 #endif // V8_OBJECTS_H_ | 10847 #endif // V8_OBJECTS_H_ |
OLD | NEW |