aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/oddball-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/oddball-inl.h')
-rw-r--r--deps/v8/src/objects/oddball-inl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/objects/oddball-inl.h b/deps/v8/src/objects/oddball-inl.h
index e0d77b9043..bcca03ddca 100644
--- a/deps/v8/src/objects/oddball-inl.h
+++ b/deps/v8/src/objects/oddball-inl.h
@@ -22,7 +22,7 @@ TQ_OBJECT_CONSTRUCTORS_IMPL(Oddball)
void Oddball::set_to_number_raw_as_bits(uint64_t bits) {
// Bug(v8:8875): HeapNumber's double may be unaligned.
- WriteUnalignedValue<uint64_t>(field_address(kToNumberRawOffset), bits);
+ base::WriteUnalignedValue<uint64_t>(field_address(kToNumberRawOffset), bits);
}
byte Oddball::kind() const {
@@ -38,8 +38,8 @@ Handle<Object> Oddball::ToNumber(Isolate* isolate, Handle<Oddball> input) {
return Handle<Object>(input->to_number(), isolate);
}
-bool HeapObject::IsBoolean() const {
- return IsOddball() &&
+DEF_GETTER(HeapObject, IsBoolean, bool) {
+ return IsOddball(isolate) &&
((Oddball::cast(*this).kind() & Oddball::kNotBooleanMask) == 0);
}