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

Side by Side Diff: src/ast.h

Issue 8344082: Replace boolean indications of strict mode by an enum value. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some fixes and adapted the preparser. 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
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 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 1645
1646 Handle<String> name() const { return name_; } 1646 Handle<String> name() const { return name_; }
1647 Scope* scope() const { return scope_; } 1647 Scope* scope() const { return scope_; }
1648 ZoneList<Statement*>* body() const { return body_; } 1648 ZoneList<Statement*>* body() const { return body_; }
1649 void set_function_token_position(int pos) { function_token_position_ = pos; } 1649 void set_function_token_position(int pos) { function_token_position_ = pos; }
1650 int function_token_position() const { return function_token_position_; } 1650 int function_token_position() const { return function_token_position_; }
1651 int start_position() const { return start_position_; } 1651 int start_position() const { return start_position_; }
1652 int end_position() const { return end_position_; } 1652 int end_position() const { return end_position_; }
1653 bool is_expression() const { return is_expression_; } 1653 bool is_expression() const { return is_expression_; }
1654 bool is_anonymous() const { return is_anonymous_; } 1654 bool is_anonymous() const { return is_anonymous_; }
1655 bool strict_mode() const; 1655 bool strict_mode() const { return strict_mode_flag() == kStrictMode; }
1656 StrictModeFlag strict_mode_flag() const;
1656 1657
1657 int materialized_literal_count() { return materialized_literal_count_; } 1658 int materialized_literal_count() { return materialized_literal_count_; }
1658 int expected_property_count() { return expected_property_count_; } 1659 int expected_property_count() { return expected_property_count_; }
1659 bool has_only_simple_this_property_assignments() { 1660 bool has_only_simple_this_property_assignments() {
1660 return has_only_simple_this_property_assignments_; 1661 return has_only_simple_this_property_assignments_;
1661 } 1662 }
1662 Handle<FixedArray> this_property_assignments() { 1663 Handle<FixedArray> this_property_assignments() {
1663 return this_property_assignments_; 1664 return this_property_assignments_;
1664 } 1665 }
1665 int num_parameters() { return num_parameters_; } 1666 int num_parameters() { return num_parameters_; }
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 2125
2125 private: 2126 private:
2126 Isolate* isolate_; 2127 Isolate* isolate_;
2127 bool stack_overflow_; 2128 bool stack_overflow_;
2128 }; 2129 };
2129 2130
2130 2131
2131 } } // namespace v8::internal 2132 } } // namespace v8::internal
2132 2133
2133 #endif // V8_AST_H_ 2134 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ast-inl.h » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698