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

Side by Side Diff: src/parser.cc

Issue 149133004: A64: Synchronize with r17807. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/objects-printer.cc ('k') | src/runtime.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 4096 matching lines...) Expand 10 before | Expand all | Expand 10 after
4107 Expect(Token::LPAREN, CHECK_OK); 4107 Expect(Token::LPAREN, CHECK_OK);
4108 scope->set_start_position(scanner().location().beg_pos); 4108 scope->set_start_position(scanner().location().beg_pos);
4109 Scanner::Location name_loc = Scanner::Location::invalid(); 4109 Scanner::Location name_loc = Scanner::Location::invalid();
4110 Scanner::Location dupe_loc = Scanner::Location::invalid(); 4110 Scanner::Location dupe_loc = Scanner::Location::invalid();
4111 Scanner::Location reserved_loc = Scanner::Location::invalid(); 4111 Scanner::Location reserved_loc = Scanner::Location::invalid();
4112 4112
4113 bool done = (peek() == Token::RPAREN); 4113 bool done = (peek() == Token::RPAREN);
4114 while (!done) { 4114 while (!done) {
4115 bool is_strict_reserved = false; 4115 bool is_strict_reserved = false;
4116 Handle<String> param_name = 4116 Handle<String> param_name =
4117 ParseIdentifierOrStrictReservedWord(&is_strict_reserved, 4117 ParseIdentifierOrStrictReservedWord(&is_strict_reserved, CHECK_OK);
4118 CHECK_OK);
4119 4118
4120 // Store locations for possible future error reports. 4119 // Store locations for possible future error reports.
4121 if (!name_loc.IsValid() && IsEvalOrArguments(param_name)) { 4120 if (!name_loc.IsValid() && IsEvalOrArguments(param_name)) {
4122 name_loc = scanner().location(); 4121 name_loc = scanner().location();
4123 } 4122 }
4124 if (!dupe_loc.IsValid() && top_scope_->IsDeclared(param_name)) { 4123 if (!dupe_loc.IsValid() && top_scope_->IsDeclared(param_name)) {
4125 duplicate_parameters = FunctionLiteral::kHasDuplicateParameters; 4124 duplicate_parameters = FunctionLiteral::kHasDuplicateParameters;
4126 dupe_loc = scanner().location(); 4125 dupe_loc = scanner().location();
4127 } 4126 }
4128 if (!reserved_loc.IsValid() && is_strict_reserved) { 4127 if (!reserved_loc.IsValid() && is_strict_reserved) {
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
5687 ASSERT(info()->isolate()->has_pending_exception()); 5686 ASSERT(info()->isolate()->has_pending_exception());
5688 } else { 5687 } else {
5689 result = ParseProgram(); 5688 result = ParseProgram();
5690 } 5689 }
5691 } 5690 }
5692 info()->SetFunction(result); 5691 info()->SetFunction(result);
5693 return (result != NULL); 5692 return (result != NULL);
5694 } 5693 }
5695 5694
5696 } } // namespace v8::internal 5695 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-printer.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698