OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1804 store_mode_(STANDARD_STORE), | 1804 store_mode_(STANDARD_STORE), |
1805 expression_(expr), | 1805 expression_(expr), |
1806 pos_(pos), | 1806 pos_(pos), |
1807 assignment_id_(GetNextId(isolate)), | 1807 assignment_id_(GetNextId(isolate)), |
1808 count_id_(GetNextId(isolate)) {} | 1808 count_id_(GetNextId(isolate)) {} |
1809 | 1809 |
1810 private: | 1810 private: |
1811 Token::Value op_; | 1811 Token::Value op_; |
1812 bool is_prefix_ : 1; | 1812 bool is_prefix_ : 1; |
1813 bool is_monomorphic_ : 1; | 1813 bool is_monomorphic_ : 1; |
1814 KeyedAccessStoreMode store_mode_: 4; | 1814 KeyedAccessStoreMode store_mode_: 5; |
Jakob Kummerow
2013/04/09 16:18:20
Let's add a comment that an extra bit is needed be
| |
1815 Expression* expression_; | 1815 Expression* expression_; |
1816 int pos_; | 1816 int pos_; |
1817 const BailoutId assignment_id_; | 1817 const BailoutId assignment_id_; |
1818 const TypeFeedbackId count_id_; | 1818 const TypeFeedbackId count_id_; |
1819 SmallMapList receiver_types_; | 1819 SmallMapList receiver_types_; |
1820 }; | 1820 }; |
1821 | 1821 |
1822 | 1822 |
1823 class CompareOperation: public Expression { | 1823 class CompareOperation: public Expression { |
1824 public: | 1824 public: |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1946 | 1946 |
1947 private: | 1947 private: |
1948 Token::Value op_; | 1948 Token::Value op_; |
1949 Expression* target_; | 1949 Expression* target_; |
1950 Expression* value_; | 1950 Expression* value_; |
1951 int pos_; | 1951 int pos_; |
1952 BinaryOperation* binary_operation_; | 1952 BinaryOperation* binary_operation_; |
1953 const BailoutId assignment_id_; | 1953 const BailoutId assignment_id_; |
1954 | 1954 |
1955 bool is_monomorphic_ : 1; | 1955 bool is_monomorphic_ : 1; |
1956 KeyedAccessStoreMode store_mode_ : 4; | 1956 KeyedAccessStoreMode store_mode_ : 5; |
1957 SmallMapList receiver_types_; | 1957 SmallMapList receiver_types_; |
1958 }; | 1958 }; |
1959 | 1959 |
1960 | 1960 |
1961 class Yield: public Expression { | 1961 class Yield: public Expression { |
1962 public: | 1962 public: |
1963 DECLARE_NODE_TYPE(Yield) | 1963 DECLARE_NODE_TYPE(Yield) |
1964 | 1964 |
1965 Expression* expression() const { return expression_; } | 1965 Expression* expression() const { return expression_; } |
1966 bool is_delegating_yield() const { return is_delegating_yield_; } | 1966 bool is_delegating_yield() const { return is_delegating_yield_; } |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3014 private: | 3014 private: |
3015 Isolate* isolate_; | 3015 Isolate* isolate_; |
3016 Zone* zone_; | 3016 Zone* zone_; |
3017 Visitor visitor_; | 3017 Visitor visitor_; |
3018 }; | 3018 }; |
3019 | 3019 |
3020 | 3020 |
3021 } } // namespace v8::internal | 3021 } } // namespace v8::internal |
3022 | 3022 |
3023 #endif // V8_AST_H_ | 3023 #endif // V8_AST_H_ |
OLD | NEW |