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

Side by Side Diff: src/preparser.cc

Issue 8407002: Version 3.7.2 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 1 month 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/preparser.h ('k') | src/v8globals.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1357 log_->ResumeRecording(); 1357 log_->ResumeRecording();
1358 if (!*ok) Expression::Default(); 1358 if (!*ok) Expression::Default();
1359 1359
1360 Expect(i::Token::RBRACE, CHECK_OK); 1360 Expect(i::Token::RBRACE, CHECK_OK);
1361 1361
1362 // Position right after terminal '}'. 1362 // Position right after terminal '}'.
1363 int end_pos = scanner_->location().end_pos; 1363 int end_pos = scanner_->location().end_pos;
1364 log_->LogFunction(function_block_pos, end_pos, 1364 log_->LogFunction(function_block_pos, end_pos,
1365 function_scope.materialized_literal_count(), 1365 function_scope.materialized_literal_count(),
1366 function_scope.expected_properties(), 1366 function_scope.expected_properties(),
1367 strict_mode() ? 1 : 0); 1367 strict_mode_flag());
1368 } else { 1368 } else {
1369 ParseSourceElements(i::Token::RBRACE, CHECK_OK); 1369 ParseSourceElements(i::Token::RBRACE, CHECK_OK);
1370 Expect(i::Token::RBRACE, CHECK_OK); 1370 Expect(i::Token::RBRACE, CHECK_OK);
1371 } 1371 }
1372 1372
1373 if (strict_mode()) { 1373 if (strict_mode()) {
1374 int end_position = scanner_->location().end_pos; 1374 int end_position = scanner_->location().end_pos;
1375 CheckOctalLiteral(start_position, end_position, CHECK_OK); 1375 CheckOctalLiteral(start_position, end_position, CHECK_OK);
1376 CheckDelayedStrictModeViolation(start_position, end_position, CHECK_OK); 1376 CheckDelayedStrictModeViolation(start_position, end_position, CHECK_OK);
1377 return Expression::StrictFunction(); 1377 return Expression::StrictFunction();
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 backing_store_.Add(static_cast<byte>((ascii_length >> 14) | 0x80u)); 1714 backing_store_.Add(static_cast<byte>((ascii_length >> 14) | 0x80u));
1715 } 1715 }
1716 backing_store_.Add(static_cast<byte>((ascii_length >> 7) | 0x80u)); 1716 backing_store_.Add(static_cast<byte>((ascii_length >> 7) | 0x80u));
1717 } 1717 }
1718 backing_store_.Add(static_cast<byte>(ascii_length & 0x7f)); 1718 backing_store_.Add(static_cast<byte>(ascii_length & 0x7f));
1719 1719
1720 backing_store_.AddBlock(bytes); 1720 backing_store_.AddBlock(bytes);
1721 return backing_store_.EndSequence().start(); 1721 return backing_store_.EndSequence().start();
1722 } 1722 }
1723 } } // v8::preparser 1723 } } // v8::preparser
OLDNEW
« no previous file with comments | « src/preparser.h ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698