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

Unified Diff: src/objects.h

Issue 24791002: Thumb2 Backend: Thumb2 changes for Deoptimization and Code Aging Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index e07b6c056b681275dbe04abd32aaa065035f4633..eed4d02e3a1ee580d72cb685e818c98016b7ddc8 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4611,7 +4611,8 @@ class DeoptimizationInputData: public FixedArray {
static const int kTranslationIndexOffset = 1;
static const int kArgumentsStackHeightOffset = 2;
static const int kPcOffset = 3;
- static const int kDeoptEntrySize = 4;
+ static const int kModeOffset = 4;
+ static const int kDeoptEntrySize = 5;
// Simple element accessors.
#define DEFINE_ELEMENT_ACCESSORS(name, type) \
@@ -4643,6 +4644,7 @@ class DeoptimizationInputData: public FixedArray {
DEFINE_ENTRY_ACCESSORS(TranslationIndex, Smi)
DEFINE_ENTRY_ACCESSORS(ArgumentsStackHeight, Smi)
DEFINE_ENTRY_ACCESSORS(Pc, Smi)
+ DEFINE_ENTRY_ACCESSORS(Mode, Smi)
#undef DEFINE_ENTRY_ACCESSORS
@@ -5169,7 +5171,7 @@ class Code: public HeapObject {
// compilation stub.
static void MakeCodeAgeSequenceYoung(byte* sequence);
void MakeOlder(MarkingParity);
- static bool IsYoungSequence(byte* sequence);
+ static bool IsYoungSequence(byte* sequence, bool thumb_mode = false);
bool IsOld();
int GetAge();
@@ -5312,12 +5314,14 @@ class Code: public HeapObject {
static void GetCodeAgeAndParity(Code* code, Age* age,
MarkingParity* parity);
static void GetCodeAgeAndParity(byte* sequence, Age* age,
- MarkingParity* parity);
+ MarkingParity* parity,
+ bool thumb_mode = false);
static Code* GetCodeAgeStub(Age age, MarkingParity parity);
// Code aging -- platform-specific
static void PatchPlatformCodeAge(byte* sequence, Age age,
- MarkingParity parity);
+ MarkingParity parity,
+ bool is_thumb_mode = false);
DISALLOW_IMPLICIT_CONSTRUCTORS(Code);
};
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698