Skip to content

Commit

Permalink
Bug 1832582 part 1 - Remove unused IonBytecodeInfo::modifiesArguments…
Browse files Browse the repository at this point in the history
… flag. r=iain

Differential Revision: https://phabricator.services.mozilla.com/D178650
  • Loading branch information
jandem committed May 30, 2023
1 parent 12d9d9e commit 542a9eb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions js/src/jit/BytecodeAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,6 @@ IonBytecodeInfo js::jit::AnalyzeBytecodeForIon(JSContext* cx,

for (const BytecodeLocation& location : iterator) {
switch (location.getOp()) {
case JSOp::SetArg:
result.modifiesArguments = true;
break;

case JSOp::GetName:
case JSOp::BindName:
case JSOp::BindVar:
Expand Down
4 changes: 0 additions & 4 deletions js/src/jit/JitScript.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ class JitZone;
// in JitScript.
struct IonBytecodeInfo {
bool usesEnvironmentChain = false;
bool modifiesArguments = false;
};

// Magic BaselineScript value indicating Baseline compilation has been disabled.
Expand Down Expand Up @@ -430,9 +429,6 @@ class alignas(uintptr_t) JitScript final : public TrailingArray {

EnvironmentObject* templateEnvironment() const { return templateEnv_.ref(); }

bool modifiesArguments() const {
return cachedIonBytecodeInfo().modifiesArguments;
}
bool usesEnvironmentChain() const {
return cachedIonBytecodeInfo().usesEnvironmentChain;
}
Expand Down
2 changes: 0 additions & 2 deletions js/src/jit/WarpBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,8 +929,6 @@ bool WarpBuilder::build_GetFrameArg(BytecodeLocation loc) {
}

bool WarpBuilder::build_SetArg(BytecodeLocation loc) {
MOZ_ASSERT(script_->jitScript()->modifiesArguments());

uint32_t arg = loc.arg();
MDefinition* val = current->peek(-1);

Expand Down

0 comments on commit 542a9eb

Please sign in to comment.