Skip to content

Commit

Permalink
Minor readability tweak to paranthesizing in if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
subbuss committed Mar 11, 2015
1 parent 09c29b8 commit 70432b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -198,8 +198,8 @@ public void addLoads(Map<Operand, Operand> varRenameMap) {
}
it.previous();
}
} else if (scopeBindingHasEscaped && (i.getOperation() == Operation.PUT_GLOBAL_VAR)
|| i.getOperation() == Operation.THREAD_POLL) {
} else if (scopeBindingHasEscaped && (i.getOperation() == Operation.PUT_GLOBAL_VAR
|| i.getOperation() == Operation.THREAD_POLL)) {
// 1. Global-var tracing can execute closures set up in previous trace-var calls
// in which case we would have the 'scopeBindingHasEscaped' flag set to true.
// 2. Threads can update bindings, so we treat thread poll boundaries the same way.
Expand Down
Expand Up @@ -260,8 +260,8 @@ public boolean addStores(Map<Operand, Operand> varRenameMap, Set<LocalVariable>
dirtyVars.clear();
}

if (scopeBindingHasEscaped && (i.getOperation() == Operation.PUT_GLOBAL_VAR)
|| i.getOperation() == Operation.THREAD_POLL) {
if (scopeBindingHasEscaped && (i.getOperation() == Operation.PUT_GLOBAL_VAR
|| i.getOperation() == Operation.THREAD_POLL)) {
// 1. Global-var tracing can execute closures set up in previous trace-var calls
// in which case we would have the 'scopeBindingHasEscaped' flag set to true.
// 2. Threads can update bindings, so we treat thread poll boundaries the same way.
Expand Down

0 comments on commit 70432b8

Please sign in to comment.