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

Side by Side Diff: src/ast.h

Issue 8344046: Reapply r9673 "Scope tree serialization and ScopeIterator cleanup." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Skip nested contexts of an internal function. Created 9 years, 2 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 | src/ast-inl.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 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 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after
1610 1610
1611 FunctionLiteral(Isolate* isolate, 1611 FunctionLiteral(Isolate* isolate,
1612 Handle<String> name, 1612 Handle<String> name,
1613 Scope* scope, 1613 Scope* scope,
1614 ZoneList<Statement*>* body, 1614 ZoneList<Statement*>* body,
1615 int materialized_literal_count, 1615 int materialized_literal_count,
1616 int expected_property_count, 1616 int expected_property_count,
1617 bool has_only_simple_this_property_assignments, 1617 bool has_only_simple_this_property_assignments,
1618 Handle<FixedArray> this_property_assignments, 1618 Handle<FixedArray> this_property_assignments,
1619 int num_parameters, 1619 int num_parameters,
1620 int start_position,
1621 int end_position,
1622 Type type, 1620 Type type,
1623 bool has_duplicate_parameters) 1621 bool has_duplicate_parameters)
1624 : Expression(isolate), 1622 : Expression(isolate),
1625 name_(name), 1623 name_(name),
1626 scope_(scope), 1624 scope_(scope),
1627 body_(body), 1625 body_(body),
1628 materialized_literal_count_(materialized_literal_count), 1626 materialized_literal_count_(materialized_literal_count),
1629 expected_property_count_(expected_property_count), 1627 expected_property_count_(expected_property_count),
1630 has_only_simple_this_property_assignments_( 1628 has_only_simple_this_property_assignments_(
1631 has_only_simple_this_property_assignments), 1629 has_only_simple_this_property_assignments),
1632 this_property_assignments_(this_property_assignments), 1630 this_property_assignments_(this_property_assignments),
1633 num_parameters_(num_parameters), 1631 num_parameters_(num_parameters),
1634 start_position_(start_position),
1635 end_position_(end_position),
1636 function_token_position_(RelocInfo::kNoPosition), 1632 function_token_position_(RelocInfo::kNoPosition),
1637 inferred_name_(HEAP->empty_string()), 1633 inferred_name_(HEAP->empty_string()),
1638 is_expression_(type != DECLARATION), 1634 is_expression_(type != DECLARATION),
1639 is_anonymous_(type == ANONYMOUS_EXPRESSION), 1635 is_anonymous_(type == ANONYMOUS_EXPRESSION),
1640 pretenure_(false), 1636 pretenure_(false),
1641 has_duplicate_parameters_(has_duplicate_parameters) { 1637 has_duplicate_parameters_(has_duplicate_parameters) {
1642 } 1638 }
1643 1639
1644 DECLARE_NODE_TYPE(FunctionLiteral) 1640 DECLARE_NODE_TYPE(FunctionLiteral)
1645 1641
1646 Handle<String> name() const { return name_; } 1642 Handle<String> name() const { return name_; }
1647 Scope* scope() const { return scope_; } 1643 Scope* scope() const { return scope_; }
1648 ZoneList<Statement*>* body() const { return body_; } 1644 ZoneList<Statement*>* body() const { return body_; }
1649 void set_function_token_position(int pos) { function_token_position_ = pos; } 1645 void set_function_token_position(int pos) { function_token_position_ = pos; }
1650 int function_token_position() const { return function_token_position_; } 1646 int function_token_position() const { return function_token_position_; }
1651 int start_position() const { return start_position_; } 1647 int start_position() const;
1652 int end_position() const { return end_position_; } 1648 int end_position() const;
1653 bool is_expression() const { return is_expression_; } 1649 bool is_expression() const { return is_expression_; }
1654 bool is_anonymous() const { return is_anonymous_; } 1650 bool is_anonymous() const { return is_anonymous_; }
1655 bool strict_mode() const; 1651 bool strict_mode() const;
1656 1652
1657 int materialized_literal_count() { return materialized_literal_count_; } 1653 int materialized_literal_count() { return materialized_literal_count_; }
1658 int expected_property_count() { return expected_property_count_; } 1654 int expected_property_count() { return expected_property_count_; }
1659 bool has_only_simple_this_property_assignments() { 1655 bool has_only_simple_this_property_assignments() {
1660 return has_only_simple_this_property_assignments_; 1656 return has_only_simple_this_property_assignments_;
1661 } 1657 }
1662 Handle<FixedArray> this_property_assignments() { 1658 Handle<FixedArray> this_property_assignments() {
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 2120
2125 private: 2121 private:
2126 Isolate* isolate_; 2122 Isolate* isolate_;
2127 bool stack_overflow_; 2123 bool stack_overflow_;
2128 }; 2124 };
2129 2125
2130 2126
2131 } } // namespace v8::internal 2127 } } // namespace v8::internal
2132 2128
2133 #endif // V8_AST_H_ 2129 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698