aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-12-24 10:56:36 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-12-24 10:56:36 -0800
commit59051ea5144993b2e2d94bb727e7dc5e33cb140a (patch)
treeb21a7c28c316d2f241ed6b7601a490f1e193f953
parent4202310613cf8fa4c4c544fbc17aab55d8b6b37c (diff)
remove outdated comment
-rw-r--r--tools/js-optimizer.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index 296a5cae..c63cb36a 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -2149,9 +2149,6 @@ var IGNORABLE_ELIMINATOR_SCAN_NODES = set('num', 'toplevel', 'string', 'break',
var ABORTING_ELIMINATOR_SCAN_NODES = set('new', 'object', 'function', 'defun', 'for', 'while', 'array', 'throw'); // we could handle some of these, TODO, but nontrivial (e.g. for while, the condition is hit multiple times after the body)
function isTempDoublePtrAccess(node) { // these are used in bitcasts; they are not really affecting memory, and should cause no invalidation
- // XXX note that we assume they have no effect. this is only true due to the compiler emitting (write, read)
- // using the comma operator, so they are not split up. Otherwise, we would need to invalidate
- // tempDoublePtr when it is used, so write; read; write; read; would not become write; write; read; read;
assert(node[0] === 'sub');
return (node[2][0] === 'name' && node[2][1] === 'tempDoublePtr') ||
(node[2][0] === 'binary' && ((node[2][2][0] === 'name' && node[2][2][1] === 'tempDoublePtr') ||