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 6818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6829 // Initialize a SharedFunctionInfo from a parsed function literal. | 6829 // Initialize a SharedFunctionInfo from a parsed function literal. |
6830 static void InitFromFunctionLiteral(Handle<SharedFunctionInfo> shared_info, | 6830 static void InitFromFunctionLiteral(Handle<SharedFunctionInfo> shared_info, |
6831 FunctionLiteral* lit); | 6831 FunctionLiteral* lit); |
6832 | 6832 |
6833 // Dispatched behavior. | 6833 // Dispatched behavior. |
6834 DECLARE_PRINTER(SharedFunctionInfo) | 6834 DECLARE_PRINTER(SharedFunctionInfo) |
6835 DECLARE_VERIFIER(SharedFunctionInfo) | 6835 DECLARE_VERIFIER(SharedFunctionInfo) |
6836 | 6836 |
6837 void ResetForNewContext(int new_ic_age); | 6837 void ResetForNewContext(int new_ic_age); |
6838 | 6838 |
6839 // Iterate over all shared function infos that are created from a script. | 6839 // Iterate over all shared function infos. |
6840 // That excludes shared function infos created for API functions and C++ | |
6841 // builtins. | |
6842 class Iterator { | 6840 class Iterator { |
6843 public: | 6841 public: |
6844 explicit Iterator(Isolate* isolate); | 6842 explicit Iterator(Isolate* isolate); |
6845 SharedFunctionInfo* Next(); | 6843 SharedFunctionInfo* Next(); |
6846 | 6844 |
6847 private: | 6845 private: |
6848 bool NextScript(); | 6846 bool NextScript(); |
6849 | 6847 |
6850 Script::Iterator script_iterator_; | 6848 Script::Iterator script_iterator_; |
6851 WeakFixedArray::Iterator sfi_iterator_; | 6849 WeakFixedArray::Iterator sfi_iterator_; |
(...skipping 3963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10815 // (elements + properties) in the current level. | 10813 // (elements + properties) in the current level. |
10816 int levelLength_; | 10814 int levelLength_; |
10817 | 10815 |
10818 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); | 10816 DISALLOW_COPY_AND_ASSIGN(KeyAccumulator); |
10819 }; | 10817 }; |
10820 | 10818 |
10821 } // NOLINT, false-positive due to second-order macros. | 10819 } // NOLINT, false-positive due to second-order macros. |
10822 } // NOLINT, false-positive due to second-order macros. | 10820 } // NOLINT, false-positive due to second-order macros. |
10823 | 10821 |
10824 #endif // V8_OBJECTS_H_ | 10822 #endif // V8_OBJECTS_H_ |
OLD | NEW |