author | Lars T Hansen <lhansen@mozilla.com> |
Fri, 27 Jan 2017 09:14:26 +0100 (2017-01-27) | |
changeset 331418 | 2c924fb664c18fb3c17bdbf6fc4d808b9107b87a |
parent 331417 | 505e39fbc5ed9857ba12c1c12608fc1cca5c43be |
child 331419 | ef2a7e15295b9637911a29200b564a49616ef585 |
push id | 31269 |
push user | kwierso@gmail.com |
push date | Sat, 28 Jan 2017 00:37:25 +0000 (2017-01-28) |
treeherder | mozilla-central@dfb191cf6039 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | me |
bugs | 1321521 |
milestone | 54.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/js/src/jit/none/Architecture-none.h +++ b/js/src/jit/none/Architecture-none.h @@ -2,16 +2,18 @@ * vim: set ts=8 sts=4 et sw=4 tw=99: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef jit_none_Architecture_none_h #define jit_none_Architecture_none_h +#include "jit/shared/Architecture-shared.h" + // JitSpewer.h is included through MacroAssembler implementations for other // platforms, so include it here to avoid inadvertent build bustage. #include "jit/JitSpewer.h" namespace js { namespace jit { static const bool SupportsSimd = false; @@ -126,16 +128,30 @@ struct FloatRegister bool aliases(FloatRegister) const { MOZ_CRASH(); } uint32_t numAliased() const { MOZ_CRASH(); } void aliased(uint32_t, FloatRegister*) { MOZ_CRASH(); } bool equiv(FloatRegister) const { MOZ_CRASH(); } uint32_t size() const { MOZ_CRASH(); } uint32_t numAlignedAliased() const { MOZ_CRASH(); } void alignedAliased(uint32_t, FloatRegister*) { MOZ_CRASH(); } SetType alignedOrDominatedAliasedSet() const { MOZ_CRASH(); } + + static constexpr RegTypeName DefaultType = RegTypeName::Float64; + + template <RegTypeName = DefaultType> + static SetType LiveAsIndexableSet(SetType s) { + return SetType(0); + } + + template <RegTypeName Name = DefaultType> + static SetType AllocatableAsIndexableSet(SetType s) { + static_assert(Name != RegTypeName::Any, "Allocatable set are not iterable"); + return SetType(0); + } + template <typename T> static T ReduceSetForPush(T) { MOZ_CRASH(); } uint32_t getRegisterDumpOffsetInBytes() { MOZ_CRASH(); } static uint32_t SetSize(SetType x) { MOZ_CRASH(); } static Code FromName(const char* name) { MOZ_CRASH(); } // This is used in static initializers, so produce a bogus value instead of crashing. static uint32_t GetPushSizeInBytes(const TypedRegisterSet<FloatRegister>&) { return 0; } };