| Index: src/property-details-inl.h
|
| diff --git a/src/zone-containers.h b/src/property-details-inl.h
|
| similarity index 77%
|
| copy from src/zone-containers.h
|
| copy to src/property-details-inl.h
|
| index 31672b62dbf0b4a2926f8354a4bc1b4da6c534ca..98eb1cf58e606c6d755210c91f18c21e51a8bfaa 100644
|
| --- a/src/zone-containers.h
|
| +++ b/src/property-details-inl.h
|
| @@ -25,22 +25,27 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#ifndef V8_ZONE_CONTAINERS_H_
|
| -#define V8_ZONE_CONTAINERS_H_
|
| +#ifndef V8_PROPERTY_DETAILS_INL_H_
|
| +#define V8_PROPERTY_DETAILS_INL_H_
|
|
|
| -#include <vector>
|
| -#include <set>
|
| -
|
| -#include "zone.h"
|
| +#include "objects.h"
|
| +#include "property-details.h"
|
| +#include "v8conversions.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -typedef zone_allocator<int> ZoneIntAllocator;
|
| -typedef std::vector<int, ZoneIntAllocator> IntVector;
|
| -typedef IntVector::iterator IntVectorIter;
|
| -typedef IntVector::reverse_iterator IntVectorRIter;
|
| +inline bool Representation::CanContainDouble(double value) {
|
| + if (IsDouble() || is_more_general_than(Representation::Double())) {
|
| + return true;
|
| + }
|
| + if (IsInt32Double(value)) {
|
| + if (IsInteger32()) return true;
|
| + if (IsSmi()) return Smi::IsValid(static_cast<int32_t>(value));
|
| + }
|
| + return false;
|
| +}
|
|
|
| } } // namespace v8::internal
|
|
|
| -#endif // V8_ZONE_CONTAINERS_H_
|
| +#endif // V8_PROPERTY_DETAILS_INL_H_
|
|
|