| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 only_simple_this_property_assignments_(false), | 526 only_simple_this_property_assignments_(false), |
| 527 this_property_assignments_(isolate->factory()->empty_fixed_array()), | 527 this_property_assignments_(isolate->factory()->empty_fixed_array()), |
| 528 parser_(parser), | 528 parser_(parser), |
| 529 lexical_scope_parent_(parser->lexical_scope_), | 529 lexical_scope_parent_(parser->lexical_scope_), |
| 530 previous_scope_(parser->top_scope_), | 530 previous_scope_(parser->top_scope_), |
| 531 previous_with_nesting_level_(parser->with_nesting_level_), | 531 previous_with_nesting_level_(parser->with_nesting_level_), |
| 532 previous_ast_node_id_(isolate->ast_node_id()) { | 532 previous_ast_node_id_(isolate->ast_node_id()) { |
| 533 parser->top_scope_ = scope; | 533 parser->top_scope_ = scope; |
| 534 parser->lexical_scope_ = this; | 534 parser->lexical_scope_ = this; |
| 535 parser->with_nesting_level_ = 0; | 535 parser->with_nesting_level_ = 0; |
| 536 isolate->set_ast_node_id(AstNode::kRootAstId + 1); | 536 isolate->set_ast_node_id(AstNode::kFunctionEntryId + 1); |
| 537 } | 537 } |
| 538 | 538 |
| 539 | 539 |
| 540 LexicalScope::~LexicalScope() { | 540 LexicalScope::~LexicalScope() { |
| 541 parser_->top_scope_->Leave(); | 541 parser_->top_scope_->Leave(); |
| 542 parser_->top_scope_ = previous_scope_; | 542 parser_->top_scope_ = previous_scope_; |
| 543 parser_->lexical_scope_ = lexical_scope_parent_; | 543 parser_->lexical_scope_ = lexical_scope_parent_; |
| 544 parser_->with_nesting_level_ = previous_with_nesting_level_; | 544 parser_->with_nesting_level_ = previous_with_nesting_level_; |
| 545 parser_->isolate()->set_ast_node_id(previous_ast_node_id_); | 545 parser_->isolate()->set_ast_node_id(previous_ast_node_id_); |
| 546 } | 546 } |
| (...skipping 4602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5149 info->is_global(), | 5149 info->is_global(), |
| 5150 info->StrictMode()); | 5150 info->StrictMode()); |
| 5151 } | 5151 } |
| 5152 } | 5152 } |
| 5153 | 5153 |
| 5154 info->SetFunction(result); | 5154 info->SetFunction(result); |
| 5155 return (result != NULL); | 5155 return (result != NULL); |
| 5156 } | 5156 } |
| 5157 | 5157 |
| 5158 } } // namespace v8::internal | 5158 } } // namespace v8::internal |
| OLD | NEW |