projects
/
platform
/
upstream
/
v8.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efd1f3e
)
[turbofan] false is also falsish.
author
Benedikt Meurer
<bmeurer@chromium.org>
Fri, 19 Dec 2014 14:08:48 +0000
(15:08 +0100)
committer
Benedikt Meurer
<bmeurer@chromium.org>
Fri, 19 Dec 2014 14:09:06 +0000
(14:09 +0000)
R=titzer@chromium.org
Review URL: https://codereview.chromium.org/
814833006
Cr-Commit-Position: refs/heads/master@{#25904}
src/compiler/typer.cc
patch
|
blob
|
history
diff --git
a/src/compiler/typer.cc
b/src/compiler/typer.cc
index dadcb47c22f20b2a1fec98500f320d9edb50fc47..887b55b0110879179681f777664b938502434407 100644
(file)
--- a/
src/compiler/typer.cc
+++ b/
src/compiler/typer.cc
@@
-189,7
+189,9
@@
Typer::Typer(Graph* graph, MaybeHandle<Context> context)
signed32ish = Type::Union(signed32, truncating_to_zero, zone);
unsigned32ish = Type::Union(unsigned32, truncating_to_zero, zone);
falsish = Type::Union(Type::Undetectable(),
- Type::Union(zeroish, undefined_or_null, zone), zone);
+ Type::Union(Type::Union(singleton_false, zeroish, zone),
+ undefined_or_null, zone),
+ zone);
integer = Type::Range(minusinfinity, infinity, zone);
weakint = Type::Union(integer, nan_or_minuszero, zone);