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

Side by Side Diff: src/objects.h

Issue 1804433004: [serializer] add options to compile eagerly and pre-age for code cache. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « src/flag-definitions.h ('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 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 5240 matching lines...) Expand 10 before | Expand all | Expand 10 after
5251 }; 5251 };
5252 #undef DECLARE_CODE_AGE_ENUM 5252 #undef DECLARE_CODE_AGE_ENUM
5253 5253
5254 // Code aging. Indicates how many full GCs this code has survived without 5254 // Code aging. Indicates how many full GCs this code has survived without
5255 // being entered through the prologue. Used to determine when it is 5255 // being entered through the prologue. Used to determine when it is
5256 // relatively safe to flush this code object and replace it with the lazy 5256 // relatively safe to flush this code object and replace it with the lazy
5257 // compilation stub. 5257 // compilation stub.
5258 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); 5258 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate);
5259 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate); 5259 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate);
5260 void MakeYoung(Isolate* isolate); 5260 void MakeYoung(Isolate* isolate);
5261 void PreAge(Isolate* isolate);
5261 void MarkToBeExecutedOnce(Isolate* isolate); 5262 void MarkToBeExecutedOnce(Isolate* isolate);
5262 void MakeOlder(MarkingParity); 5263 void MakeOlder(MarkingParity);
5263 static bool IsYoungSequence(Isolate* isolate, byte* sequence); 5264 static bool IsYoungSequence(Isolate* isolate, byte* sequence);
5264 bool IsOld(); 5265 bool IsOld();
5265 Age GetAge(); 5266 Age GetAge();
5266 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { 5267 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) {
5267 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); 5268 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY);
5268 } 5269 }
5269 5270
5270 void PrintDeoptLocation(FILE* out, Address pc); 5271 void PrintDeoptLocation(FILE* out, Address pc);
(...skipping 5616 matching lines...) Expand 10 before | Expand all | Expand 10 after
10887 } 10888 }
10888 return value; 10889 return value;
10889 } 10890 }
10890 }; 10891 };
10891 10892
10892 10893
10893 } // NOLINT, false-positive due to second-order macros. 10894 } // NOLINT, false-positive due to second-order macros.
10894 } // NOLINT, false-positive due to second-order macros. 10895 } // NOLINT, false-positive due to second-order macros.
10895 10896
10896 #endif // V8_OBJECTS_H_ 10897 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698