Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(973)

Side by Side Diff: src/objects.h

Issue 1410223007: Add non-script SharedFunctionInfos to the Iterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: First patch. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« src/heap/heap.h ('K') | « src/heap/heap-inl.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698