| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 FunctionBoilerplateLiteral* expr) { | 183 FunctionBoilerplateLiteral* expr) { |
| 184 UNREACHABLE(); | 184 UNREACHABLE(); |
| 185 } | 185 } |
| 186 | 186 |
| 187 | 187 |
| 188 void FastCodeGenerator::VisitConditional(Conditional* expr) { | 188 void FastCodeGenerator::VisitConditional(Conditional* expr) { |
| 189 UNREACHABLE(); | 189 UNREACHABLE(); |
| 190 } | 190 } |
| 191 | 191 |
| 192 | 192 |
| 193 void FastCodeGenerator::VisitVariableProxy(VariableProxy* expr) { | 193 void FastCodeGenerator::VisitSlot(Slot* expr) { |
| 194 Comment cmnt(masm_, "[ VariableProxy"); | 194 // Slots do not appear directly in the AST. |
| 195 Expression* rewrite = expr->var()->rewrite(); | 195 UNREACHABLE(); |
| 196 ASSERT(rewrite != NULL); | |
| 197 | |
| 198 // Forward to the proxy's rewrite. | |
| 199 rewrite->set_location(expr->location()); | |
| 200 Visit(rewrite); | |
| 201 } | 196 } |
| 202 | 197 |
| 203 | 198 |
| 204 void FastCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { | 199 void FastCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { |
| 205 UNREACHABLE(); | 200 UNREACHABLE(); |
| 206 } | 201 } |
| 207 | 202 |
| 208 | 203 |
| 209 void FastCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { | 204 void FastCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
| 210 UNREACHABLE(); | 205 UNREACHABLE(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 UNREACHABLE(); | 260 UNREACHABLE(); |
| 266 } | 261 } |
| 267 | 262 |
| 268 | 263 |
| 269 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { | 264 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
| 270 UNREACHABLE(); | 265 UNREACHABLE(); |
| 271 } | 266 } |
| 272 | 267 |
| 273 | 268 |
| 274 } } // namespace v8::internal | 269 } } // namespace v8::internal |
| OLD | NEW |