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

Side by Side Diff: src/preparser.h

Issue 839053004: src: fix build on freebsd (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « src/debug.cc ('k') | src/unique.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PREPARSER_H 5 #ifndef V8_PREPARSER_H
6 #define V8_PREPARSER_H 6 #define V8_PREPARSER_H
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 // Report syntax errors. 460 // Report syntax errors.
461 void ReportMessage(const char* message, const char* arg = NULL, 461 void ReportMessage(const char* message, const char* arg = NULL,
462 bool is_reference_error = false) { 462 bool is_reference_error = false) {
463 Scanner::Location source_location = scanner()->location(); 463 Scanner::Location source_location = scanner()->location();
464 Traits::ReportMessageAt(source_location, message, arg, is_reference_error); 464 Traits::ReportMessageAt(source_location, message, arg, is_reference_error);
465 } 465 }
466 466
467 void ReportMessageAt(Scanner::Location location, const char* message, 467 void ReportMessageAt(Scanner::Location location, const char* message,
468 bool is_reference_error = false) { 468 bool is_reference_error = false) {
469 Traits::ReportMessageAt(location, message, 469 Traits::ReportMessageAt(location, message,
470 reinterpret_cast<const char*>(NULL), 470 reinterpret_cast<const char*>(0),
471 is_reference_error); 471 is_reference_error);
472 } 472 }
473 473
474 void ReportUnexpectedToken(Token::Value token); 474 void ReportUnexpectedToken(Token::Value token);
475 475
476 // Recursive descent functions: 476 // Recursive descent functions:
477 477
478 // Parses an identifier that is valid for the current scope, in particular it 478 // Parses an identifier that is valid for the current scope, in particular it
479 // fails on strict mode future reserved keywords in a strict scope. If 479 // fails on strict mode future reserved keywords in a strict scope. If
480 // allow_eval_or_arguments is kAllowEvalOrArguments, we allow "eval" or 480 // allow_eval_or_arguments is kAllowEvalOrArguments, we allow "eval" or
(...skipping 2487 matching lines...) Expand 10 before | Expand all | Expand 10 after
2968 DCHECK(IsAccessorAccessorConflict(old_type, type)); 2968 DCHECK(IsAccessorAccessorConflict(old_type, type));
2969 // Both accessors of the same type. 2969 // Both accessors of the same type.
2970 parser()->ReportMessage("accessor_get_set"); 2970 parser()->ReportMessage("accessor_get_set");
2971 } 2971 }
2972 *ok = false; 2972 *ok = false;
2973 } 2973 }
2974 } 2974 }
2975 } } // v8::internal 2975 } } // v8::internal
2976 2976
2977 #endif // V8_PREPARSER_H 2977 #endif // V8_PREPARSER_H
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/unique.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698