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

Unified Diff: src/hydrogen-instructions.h

Issue 22164003: Add explicit transition flag to HStoreNamedField. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index b7857244a5ac3c79aa62b71fb00e3a0a4499d691..18b0f5d4254b3934d2ffb48c81e8c6d09ee2ba43 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -6009,10 +6009,7 @@ class HStoreNamedField: public HTemplateInstruction<3> {
HObjectAccess access() const { return access_; }
HValue* new_space_dominator() const { return new_space_dominator_; }
-
- bool has_transition() const {
- return transition() != object();
- }
+ bool has_transition() const { return has_transition_; }
Handle<Map> transition_map() const {
if (has_transition()) {
@@ -6029,6 +6026,7 @@ class HStoreNamedField: public HTemplateInstruction<3> {
map->AddDependentCompilationInfo(DependentCode::kTransitionGroup, info);
}
SetOperandAt(2, map_constant);
+ has_transition_ = true;
}
bool NeedsWriteBarrier() {
@@ -6058,7 +6056,8 @@ class HStoreNamedField: public HTemplateInstruction<3> {
HValue* val)
: access_(access),
new_space_dominator_(NULL),
- write_barrier_mode_(UPDATE_WRITE_BARRIER) {
+ write_barrier_mode_(UPDATE_WRITE_BARRIER),
+ has_transition_(false) {
SetOperandAt(0, obj);
SetOperandAt(1, val);
SetOperandAt(2, obj);
@@ -6067,7 +6066,8 @@ class HStoreNamedField: public HTemplateInstruction<3> {
HObjectAccess access_;
HValue* new_space_dominator_;
- WriteBarrierMode write_barrier_mode_;
+ WriteBarrierMode write_barrier_mode_ : 1;
+ bool has_transition_ : 1;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698