aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-21 17:03:36 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-21 17:50:46 -0800
commitb604a07c61dac68d22542c030cbfb886fbf2a781 (patch)
tree7abc50817e23193e25908aff55ffb230ab77c054 /tools
parent68d6af077f116819bddb5797d9f8c8bd37998bff (diff)
rename a variable to our conventions
Diffstat (limited to 'tools')
-rw-r--r--tools/js-optimizer.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index 39456d40..a66fe346 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -2133,7 +2133,7 @@ function registerizeHarder(ast) {
var junctions = [];
var blocks = [];
- var curEntryJunction = null;
+ var currEntryJunction = null;
var nextBasicBlock = null;
var isInExpr = 0;
var activeLabels = [{}];
@@ -2165,22 +2165,22 @@ function registerizeHarder(ast) {
// Set the next entry junction to the given id.
// This can be used to enter at a previously-declared point.
assert(nextBasicBlock.nodes.length === 0, 'refusing to abandon an in-progress basic block')
- curEntryJunction = id;
+ currEntryJunction = id;
}
function joinJunction(id) {
// Complete the pending basic block by exiting at this position.
// This can be used to exit at a previously-declared point.
- if (curEntryJunction !== null) {
+ if (currEntryJunction !== null) {
nextBasicBlock.id = blocks.length;
- nextBasicBlock.entry = curEntryJunction;
+ nextBasicBlock.entry = currEntryJunction;
nextBasicBlock.exit = id;
- junctions[curEntryJunction].outblocks[nextBasicBlock.id] = 1;
+ junctions[currEntryJunction].outblocks[nextBasicBlock.id] = 1;
junctions[id].inblocks[nextBasicBlock.id] = 1;
blocks.push(nextBasicBlock);
}
nextBasicBlock = { id: null, entry: null, exit: null, pre: {}, nodes: [], isexpr: [], use: {}, kill: {} };
- curEntryJunction = id;
+ currEntryJunction = id;
return id;
}
@@ -2319,7 +2319,7 @@ function registerizeHarder(ast) {
// Any code traversed without an active entry junction must be dead,
// as the resulting block could never be entered. Let's remove it.
- if (curEntryJunction === null && junctions.length > 0) {
+ if (currEntryJunction === null && junctions.length > 0) {
morphNode(node, ['block', []]);
return;
}