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

Side by Side Diff: src/parser.cc

Issue 198583003: Convert scanner buffers to use standard character types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « no previous file | src/preparse-data.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 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 3494 matching lines...) Expand 10 before | Expand all | Expand 10 after
3505 StrictMode strict_mode) { 3505 StrictMode strict_mode) {
3506 ASSERT(!has_error_); 3506 ASSERT(!has_error_);
3507 start_ = start; 3507 start_ = start;
3508 end_ = end; 3508 end_ = end;
3509 literals_ = literals; 3509 literals_ = literals;
3510 properties_ = properties; 3510 properties_ = properties;
3511 strict_mode_ = strict_mode; 3511 strict_mode_ = strict_mode;
3512 }; 3512 };
3513 3513
3514 // Logs a symbol creation of a literal or identifier. 3514 // Logs a symbol creation of a literal or identifier.
3515 virtual void LogAsciiSymbol(int start, Vector<const char> literal) { } 3515 virtual void LogOneByteSymbol(int start, Vector<const uint8_t> literal) { }
3516 virtual void LogUtf16Symbol(int start, Vector<const uc16> literal) { } 3516 virtual void LogTwoByteSymbol(int start, Vector<const uint16_t> literal) { }
3517 3517
3518 // Logs an error message and marks the log as containing an error. 3518 // Logs an error message and marks the log as containing an error.
3519 // Further logging will be ignored, and ExtractData will return a vector 3519 // Further logging will be ignored, and ExtractData will return a vector
3520 // representing the error only. 3520 // representing the error only.
3521 virtual void LogMessage(int start, 3521 virtual void LogMessage(int start,
3522 int end, 3522 int end,
3523 const char* message, 3523 const char* message,
3524 const char* argument_opt) { 3524 const char* argument_opt) {
3525 if (has_error_) return; 3525 if (has_error_) return;
3526 has_error_ = true; 3526 has_error_ = true;
(...skipping 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after
5168 ASSERT(info()->isolate()->has_pending_exception()); 5168 ASSERT(info()->isolate()->has_pending_exception());
5169 } else { 5169 } else {
5170 result = ParseProgram(); 5170 result = ParseProgram();
5171 } 5171 }
5172 } 5172 }
5173 info()->SetFunction(result); 5173 info()->SetFunction(result);
5174 return (result != NULL); 5174 return (result != NULL);
5175 } 5175 }
5176 5176
5177 } } // namespace v8::internal 5177 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/preparse-data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698