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

Side by Side Diff: src/objects.h

Issue 1670143002: Visit the Optimized Code Map on first call rather than closure creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips64 rebase error. Created 4 years, 8 months 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 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 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 6670 matching lines...) Expand 10 before | Expand all | Expand 10 after
6681 static const int kEntriesStart = 1; 6681 static const int kEntriesStart = 1;
6682 static const int kContextOffset = 0; 6682 static const int kContextOffset = 0;
6683 static const int kCachedCodeOffset = 1; 6683 static const int kCachedCodeOffset = 1;
6684 static const int kLiteralsOffset = 2; 6684 static const int kLiteralsOffset = 2;
6685 static const int kOsrAstIdOffset = 3; 6685 static const int kOsrAstIdOffset = 3;
6686 static const int kEntryLength = 4; 6686 static const int kEntryLength = 4;
6687 static const int kInitialLength = kEntriesStart + kEntryLength; 6687 static const int kInitialLength = kEntriesStart + kEntryLength;
6688 6688
6689 static const int kNotFound = -1; 6689 static const int kNotFound = -1;
6690 6690
6691 // Helpers for assembly code that does a backwards walk of the optimized code
6692 // map.
6693 static inline int OffsetToPreviousContext();
6694 static inline int OffsetToPreviousCachedCode();
6695 static inline int OffsetToPreviousLiterals();
6696 static inline int OffsetToPreviousOsrAstId();
6697
6691 // [scope_info]: Scope info. 6698 // [scope_info]: Scope info.
6692 DECL_ACCESSORS(scope_info, ScopeInfo) 6699 DECL_ACCESSORS(scope_info, ScopeInfo)
6693 6700
6694 // [construct stub]: Code stub for constructing instances of this function. 6701 // [construct stub]: Code stub for constructing instances of this function.
6695 DECL_ACCESSORS(construct_stub, Code) 6702 DECL_ACCESSORS(construct_stub, Code)
6696 6703
6697 // Returns if this function has been compiled to native code yet. 6704 // Returns if this function has been compiled to native code yet.
6698 inline bool is_compiled(); 6705 inline bool is_compiled();
6699 6706
6700 // [length]: The function length - usually the number of declared parameters. 6707 // [length]: The function length - usually the number of declared parameters.
(...skipping 4066 matching lines...) Expand 10 before | Expand all | Expand 10 after
10767 } 10774 }
10768 return value; 10775 return value;
10769 } 10776 }
10770 }; 10777 };
10771 10778
10772 10779
10773 } // NOLINT, false-positive due to second-order macros. 10780 } // NOLINT, false-positive due to second-order macros.
10774 } // NOLINT, false-positive due to second-order macros. 10781 } // NOLINT, false-positive due to second-order macros.
10775 10782
10776 #endif // V8_OBJECTS_H_ 10783 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698