Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: src/hydrogen-instructions.h

Issue 176923013: Mark HCompareMap as having Tagged representation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-346636.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-crbug-346636.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698