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

Side by Side Diff: src/objects.h

Issue 677043002: Flush code faster when doing emergency GCs. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
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 5328 matching lines...) Expand 10 before | Expand all | Expand 10 after
5339 5339
5340 // Code aging. Indicates how many full GCs this code has survived without 5340 // Code aging. Indicates how many full GCs this code has survived without
5341 // being entered through the prologue. Used to determine when it is 5341 // being entered through the prologue. Used to determine when it is
5342 // relatively safe to flush this code object and replace it with the lazy 5342 // relatively safe to flush this code object and replace it with the lazy
5343 // compilation stub. 5343 // compilation stub.
5344 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate); 5344 static void MakeCodeAgeSequenceYoung(byte* sequence, Isolate* isolate);
5345 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate); 5345 static void MarkCodeAsExecuted(byte* sequence, Isolate* isolate);
5346 void MakeYoung(); 5346 void MakeYoung();
5347 void MakeOlder(MarkingParity); 5347 void MakeOlder(MarkingParity);
5348 static bool IsYoungSequence(Isolate* isolate, byte* sequence); 5348 static bool IsYoungSequence(Isolate* isolate, byte* sequence);
5349 bool IsOld(); 5349 bool IsOld(Heap* heap);
5350 Age GetAge(); 5350 Age GetAge();
5351 // Gets the raw code age, including psuedo code-age values such as 5351 // Gets the raw code age, including psuedo code-age values such as
5352 // kNotExecutedCodeAge and kExecutedOnceCodeAge. 5352 // kNotExecutedCodeAge and kExecutedOnceCodeAge.
5353 Age GetRawAge(); 5353 Age GetRawAge();
5354 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) { 5354 static inline Code* GetPreAgedCodeAgeStub(Isolate* isolate) {
5355 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY); 5355 return GetCodeAgeStub(isolate, kNotExecutedCodeAge, NO_MARKING_PARITY);
5356 } 5356 }
5357 5357
5358 void PrintDeoptLocation(FILE* out, int bailout_id); 5358 void PrintDeoptLocation(FILE* out, int bailout_id);
5359 bool CanDeoptAt(Address pc); 5359 bool CanDeoptAt(Address pc);
(...skipping 5547 matching lines...) Expand 10 before | Expand all | Expand 10 after
10907 } else { 10907 } else {
10908 value &= ~(1 << bit_position); 10908 value &= ~(1 << bit_position);
10909 } 10909 }
10910 return value; 10910 return value;
10911 } 10911 }
10912 }; 10912 };
10913 10913
10914 } } // namespace v8::internal 10914 } } // namespace v8::internal
10915 10915
10916 #endif // V8_OBJECTS_H_ 10916 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698