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

Side by Side Diff: src/parser.cc

Issue 15077: Merge bleeding-edge change 985, RecordStatementPosition reform, into... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 12 years 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/codegen-ia32.cc ('k') | test/mjsunit/mjsunit.status » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 1313
1314 case Token::TRY: { 1314 case Token::TRY: {
1315 // NOTE: It is somewhat complicated to have labels on 1315 // NOTE: It is somewhat complicated to have labels on
1316 // try-statements. When breaking out of a try-finally statement, 1316 // try-statements. When breaking out of a try-finally statement,
1317 // one must take great care not to treat it as a 1317 // one must take great care not to treat it as a
1318 // fall-through. It is much easier just to wrap the entire 1318 // fall-through. It is much easier just to wrap the entire
1319 // try-statement in a statement block and put the labels there 1319 // try-statement in a statement block and put the labels there
1320 Block* result = NEW(Block(labels, 1, false)); 1320 Block* result = NEW(Block(labels, 1, false));
1321 Target target(this, result); 1321 Target target(this, result);
1322 TryStatement* statement = ParseTryStatement(CHECK_OK); 1322 TryStatement* statement = ParseTryStatement(CHECK_OK);
1323 if (statement) {
1324 statement->set_statement_pos(statement_pos);
1325 }
1323 if (result) result->AddStatement(statement); 1326 if (result) result->AddStatement(statement);
1324 return result; 1327 return result;
1325 } 1328 }
1326 1329
1327 case Token::FUNCTION: 1330 case Token::FUNCTION:
1328 return ParseFunctionDeclaration(ok); 1331 return ParseFunctionDeclaration(ok);
1329 1332
1330 case Token::NATIVE: 1333 case Token::NATIVE:
1331 return ParseNativeDeclaration(ok); 1334 return ParseNativeDeclaration(ok);
1332 1335
(...skipping 3034 matching lines...) Expand 10 before | Expand all | Expand 10 after
4367 start_position, 4370 start_position,
4368 is_expression); 4371 is_expression);
4369 return result; 4372 return result;
4370 } 4373 }
4371 4374
4372 4375
4373 #undef NEW 4376 #undef NEW
4374 4377
4375 4378
4376 } } // namespace v8::internal 4379 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen-ia32.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698