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

Side by Side Diff: src/ast.h

Issue 8353003: Revert 9673, 9674 and 9675 because of failing webkit tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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,
1620 Type type, 1622 Type type,
1621 bool has_duplicate_parameters) 1623 bool has_duplicate_parameters)
1622 : Expression(isolate), 1624 : Expression(isolate),
1623 name_(name), 1625 name_(name),
1624 scope_(scope), 1626 scope_(scope),
1625 body_(body), 1627 body_(body),
1626 materialized_literal_count_(materialized_literal_count), 1628 materialized_literal_count_(materialized_literal_count),
1627 expected_property_count_(expected_property_count), 1629 expected_property_count_(expected_property_count),
1628 has_only_simple_this_property_assignments_( 1630 has_only_simple_this_property_assignments_(
1629 has_only_simple_this_property_assignments), 1631 has_only_simple_this_property_assignments),
1630 this_property_assignments_(this_property_assignments), 1632 this_property_assignments_(this_property_assignments),
1631 num_parameters_(num_parameters), 1633 num_parameters_(num_parameters),
1634 start_position_(start_position),
1635 end_position_(end_position),
1632 function_token_position_(RelocInfo::kNoPosition), 1636 function_token_position_(RelocInfo::kNoPosition),
1633 inferred_name_(HEAP->empty_string()), 1637 inferred_name_(HEAP->empty_string()),
1634 is_expression_(type != DECLARATION), 1638 is_expression_(type != DECLARATION),
1635 is_anonymous_(type == ANONYMOUS_EXPRESSION), 1639 is_anonymous_(type == ANONYMOUS_EXPRESSION),
1636 pretenure_(false), 1640 pretenure_(false),
1637 has_duplicate_parameters_(has_duplicate_parameters) { 1641 has_duplicate_parameters_(has_duplicate_parameters) {
1638 } 1642 }
1639 1643
1640 DECLARE_NODE_TYPE(FunctionLiteral) 1644 DECLARE_NODE_TYPE(FunctionLiteral)
1641 1645
1642 Handle<String> name() const { return name_; } 1646 Handle<String> name() const { return name_; }
1643 Scope* scope() const { return scope_; } 1647 Scope* scope() const { return scope_; }
1644 ZoneList<Statement*>* body() const { return body_; } 1648 ZoneList<Statement*>* body() const { return body_; }
1645 void set_function_token_position(int pos) { function_token_position_ = pos; } 1649 void set_function_token_position(int pos) { function_token_position_ = pos; }
1646 int function_token_position() const { return function_token_position_; } 1650 int function_token_position() const { return function_token_position_; }
1647 int start_position() const; 1651 int start_position() const { return start_position_; }
1648 int end_position() const; 1652 int end_position() const { return end_position_; }
1649 bool is_expression() const { return is_expression_; } 1653 bool is_expression() const { return is_expression_; }
1650 bool is_anonymous() const { return is_anonymous_; } 1654 bool is_anonymous() const { return is_anonymous_; }
1651 bool strict_mode() const; 1655 bool strict_mode() const;
1652 1656
1653 int materialized_literal_count() { return materialized_literal_count_; } 1657 int materialized_literal_count() { return materialized_literal_count_; }
1654 int expected_property_count() { return expected_property_count_; } 1658 int expected_property_count() { return expected_property_count_; }
1655 bool has_only_simple_this_property_assignments() { 1659 bool has_only_simple_this_property_assignments() {
1656 return has_only_simple_this_property_assignments_; 1660 return has_only_simple_this_property_assignments_;
1657 } 1661 }
1658 Handle<FixedArray> this_property_assignments() { 1662 Handle<FixedArray> this_property_assignments() {
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2120 2124
2121 private: 2125 private:
2122 Isolate* isolate_; 2126 Isolate* isolate_;
2123 bool stack_overflow_; 2127 bool stack_overflow_;
2124 }; 2128 };
2125 2129
2126 2130
2127 } } // namespace v8::internal 2131 } } // namespace v8::internal
2128 2132
2129 #endif // V8_AST_H_ 2133 #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