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

Side by Side Diff: src/parser.cc

Issue 6460030: Fix typo in r6697: Use assertThrows correctly in the added test regress-1122.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 | « no previous file | test/mjsunit/regress/regress-1122.js » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 strict_mode_ = (parent_ != NULL) && parent_->strict_mode_; 326 strict_mode_ = (parent_ != NULL) && parent_->strict_mode_;
327 *variable = this; 327 *variable = this;
328 } 328 }
329 329
330 330
331 TemporaryScope::~TemporaryScope() { 331 TemporaryScope::~TemporaryScope() {
332 *variable_ = parent_; 332 *variable_ = parent_;
333 } 333 }
334 334
335 335
336 const int Parser::kMaxNumFunctionParameters;
337
338
339 Handle<String> Parser::LookupSymbol(int symbol_id) { 336 Handle<String> Parser::LookupSymbol(int symbol_id) {
340 // Length of symbol cache is the number of identified symbols. 337 // Length of symbol cache is the number of identified symbols.
341 // If we are larger than that, or negative, it's not a cached symbol. 338 // If we are larger than that, or negative, it's not a cached symbol.
342 // This might also happen if there is no preparser symbol data, even 339 // This might also happen if there is no preparser symbol data, even
343 // if there is some preparser data. 340 // if there is some preparser data.
344 if (static_cast<unsigned>(symbol_id) 341 if (static_cast<unsigned>(symbol_id)
345 >= static_cast<unsigned>(symbol_cache_.length())) { 342 >= static_cast<unsigned>(symbol_cache_.length())) {
346 if (scanner().is_literal_ascii()) { 343 if (scanner().is_literal_ascii()) {
347 return Factory::LookupAsciiSymbol(scanner().literal_ascii_string()); 344 return Factory::LookupAsciiSymbol(scanner().literal_ascii_string());
348 } else { 345 } else {
(...skipping 4757 matching lines...) Expand 10 before | Expand all | Expand 10 after
5106 info->is_global(), 5103 info->is_global(),
5107 info->StrictMode()); 5104 info->StrictMode());
5108 } 5105 }
5109 } 5106 }
5110 5107
5111 info->SetFunction(result); 5108 info->SetFunction(result);
5112 return (result != NULL); 5109 return (result != NULL);
5113 } 5110 }
5114 5111
5115 } } // namespace v8::internal 5112 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-1122.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698