| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |