1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef V8_PROPERTY_DETAILS_INL_H_
6 #define V8_PROPERTY_DETAILS_INL_H_
8 #include "conversions.h"
10 #include "property-details.h"
15 inline bool Representation::CanContainDouble(double value) {
16 if (IsDouble() || is_more_general_than(Representation::Double())) {
19 if (IsInt32Double(value)) {
20 if (IsInteger32()) return true;
21 if (IsSmi()) return Smi::IsValid(static_cast<int32_t>(value));
26 } } // namespace v8::internal
28 #endif // V8_PROPERTY_DETAILS_INL_H_