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

Unified Diff: src/hydrogen.h

Issue 7739018: Inline functions with different contexts in the optimizing code generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase to current tip-of-tree. Created 9 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 3b586ff2071e4ec891076988019c057beba722a5..28057d8f716536c433df05c51fef773eeb819224 100644
--- a/src/hydrogen.h
+++ b/src/hydrogen.h
@@ -425,7 +425,8 @@ class HEnvironment: public ZoneObject {
HEnvironment* CopyForInlining(Handle<JSFunction> target,
FunctionLiteral* function,
HConstant* undefined,
- CallKind call_kind) const;
+ CallKind call_kind,
+ bool context_change) const;
void AddIncomingEdge(HBasicBlock* block, HEnvironment* other);
@@ -693,6 +694,12 @@ class HGraphBuilder: public AstVisitor {
BreakAndContinueScope* next_;
};
+#ifdef V8_TARGET_ARCH_IA32
+ static const bool kInlineContextChangeAllowed = true;
+#else
+ static const bool kInlineContextChangeAllowed = false;
+#endif
+
HGraphBuilder(CompilationInfo* info, TypeFeedbackOracle* oracle);
HGraph* CreateGraph();

Powered by Google App Engine
This is Rietveld 408576698