Fix big-endian after '[osr] Increase Code::profiler_ticks to 28 bits.'
Several users of kKindSpecificFlags1Offset (aliased as kFullCodeFlags) were reading/writing bytes -- not endian agnostic. TEST=mjsunit/debug-setexceptionbreak, mjsunit/debug-mirror-cache, mjsunit/regress/regress-94873, others... BUG= Review URL: https://codereview.chromium.org/1236143002 Cr-Commit-Position: refs/heads/master@{#29634}
This commit is contained in:
parent
47bcd1a139
commit
5ce700be8a
@ -4507,61 +4507,61 @@ inline void Code::set_can_have_weak_objects(bool value) {
|
||||
|
||||
bool Code::has_deoptimization_support() {
|
||||
DCHECK_EQ(FUNCTION, kind());
|
||||
byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
|
||||
unsigned flags = READ_UINT32_FIELD(this, kFullCodeFlags);
|
||||
return FullCodeFlagsHasDeoptimizationSupportField::decode(flags);
|
||||
}
|
||||
|
||||
|
||||
void Code::set_has_deoptimization_support(bool value) {
|
||||
DCHECK_EQ(FUNCTION, kind());
|
||||
byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
|
||||
unsigned flags = READ_UINT32_FIELD(this, kFullCodeFlags);
|
||||
flags = FullCodeFlagsHasDeoptimizationSupportField::update(flags, value);
|
||||
WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
|
||||
WRITE_UINT32_FIELD(this, kFullCodeFlags, flags);
|
||||
}
|
||||
|
||||
|
||||
bool Code::has_debug_break_slots() {
|
||||
DCHECK_EQ(FUNCTION, kind());
|
||||
byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
|
||||
unsigned flags = READ_UINT32_FIELD(this, kFullCodeFlags);
|
||||
return FullCodeFlagsHasDebugBreakSlotsField::decode(flags);
|
||||
}
|
||||
|
||||
|
||||
void Code::set_has_debug_break_slots(bool value) {
|
||||
DCHECK_EQ(FUNCTION, kind());
|
||||
byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
|
||||
unsigned flags = READ_UINT32_FIELD(this, kFullCodeFlags);
|
||||
flags = FullCodeFlagsHasDebugBreakSlotsField::update(flags, value);
|
||||
WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
|
||||
WRITE_UINT32_FIELD(this, kFullCodeFlags, flags);
|
||||
}
|
||||
|
||||
|
||||
bool Code::is_compiled_optimizable() {
|
||||
DCHECK_EQ(FUNCTION, kind());
|
||||
byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
|
||||
unsigned flags = READ_UINT32_FIELD(this, kFullCodeFlags);
|
||||
return FullCodeFlagsIsCompiledOptimizable::decode(flags);
|
||||
}
|
||||
|
||||
|
||||
void Code::set_compiled_optimizable(bool value) {
|
||||
DCHECK_EQ(FUNCTION, kind());
|
||||
byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
|
||||
unsigned flags = READ_UINT32_FIELD(this, kFullCodeFlags);
|
||||
flags = FullCodeFlagsIsCompiledOptimizable::update(flags, value);
|
||||
WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
|
||||
WRITE_UINT32_FIELD(this, kFullCodeFlags, flags);
|
||||
}
|
||||
|
||||
|
||||
bool Code::has_reloc_info_for_serialization() {
|
||||
DCHECK_EQ(FUNCTION, kind());
|
||||
byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
|
||||
unsigned flags = READ_UINT32_FIELD(this, kFullCodeFlags);
|
||||
return FullCodeFlagsHasRelocInfoForSerialization::decode(flags);
|
||||
}
|
||||
|
||||
|
||||
void Code::set_has_reloc_info_for_serialization(bool value) {
|
||||
DCHECK_EQ(FUNCTION, kind());
|
||||
byte flags = READ_BYTE_FIELD(this, kFullCodeFlags);
|
||||
unsigned flags = READ_UINT32_FIELD(this, kFullCodeFlags);
|
||||
flags = FullCodeFlagsHasRelocInfoForSerialization::update(flags, value);
|
||||
WRITE_BYTE_FIELD(this, kFullCodeFlags, flags);
|
||||
WRITE_UINT32_FIELD(this, kFullCodeFlags, flags);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user