OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1610 HBasicBlock* false_target = NULL) | 1610 HBasicBlock* false_target = NULL) |
1611 : HUnaryControlInstruction(value, true_target, false_target), | 1611 : HUnaryControlInstruction(value, true_target, false_target), |
1612 known_successor_index_(kNoKnownSuccessorIndex), map_(Unique<Map>(map)) { | 1612 known_successor_index_(kNoKnownSuccessorIndex), map_(Unique<Map>(map)) { |
1613 ASSERT(!map.is_null()); | 1613 ASSERT(!map.is_null()); |
1614 is_stable_ = map->is_stable(); | 1614 is_stable_ = map->is_stable(); |
1615 | 1615 |
1616 if (is_stable_) { | 1616 if (is_stable_) { |
1617 map->AddDependentCompilationInfo( | 1617 map->AddDependentCompilationInfo( |
1618 DependentCode::kPrototypeCheckGroup, info); | 1618 DependentCode::kPrototypeCheckGroup, info); |
1619 } | 1619 } |
| 1620 set_representation(Representation::Tagged()); |
1620 } | 1621 } |
1621 | 1622 |
1622 int known_successor_index_; | 1623 int known_successor_index_; |
1623 bool is_stable_; | 1624 bool is_stable_; |
1624 Unique<Map> map_; | 1625 Unique<Map> map_; |
1625 }; | 1626 }; |
1626 | 1627 |
1627 | 1628 |
1628 class HContext V8_FINAL : public HTemplateInstruction<0> { | 1629 class HContext V8_FINAL : public HTemplateInstruction<0> { |
1629 public: | 1630 public: |
(...skipping 5889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7519 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7520 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
7520 }; | 7521 }; |
7521 | 7522 |
7522 | 7523 |
7523 #undef DECLARE_INSTRUCTION | 7524 #undef DECLARE_INSTRUCTION |
7524 #undef DECLARE_CONCRETE_INSTRUCTION | 7525 #undef DECLARE_CONCRETE_INSTRUCTION |
7525 | 7526 |
7526 } } // namespace v8::internal | 7527 } } // namespace v8::internal |
7527 | 7528 |
7528 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7529 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |