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

Side by Side Diff: src/rewriter.cc

Issue 23684058: Unify handling of position info in AST, part 3 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/parser.cc ('k') | src/typing.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 ZoneList<CaseClause*>* clauses = node->cases(); 200 ZoneList<CaseClause*>* clauses = node->cases();
201 bool set_after_switch = is_set_; 201 bool set_after_switch = is_set_;
202 for (int i = clauses->length() - 1; i >= 0; --i) { 202 for (int i = clauses->length() - 1; i >= 0; --i) {
203 CaseClause* clause = clauses->at(i); 203 CaseClause* clause = clauses->at(i);
204 Process(clause->statements()); 204 Process(clause->statements());
205 } 205 }
206 is_set_ = is_set_ && set_after_switch; 206 is_set_ = is_set_ && set_after_switch;
207 } 207 }
208 208
209 209
210 void Processor::VisitCaseClause(CaseClause* clause) {
211 UNREACHABLE();
212 }
213
214
210 void Processor::VisitContinueStatement(ContinueStatement* node) { 215 void Processor::VisitContinueStatement(ContinueStatement* node) {
211 is_set_ = false; 216 is_set_ = false;
212 } 217 }
213 218
214 219
215 void Processor::VisitBreakStatement(BreakStatement* node) { 220 void Processor::VisitBreakStatement(BreakStatement* node) {
216 is_set_ = false; 221 is_set_ = false;
217 } 222 }
218 223
219 224
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 processor.factory()->NewReturnStatement(result_proxy, pos); 284 processor.factory()->NewReturnStatement(result_proxy, pos);
280 body->Add(result_statement, info->zone()); 285 body->Add(result_statement, info->zone());
281 } 286 }
282 } 287 }
283 288
284 return true; 289 return true;
285 } 290 }
286 291
287 292
288 } } // namespace v8::internal 293 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698