Skip to content

Commit 27a959d

Browse files
committed
Fix indentation
1 parent 65a250d commit 27a959d

File tree

2 files changed

+51
-51
lines changed

2 files changed

+51
-51
lines changed

lib/Backend/BackwardPass.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4013,7 +4013,7 @@ bool
40134013
BackwardPass::IsFormalParamSym(Func * func, Sym * sym) const
40144014
{
40154015
Assert(sym);
4016-
4016+
40174017
if (sym->IsPropertySym())
40184018
{
40194019
//If the sym is a propertySym, then see if the propertyId is within the range of the formals
@@ -4034,9 +4034,9 @@ BackwardPass::IsFormalParamSym(Func * func, Sym * sym) const
40344034
struct BvToDump
40354035
{
40364036
const BVSparse<JitArenaAllocator>* bv;
4037-
char16* tag;
4037+
const char16* tag;
40384038
size_t tagLen;
4039-
BvToDump(const BVSparse<JitArenaAllocator>* bv, char16* tag) :
4039+
BvToDump(const BVSparse<JitArenaAllocator>* bv, const char16* tag) :
40404040
bv(bv),
40414041
tag(tag),
40424042
tagLen(bv ? wcslen(tag) : 0)
@@ -4090,7 +4090,7 @@ BackwardPass::TraceInstrUses(BasicBlock * block, IR::Instr* instr, bool isStart)
40904090
{
40914091
if ((!IsCollectionPass() || tag == Js::CaptureByteCodeRegUsePhase) && IsTraceEnabled() && Js::Configuration::Global.flags.Verbose)
40924092
{
4093-
char16* tagName =
4093+
const char16* tagName =
40944094
tag == Js::CaptureByteCodeRegUsePhase ? _u("CAPTURE BYTECODE REGISTER") : (
40954095
tag == Js::BackwardPhase ? _u("BACKWARD") : (
40964096
tag == Js::DeadStorePhase ? _u("DEADSTORE") :
@@ -5139,8 +5139,8 @@ bool
51395139
BackwardPass::ProcessSymUse(Sym * sym, bool isRegOpndUse, BOOLEAN isNonByteCodeUse)
51405140
{
51415141
BasicBlock * block = this->currentBlock;
5142-
5143-
if (CanDeadStoreInstrForScopeObjRemoval(sym))
5142+
5143+
if (CanDeadStoreInstrForScopeObjRemoval(sym))
51445144
{
51455145
return false;
51465146
}
@@ -5412,7 +5412,7 @@ BackwardPass::TrackObjTypeSpecProperties(IR::PropertySymOpnd *opnd, BasicBlock *
54125412
}
54135413
bucket->SetMonoGuardType(nullptr);
54145414
}
5415-
5415+
54165416
if (!opnd->IsTypeAvailable())
54175417
{
54185418
// Stop tracking the guarded properties if there's not another type check upstream.
@@ -6560,7 +6560,7 @@ BackwardPass::TrackIntUsage(IR::Instr *const instr)
65606560
SetNegativeZeroDoesNotMatterIfLastUse(instr->GetSrc2());
65616561
break;
65626562
}
6563-
6563+
65646564
// -0 + -0 == -0. As long as one src is guaranteed to not be -0, -0 does not matter for the other src. Pick a
65656565
// src for which to ignore negative zero, based on which sym is last-use. If both syms are last-use, src2 is
65666566
// picked arbitrarily.
@@ -7650,9 +7650,9 @@ BackwardPass::DeadStoreInstr(IR::Instr *instr)
76507650
tempBv.Copy(this->currentBlock->byteCodeUpwardExposedUsed);
76517651
#endif
76527652
PropertySym *unusedPropertySym = nullptr;
7653-
7653+
76547654
GlobOpt::TrackByteCodeSymUsed(instr, this->currentBlock->byteCodeUpwardExposedUsed, &unusedPropertySym);
7655-
7655+
76567656
#if DBG
76577657
BVSparse<JitArenaAllocator> tempBv2(this->tempAlloc);
76587658
tempBv2.Copy(this->currentBlock->byteCodeUpwardExposedUsed);
@@ -7690,7 +7690,7 @@ BackwardPass::DeadStoreInstr(IR::Instr *instr)
76907690
}
76917691
#endif
76927692

7693-
7693+
76947694
if (instr->m_opcode == Js::OpCode::ArgIn_A)
76957695
{
76967696
//Ignore tracking ArgIn for "this", as argInsCount only tracks other params - unless it is a asmjs function(which doesn't have a "this").
@@ -7702,7 +7702,7 @@ BackwardPass::DeadStoreInstr(IR::Instr *instr)
77027702
}
77037703

77047704
TraceDeadStoreOfInstrsForScopeObjectRemoval();
7705-
7705+
77067706
block->RemoveInstr(instr);
77077707
return true;
77087708
}

lib/Runtime/Language/JavascriptOperators.cpp

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,52 +1002,52 @@ using namespace Js;
10021002
{
10031003
return FALSE;
10041004
}
1005-
RecyclableObject* object = RecyclableObject::UnsafeFromVar(instance);
1005+
RecyclableObject* object = RecyclableObject::UnsafeFromVar(instance);
10061006

1007-
if (JavascriptProxy::Is(instance))
1008-
{
1009-
PropertyDescriptor desc;
1010-
return GetOwnPropertyDescriptor(object, propertyId, requestContext, &desc);
1011-
}
1007+
if (JavascriptProxy::Is(instance))
1008+
{
1009+
PropertyDescriptor desc;
1010+
return GetOwnPropertyDescriptor(object, propertyId, requestContext, &desc);
1011+
}
10121012

10131013
// If we have a PropertyString, attempt to shortcut the lookup by using its caches
1014-
if (propString != nullptr)
1014+
if (propString != nullptr)
1015+
{
1016+
PropertyCacheOperationInfo info;
1017+
if (propString->GetLdElemInlineCache()->PretendTryGetProperty(object->GetType(), &info))
1018+
{
1019+
switch (info.cacheType)
10151020
{
1016-
PropertyCacheOperationInfo info;
1017-
if (propString->GetLdElemInlineCache()->PretendTryGetProperty(object->GetType(), &info))
1018-
{
1019-
switch (info.cacheType)
1020-
{
1021-
case CacheType_Local:
1022-
Assert(object->HasOwnProperty(propertyId));
1023-
return TRUE;
1024-
case CacheType_Proto:
1025-
Assert(!object->HasOwnProperty(propertyId));
1026-
return FALSE;
1027-
default:
1021+
case CacheType_Local:
1022+
Assert(object->HasOwnProperty(propertyId));
1023+
return TRUE;
1024+
case CacheType_Proto:
1025+
Assert(!object->HasOwnProperty(propertyId));
1026+
return FALSE;
1027+
default:
10281028
// We had a cache hit, but cache doesn't tell us if we have an own property
1029-
break;
1030-
}
1031-
}
1032-
if (propString->GetStElemInlineCache()->PretendTrySetProperty(object->GetType(), object->GetType(), &info))
1033-
{
1034-
switch (info.cacheType)
1035-
{
1036-
case CacheType_Local:
1037-
Assert(object->HasOwnProperty(propertyId));
1038-
return TRUE;
1039-
case CacheType_LocalWithoutProperty:
1040-
Assert(!object->HasOwnProperty(propertyId));
1041-
return FALSE;
1042-
default:
1029+
break;
1030+
}
1031+
}
1032+
if (propString->GetStElemInlineCache()->PretendTrySetProperty(object->GetType(), object->GetType(), &info))
1033+
{
1034+
switch (info.cacheType)
1035+
{
1036+
case CacheType_Local:
1037+
Assert(object->HasOwnProperty(propertyId));
1038+
return TRUE;
1039+
case CacheType_LocalWithoutProperty:
1040+
Assert(!object->HasOwnProperty(propertyId));
1041+
return FALSE;
1042+
default:
10431043
// We had a cache hit, but cache doesn't tell us if we have an own property
1044-
break;
1045-
}
1046-
}
1044+
break;
10471045
}
1048-
1049-
return object && object->HasOwnProperty(propertyId);
10501046
}
1047+
}
1048+
1049+
return object && object->HasOwnProperty(propertyId);
1050+
}
10511051

10521052
BOOL JavascriptOperators::GetOwnAccessors(Var instance, PropertyId propertyId, Var* getter, Var* setter, ScriptContext * requestContext)
10531053
{
@@ -2518,7 +2518,7 @@ using namespace Js;
25182518
bool isRoot,
25192519
bool allowUndecInConsoleScope,
25202520
BOOL *result)
2521-
{
2521+
{
25222522
*result = FALSE;
25232523
Var setterValueOrProxy = nullptr;
25242524
DescriptorFlags flags = None;

0 commit comments

Comments
 (0)