Skip to content

Commit

Permalink
CR Fixes chakra-core#3
Browse files Browse the repository at this point in the history
  • Loading branch information
nmostafa committed Mar 11, 2016
1 parent 8245503 commit 46617d7
Show file tree
Hide file tree
Showing 7 changed files with 368 additions and 400 deletions.
213 changes: 100 additions & 113 deletions lib/Backend/LowerMDSharedSimd128.cpp

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions lib/Backend/Opnd.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class Value;

namespace IR {


class IntConstOpnd;
class FloatConstOpnd;
class Simd128ConstOpnd;
Expand Down Expand Up @@ -189,18 +188,18 @@ class Opnd
bool IsFloat32() const { return this->m_type == TyFloat32; }
bool IsFloat64() const { return this->m_type == TyFloat64; }
bool IsFloat() const { return this->IsFloat32() || this->IsFloat64(); }
bool IsSimd128() const { return IRType_IsSimd128(this->m_type); }
bool IsSimd128F4() const { return this->m_type == TySimd128F4; }
bool IsSimd128I4() const { return this->m_type == TySimd128I4; }
bool IsSimd128I8() const { return this->m_type == TySimd128I8; }
bool IsSimd128I16() const { return this->m_type == TySimd128I16;}
bool IsSimd128U4() const { return this->m_type == TySimd128U4; }
bool IsSimd128U8() const { return this->m_type == TySimd128U8; }
bool IsSimd128U16() const { return this->m_type == TySimd128U16;}
bool IsSimd128B4() const { return this->m_type == TySimd128B4; }
bool IsSimd128B8() const { return this->m_type == TySimd128B8; }
bool IsSimd128() const { return IRType_IsSimd128(this->m_type); }
bool IsSimd128F4() const { return this->m_type == TySimd128F4; }
bool IsSimd128I4() const { return this->m_type == TySimd128I4; }
bool IsSimd128I8() const { return this->m_type == TySimd128I8; }
bool IsSimd128I16() const { return this->m_type == TySimd128I16; }
bool IsSimd128U4() const { return this->m_type == TySimd128U4; }
bool IsSimd128U8() const { return this->m_type == TySimd128U8; }
bool IsSimd128U16() const { return this->m_type == TySimd128U16; }
bool IsSimd128B4() const { return this->m_type == TySimd128B4; }
bool IsSimd128B8() const { return this->m_type == TySimd128B8; }
bool IsSimd128B16() const { return this->m_type == TySimd128B16; }
bool IsSimd128D2() const { return this->m_type == TySimd128D2; }
bool IsSimd128D2() const { return this->m_type == TySimd128D2; }
bool IsVar() const { return this->m_type == TyVar; }
bool IsTaggedInt() const;
bool IsTaggedValue() const;
Expand Down
20 changes: 8 additions & 12 deletions lib/Backend/Sym.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,28 +133,24 @@ class StackSym: public Sym
StackSym * GetSimd128D2EquivSym(Func *func);
bool IsSimd128() const { return IRType_IsSimd128(this->GetType()); }

bool IsSimd128F4() const { return this->GetType() == TySimd128F4; }
bool IsSimd128I4() const { return this->GetType() == TySimd128I4; }
bool IsSimd128I8() const { return this->GetType() == TySimd128I8; }
bool IsSimd128F4() const { return this->GetType() == TySimd128F4; }
bool IsSimd128I4() const { return this->GetType() == TySimd128I4; }
bool IsSimd128I8() const { return this->GetType() == TySimd128I8; }
bool IsSimd128I16() const { return this->GetType() == TySimd128I16; }
bool IsSimd128U4() const { return this->GetType() == TySimd128U4; }
bool IsSimd128U8() const { return this->GetType() == TySimd128U8; }
bool IsSimd128U4() const { return this->GetType() == TySimd128U4; }
bool IsSimd128U8() const { return this->GetType() == TySimd128U8; }
bool IsSimd128U16() const { return this->GetType() == TySimd128U16; }
bool IsSimd128B4() const { return this->GetType() == TySimd128B4; }
bool IsSimd128B8() const { return this->GetType() == TySimd128B8; }
bool IsSimd128B4() const { return this->GetType() == TySimd128B4; }
bool IsSimd128B8() const { return this->GetType() == TySimd128B8; }
bool IsSimd128B16() const { return this->GetType() == TySimd128B16; }
bool IsSimd128D2() const { return this->GetType() == TySimd128D2; }


bool IsSimd128D2() const { return this->GetType() == TySimd128D2; }

StackSym * GetFloat64EquivSym(Func *func);
bool IsFloat64() const { return this->GetType() == TyFloat64; }
StackSym * GetInt32EquivSym(Func *func);
bool IsInt32() const { return this->GetType() == TyInt32; }
bool IsUInt32() const { return this->GetType() == TyUint32; }



StackSym * GetVarEquivSym(Func *func);
bool IsVar() const { return this->GetType() == TyVar; }
bool IsTypeSpec() const { return this->m_isTypeSpec; }
Expand Down
1 change: 0 additions & 1 deletion lib/Runtime/ByteCode/AsmJsByteCodeWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ namespace Js
RegSlot R9, RegSlot R10, RegSlot R11, RegSlot R12, RegSlot R13, RegSlot R14, RegSlot R15, RegSlot R16, RegSlot R17);
template <typename SizePolicy> bool TryWriteAsmReg19 (OpCodeAsmJs op, RegSlot R0, RegSlot R1, RegSlot R2, RegSlot R3, RegSlot R4, RegSlot R5, RegSlot R6, RegSlot R7, RegSlot R8,
RegSlot R9, RegSlot R10, RegSlot R11, RegSlot R12, RegSlot R13, RegSlot R14, RegSlot R15, RegSlot R16, RegSlot R17, RegSlot R18);


template <typename SizePolicy> bool TryWriteAsmReg2IntConst1( OpCodeAsmJs op, RegSlot R0, RegSlot R1, int C2 );
template <typename SizePolicy> bool TryWriteInt1Const1 ( OpCodeAsmJs op, RegSlot R0, int C1 );
Expand Down
Loading

0 comments on commit 46617d7

Please sign in to comment.