mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
Bug 1289987 - Part 2: Remove more VS2013 workarounds in js/. r=fitzgen
This commit is contained in:
parent
e7e830cc7a
commit
617a320dfb
@ -316,12 +316,7 @@ wasm::AddressOf(SymbolicAddress imm, ExclusiveContext* cx)
|
||||
case SymbolicAddress::ModD:
|
||||
return FuncCast(NumberMod, Args_Double_DoubleDouble);
|
||||
case SymbolicAddress::SinD:
|
||||
#ifdef _WIN64
|
||||
// Workaround a VS 2013 sin issue, see math_sin_uncached.
|
||||
return FuncCast<double (double)>(js::math_sin_uncached, Args_Double_Double);
|
||||
#else
|
||||
return FuncCast<double (double)>(sin, Args_Double_Double);
|
||||
#endif
|
||||
case SymbolicAddress::CosD:
|
||||
return FuncCast<double (double)>(cos, Args_Double_Double);
|
||||
case SymbolicAddress::TanD:
|
||||
|
@ -175,24 +175,6 @@ struct Token
|
||||
ModifierException modifierException; // Exception for this modifier
|
||||
#endif
|
||||
|
||||
// This constructor is necessary only for MSVC 2013 and how it compiles the
|
||||
// initialization of TokenStream::tokens. That field is initialized as
|
||||
// tokens() in the constructor init-list. This *should* zero the entire
|
||||
// array, then (because Token has a non-trivial constructor, because
|
||||
// TokenPos has a user-provided constructor) call the implicit Token
|
||||
// constructor on each element, which would call the TokenPos constructor
|
||||
// for Token::pos and do nothing. (All of which is equivalent to just
|
||||
// zeroing TokenStream::tokens.) But MSVC 2013 (2010/2012 don't have this
|
||||
// bug) doesn't zero out each element, so we need this extra constructor to
|
||||
// make it do the right thing. (Token is used primarily by reference or
|
||||
// pointer, and it's only initialized a very few places, so having a
|
||||
// user-defined constructor won't hurt perf.) See also bug 920318.
|
||||
Token()
|
||||
: pos(0, 0)
|
||||
{
|
||||
MOZ_MAKE_MEM_UNDEFINED(&type, sizeof(type));
|
||||
}
|
||||
|
||||
// Mutators
|
||||
|
||||
void setName(PropertyName* name) {
|
||||
|
@ -59,13 +59,6 @@ BEGIN_TEST(testGCHeapPostBarriers)
|
||||
return true;
|
||||
}
|
||||
|
||||
MOZ_NEVER_INLINE bool
|
||||
Passthrough(bool value)
|
||||
{
|
||||
/* Work around a Win64 optimization bug in VS2010. (Bug 1033146) */
|
||||
return value;
|
||||
}
|
||||
|
||||
bool
|
||||
CanAccessObject(JSObject* obj)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user