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

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

Issue 166163003: Add flags for write barrier elimination and local allocation folding. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comment by Hannes Payer. Created 6 years, 10 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 | « src/flag-definitions.h ('k') | src/hydrogen-instructions.cc » ('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 6410 matching lines...) Expand 10 before | Expand all | Expand 10 after
6421 return field_representation(); 6421 return field_representation();
6422 } else if (field_representation().IsExternal()) { 6422 } else if (field_representation().IsExternal()) {
6423 return Representation::External(); 6423 return Representation::External();
6424 } 6424 }
6425 } 6425 }
6426 return Representation::Tagged(); 6426 return Representation::Tagged();
6427 } 6427 }
6428 virtual void HandleSideEffectDominator(GVNFlag side_effect, 6428 virtual void HandleSideEffectDominator(GVNFlag side_effect,
6429 HValue* dominator) V8_OVERRIDE { 6429 HValue* dominator) V8_OVERRIDE {
6430 ASSERT(side_effect == kChangesNewSpacePromotion); 6430 ASSERT(side_effect == kChangesNewSpacePromotion);
6431 if (!FLAG_use_write_barrier_elimination) return;
6431 new_space_dominator_ = dominator; 6432 new_space_dominator_ = dominator;
6432 } 6433 }
6433 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 6434 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
6434 6435
6435 void SkipWriteBarrier() { write_barrier_mode_ = SKIP_WRITE_BARRIER; } 6436 void SkipWriteBarrier() { write_barrier_mode_ = SKIP_WRITE_BARRIER; }
6436 bool IsSkipWriteBarrier() const { 6437 bool IsSkipWriteBarrier() const {
6437 return write_barrier_mode_ == SKIP_WRITE_BARRIER; 6438 return write_barrier_mode_ == SKIP_WRITE_BARRIER;
6438 } 6439 }
6439 6440
6440 HValue* object() const { return OperandAt(0); } 6441 HValue* object() const { return OperandAt(0); }
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
7406 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7407 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7407 }; 7408 };
7408 7409
7409 7410
7410 #undef DECLARE_INSTRUCTION 7411 #undef DECLARE_INSTRUCTION
7411 #undef DECLARE_CONCRETE_INSTRUCTION 7412 #undef DECLARE_CONCRETE_INSTRUCTION
7412 7413
7413 } } // namespace v8::internal 7414 } } // namespace v8::internal
7414 7415
7415 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7416 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698