Chromium Code Reviews| 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()); |