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

Side by Side Diff: src/ast.h

Issue 8417035: Introduce extended mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments. Created 9 years, 1 month 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 | « src/accessors.cc ('k') | src/ast-inl.h » ('j') | src/objects.cc » ('J')
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 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 1624
1625 Handle<String> name() const { return name_; } 1625 Handle<String> name() const { return name_; }
1626 Scope* scope() const { return scope_; } 1626 Scope* scope() const { return scope_; }
1627 ZoneList<Statement*>* body() const { return body_; } 1627 ZoneList<Statement*>* body() const { return body_; }
1628 void set_function_token_position(int pos) { function_token_position_ = pos; } 1628 void set_function_token_position(int pos) { function_token_position_ = pos; }
1629 int function_token_position() const { return function_token_position_; } 1629 int function_token_position() const { return function_token_position_; }
1630 int start_position() const; 1630 int start_position() const;
1631 int end_position() const; 1631 int end_position() const;
1632 bool is_expression() const { return is_expression_; } 1632 bool is_expression() const { return is_expression_; }
1633 bool is_anonymous() const { return is_anonymous_; } 1633 bool is_anonymous() const { return is_anonymous_; }
1634 bool strict_mode() const { return strict_mode_flag() == kStrictMode; } 1634 bool is_classic_mode() const { return language_mode() == CLASSIC_MODE; }
1635 StrictModeFlag strict_mode_flag() const; 1635 LanguageMode language_mode() const;
1636 1636
1637 int materialized_literal_count() { return materialized_literal_count_; } 1637 int materialized_literal_count() { return materialized_literal_count_; }
1638 int expected_property_count() { return expected_property_count_; } 1638 int expected_property_count() { return expected_property_count_; }
1639 bool has_only_simple_this_property_assignments() { 1639 bool has_only_simple_this_property_assignments() {
1640 return has_only_simple_this_property_assignments_; 1640 return has_only_simple_this_property_assignments_;
1641 } 1641 }
1642 Handle<FixedArray> this_property_assignments() { 1642 Handle<FixedArray> this_property_assignments() {
1643 return this_property_assignments_; 1643 return this_property_assignments_;
1644 } 1644 }
1645 int num_parameters() { return num_parameters_; } 1645 int num_parameters() { return num_parameters_; }
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
2104 2104
2105 private: 2105 private:
2106 Isolate* isolate_; 2106 Isolate* isolate_;
2107 bool stack_overflow_; 2107 bool stack_overflow_;
2108 }; 2108 };
2109 2109
2110 2110
2111 } } // namespace v8::internal 2111 } } // namespace v8::internal
2112 2112
2113 #endif // V8_AST_H_ 2113 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/accessors.cc ('k') | src/ast-inl.h » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698