summaryrefslogtreecommitdiffstats
path: root/js/src
diff options
context:
space:
mode:
authoradeshkp <adeshkp@users.noreply.github.com>2019-03-14 09:53:02 -0400
committeradeshkp <adeshkp@users.noreply.github.com>2019-03-14 09:53:02 -0400
commit90d1ee25b1de235847605fbc95a9ddebcf5c061d (patch)
treebacd5705d6571f95a5fd1807f68c76ed8bd6ac6b /js/src
parent52be954e59b3ef06b7e8bfa28630e1005351d183 (diff)
downloadUXP-90d1ee25b1de235847605fbc95a9ddebcf5c061d.tar
UXP-90d1ee25b1de235847605fbc95a9ddebcf5c061d.tar.gz
UXP-90d1ee25b1de235847605fbc95a9ddebcf5c061d.tar.lz
UXP-90d1ee25b1de235847605fbc95a9ddebcf5c061d.tar.xz
UXP-90d1ee25b1de235847605fbc95a9ddebcf5c061d.zip
Remove a couple of unused variables
Diffstat (limited to 'js/src')
-rw-r--r--js/src/jit/StupidAllocator.cpp1
-rw-r--r--js/src/vm/ObjectGroup.cpp1
2 files changed, 0 insertions, 2 deletions
diff --git a/js/src/jit/StupidAllocator.cpp b/js/src/jit/StupidAllocator.cpp
index 8e3ea6286..55431e8e0 100644
--- a/js/src/jit/StupidAllocator.cpp
+++ b/js/src/jit/StupidAllocator.cpp
@@ -407,7 +407,6 @@ StupidAllocator::allocateForDefinition(LInstruction* ins, LDefinition* def)
{
uint32_t vreg = def->virtualRegister();
- CodePosition from;
if ((def->output()->isRegister() && def->policy() == LDefinition::FIXED) ||
def->policy() == LDefinition::MUST_REUSE_INPUT)
{
diff --git a/js/src/vm/ObjectGroup.cpp b/js/src/vm/ObjectGroup.cpp
index 1fbf8976b..46159a972 100644
--- a/js/src/vm/ObjectGroup.cpp
+++ b/js/src/vm/ObjectGroup.cpp
@@ -495,7 +495,6 @@ ObjectGroup::defaultNewGroup(ExclusiveContext* cx, const Class* clasp,
if (associated->is<JSFunction>()) {
// Canonicalize new functions to use the original one associated with its script.
- JSFunction* fun = &associated->as<JSFunction>();
associated = associated->as<JSFunction>().maybeCanonicalFunction();
// If we have previously cleared the 'new' script information for this