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

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: REBASE. 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
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6837 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698