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

Side by Side Diff: src/preparser.h

Issue 220473014: Make stray 'return' an early error (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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/preparser.cc » ('j') | src/runtime.cc » ('J')
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 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 } 915 }
916 916
917 PreParserExpression NewThrowReferenceError(const char* type, int pos) { 917 PreParserExpression NewThrowReferenceError(const char* type, int pos) {
918 return PreParserExpression::Default(); 918 return PreParserExpression::Default();
919 } 919 }
920 PreParserExpression NewThrowSyntaxError( 920 PreParserExpression NewThrowSyntaxError(
921 const char* type, Handle<Object> arg, int pos) { 921 const char* type, Handle<Object> arg, int pos) {
922 return PreParserExpression::Default(); 922 return PreParserExpression::Default();
923 } 923 }
924 PreParserExpression NewThrowTypeError( 924 PreParserExpression NewThrowTypeError(
925 const char* type, Handle<Object> arg1, Handle<Object> arg2, int pos) { 925 const char* type, Handle<Object> arg, int pos) {
926 return PreParserExpression::Default(); 926 return PreParserExpression::Default();
927 } 927 }
928 928
929 // Reporting errors. 929 // Reporting errors.
930 void ReportMessageAt(Scanner::Location location, 930 void ReportMessageAt(Scanner::Location location,
931 const char* message, 931 const char* message,
932 Vector<const char*> args, 932 Vector<const char*> args,
933 bool is_reference_error = false); 933 bool is_reference_error = false);
934 void ReportMessageAt(Scanner::Location location, 934 void ReportMessageAt(Scanner::Location location,
935 const char* type, 935 const char* type,
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 "accessor_get_set"); 2177 "accessor_get_set");
2178 } 2178 }
2179 *ok = false; 2179 *ok = false;
2180 } 2180 }
2181 } 2181 }
2182 2182
2183 2183
2184 } } // v8::internal 2184 } } // v8::internal
2185 2185
2186 #endif // V8_PREPARSER_H 2186 #endif // V8_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/preparser.cc » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698