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

Side by Side Diff: src/parser.cc

Issue 10559082: Remove unused variable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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 | no next file » | 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 6008 matching lines...) Expand 10 before | Expand all | Expand 10 after
6019 result->contains_anchor = parser.contains_anchor(); 6019 result->contains_anchor = parser.contains_anchor();
6020 result->capture_count = capture_count; 6020 result->capture_count = capture_count;
6021 } 6021 }
6022 return !parser.failed(); 6022 return !parser.failed();
6023 } 6023 }
6024 6024
6025 6025
6026 bool ParserApi::Parse(CompilationInfo* info, int parsing_flags) { 6026 bool ParserApi::Parse(CompilationInfo* info, int parsing_flags) {
6027 ASSERT(info->function() == NULL); 6027 ASSERT(info->function() == NULL);
6028 FunctionLiteral* result = NULL; 6028 FunctionLiteral* result = NULL;
6029 Handle<Script> script = info->script();
6030 ASSERT((parsing_flags & kLanguageModeMask) == CLASSIC_MODE); 6029 ASSERT((parsing_flags & kLanguageModeMask) == CLASSIC_MODE);
6031 if (!info->is_native() && FLAG_harmony_scoping) { 6030 if (!info->is_native() && FLAG_harmony_scoping) {
6032 // Harmony scoping is requested. 6031 // Harmony scoping is requested.
6033 parsing_flags |= EXTENDED_MODE; 6032 parsing_flags |= EXTENDED_MODE;
6034 } 6033 }
6035 if (!info->is_native() && FLAG_harmony_modules) { 6034 if (!info->is_native() && FLAG_harmony_modules) {
6036 parsing_flags |= kAllowModules; 6035 parsing_flags |= kAllowModules;
6037 } 6036 }
6038 if (FLAG_allow_natives_syntax || info->is_native()) { 6037 if (FLAG_allow_natives_syntax || info->is_native()) {
6039 // We require %identifier(..) syntax. 6038 // We require %identifier(..) syntax.
(...skipping 23 matching lines...) Expand all
6063 ASSERT(info->isolate()->has_pending_exception()); 6062 ASSERT(info->isolate()->has_pending_exception());
6064 } else { 6063 } else {
6065 result = parser.ParseProgram(); 6064 result = parser.ParseProgram();
6066 } 6065 }
6067 } 6066 }
6068 info->SetFunction(result); 6067 info->SetFunction(result);
6069 return (result != NULL); 6068 return (result != NULL);
6070 } 6069 }
6071 6070
6072 } } // namespace v8::internal 6071 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698