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

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

Issue 267118: Added first support for tracking locations of expressions in the... (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
« no previous file with comments | « src/compiler.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698