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

Side by Side Diff: src/fast-codegen.cc

Issue 300003: Recognize in the fast-mode code generator when a subexpression is a... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 UNREACHABLE(); 189 UNREACHABLE();
190 } 190 }
191 191
192 192
193 void FastCodeGenerator::VisitSlot(Slot* expr) { 193 void FastCodeGenerator::VisitSlot(Slot* expr) {
194 // Slots do not appear directly in the AST. 194 // Slots do not appear directly in the AST.
195 UNREACHABLE(); 195 UNREACHABLE();
196 } 196 }
197 197
198 198
199 void FastCodeGenerator::VisitLiteral(Literal* expr) {
200 // No code is emitted (here) for simple literals.
201 }
202
203
199 void FastCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) { 204 void FastCodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
200 UNREACHABLE(); 205 UNREACHABLE();
201 } 206 }
202 207
203 208
204 void FastCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { 209 void FastCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
205 UNREACHABLE(); 210 UNREACHABLE();
206 } 211 }
207 212
208 213
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 UNREACHABLE(); 265 UNREACHABLE();
261 } 266 }
262 267
263 268
264 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { 269 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) {
265 UNREACHABLE(); 270 UNREACHABLE();
266 } 271 }
267 272
268 273
269 } } // namespace v8::internal 274 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | src/ia32/fast-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698