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

Unified Diff: src/hydrogen.h

Issue 24366004: Split HCompareGeneric in a test and a branch part. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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
Index: src/hydrogen.h
diff --git a/src/hydrogen.h b/src/hydrogen.h
index be23fa84c34fcf54dc58a33cb9f9613410232109..6c0a3f3f8f69f533d132d1c8e3e5b588f222d7c7 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -1209,6 +1209,19 @@ class HGraphBuilder {
void AddSimulate(BailoutId id, RemovableSimulate removable = FIXED_SIMULATE);
+ HAndBranch* AndBranch(HInstruction* pluggable,
titzer 2013/10/10 14:05:25 Need a better name than "pluggable"
+ Token::Value condition,
+ BailoutId bailout_id) {
+ ASSERT(pluggable->IsLinked());
+ if (pluggable->HasObservableSideEffects()) {
+ Push(pluggable);
+ AddSimulate(bailout_id, REMOVABLE_SIMULATE);
+ return New<HAndBranch>(Pop(), condition);
+ }
+ return New<HAndBranch>(pluggable, condition);
+ }
+
+
protected:
virtual bool BuildGraph() = 0;
« no previous file with comments | « src/full-codegen.cc ('k') | src/hydrogen.cc » ('j') | src/ia32/lithium-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698