| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 void FastCodeGenerator::VisitConditional(Conditional* expr) { | 161 void FastCodeGenerator::VisitConditional(Conditional* expr) { |
| 162 UNREACHABLE(); | 162 UNREACHABLE(); |
| 163 } | 163 } |
| 164 | 164 |
| 165 | 165 |
| 166 void FastCodeGenerator::VisitVariableProxy(VariableProxy* expr) { | 166 void FastCodeGenerator::VisitVariableProxy(VariableProxy* expr) { |
| 167 Comment cmnt(masm_, "[ VariableProxy"); | 167 Comment cmnt(masm_, "[ VariableProxy"); |
| 168 Expression* rewrite = expr->var()->rewrite(); | 168 Expression* rewrite = expr->var()->rewrite(); |
| 169 ASSERT(rewrite != NULL); | 169 ASSERT(rewrite != NULL); |
| 170 |
| 171 // Forward to the proxy's rewrite. |
| 172 rewrite->set_location(expr->location()); |
| 170 Visit(rewrite); | 173 Visit(rewrite); |
| 171 } | 174 } |
| 172 | 175 |
| 173 | 176 |
| 174 void FastCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | 177 void FastCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
| 175 UNREACHABLE(); | 178 UNREACHABLE(); |
| 176 } | 179 } |
| 177 | 180 |
| 178 | 181 |
| 179 void FastCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { | 182 void FastCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 UNREACHABLE(); | 238 UNREACHABLE(); |
| 236 } | 239 } |
| 237 | 240 |
| 238 | 241 |
| 239 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { | 242 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
| 240 UNREACHABLE(); | 243 UNREACHABLE(); |
| 241 } | 244 } |
| 242 | 245 |
| 243 | 246 |
| 244 } } // namespace v8::internal | 247 } } // namespace v8::internal |
| OLD | NEW |