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

Unified Diff: src/fast-codegen.cc

Issue 384078: Fast-codegen: Added support for arguments in functions. (Closed)
Patch Set: Created 11 years, 1 month 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/fast-codegen.cc
diff --git a/src/fast-codegen.cc b/src/fast-codegen.cc
index 1c69e21fffe6d72507deb9d0b2aabf61d6cecbd1..7fa9ff827ca840c1dbe2addd3c0a2d87c3249518 100644
--- a/src/fast-codegen.cc
+++ b/src/fast-codegen.cc
@@ -129,6 +129,20 @@ void FastCodeGenerator::VisitDeclarations(
}
+void FastCodeGenerator::VisitCondition(Expression* expression,
William Hesse 2009/11/12 09:56:49 This should be a separate change. Also, all place
Lasse Reichstein 2009/11/13 08:54:37 Removed for now.
+ Label* on_true,
+ Label* on_false) {
+ ASSERT(expression->context() >= Expression::kTest);
+ Label* saved_true_label = true_label_;
+ Label* saved_false_label = false_label_;
+ true_label_ = on_true;
+ false_label_ = on_false;
+ Visit(expression);
+ true_label_ = saved_true_label;
+ false_label_ = saved_false_label;
+}
+
+
void FastCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) {
if (FLAG_debug_info) {
CodeGenerator::RecordPositions(masm_, fun->start_position());

Powered by Google App Engine
This is Rietveld 408576698