Observe smi as input for HCompareIDAndBranch
R=mvstanton@chromium.org Review URL: https://chromiumcodereview.appspot.com/16994002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15140 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
bcf5912b3f
commit
cff21dc168
@ -5008,7 +5008,7 @@ void HOptimizedGraphBuilder::VisitSwitchStatement(SwitchStatement* stmt) {
|
|||||||
label_value,
|
label_value,
|
||||||
Token::EQ_STRICT);
|
Token::EQ_STRICT);
|
||||||
compare_->set_observed_input_representation(
|
compare_->set_observed_input_representation(
|
||||||
Representation::Integer32(), Representation::Integer32());
|
Representation::Smi(), Representation::Smi());
|
||||||
compare = compare_;
|
compare = compare_;
|
||||||
} else {
|
} else {
|
||||||
compare = new(zone()) HStringCompareAndBranch(context, tag_value,
|
compare = new(zone()) HStringCompareAndBranch(context, tag_value,
|
||||||
@ -5373,7 +5373,7 @@ void HOptimizedGraphBuilder::VisitForInStatement(ForInStatement* stmt) {
|
|||||||
HCompareIDAndBranch* compare_index =
|
HCompareIDAndBranch* compare_index =
|
||||||
new(zone()) HCompareIDAndBranch(index, limit, Token::LT);
|
new(zone()) HCompareIDAndBranch(index, limit, Token::LT);
|
||||||
compare_index->set_observed_input_representation(
|
compare_index->set_observed_input_representation(
|
||||||
Representation::Integer32(), Representation::Integer32());
|
Representation::Smi(), Representation::Smi());
|
||||||
|
|
||||||
HBasicBlock* loop_body = graph()->CreateBasicBlock();
|
HBasicBlock* loop_body = graph()->CreateBasicBlock();
|
||||||
HBasicBlock* loop_successor = graph()->CreateBasicBlock();
|
HBasicBlock* loop_successor = graph()->CreateBasicBlock();
|
||||||
|
Loading…
Reference in New Issue
Block a user