| 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 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2022 protected: | 2022 protected: |
| 2023 CompareOperation(Isolate* isolate, | 2023 CompareOperation(Isolate* isolate, |
| 2024 Token::Value op, | 2024 Token::Value op, |
| 2025 Expression* left, | 2025 Expression* left, |
| 2026 Expression* right, | 2026 Expression* right, |
| 2027 int pos) | 2027 int pos) |
| 2028 : Expression(isolate, pos), | 2028 : Expression(isolate, pos), |
| 2029 op_(op), | 2029 op_(op), |
| 2030 left_(left), | 2030 left_(left), |
| 2031 right_(right), | 2031 right_(right), |
| 2032 combined_type_(Type::Null(), isolate) { | 2032 combined_type_(Type::None(), isolate) { |
| 2033 ASSERT(Token::IsCompareOp(op)); | 2033 ASSERT(Token::IsCompareOp(op)); |
| 2034 } | 2034 } |
| 2035 | 2035 |
| 2036 private: | 2036 private: |
| 2037 Token::Value op_; | 2037 Token::Value op_; |
| 2038 Expression* left_; | 2038 Expression* left_; |
| 2039 Expression* right_; | 2039 Expression* right_; |
| 2040 | 2040 |
| 2041 Handle<Type> combined_type_; | 2041 Handle<Type> combined_type_; |
| 2042 }; | 2042 }; |
| (...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3254 private: | 3254 private: |
| 3255 Isolate* isolate_; | 3255 Isolate* isolate_; |
| 3256 Zone* zone_; | 3256 Zone* zone_; |
| 3257 Visitor visitor_; | 3257 Visitor visitor_; |
| 3258 }; | 3258 }; |
| 3259 | 3259 |
| 3260 | 3260 |
| 3261 } } // namespace v8::internal | 3261 } } // namespace v8::internal |
| 3262 | 3262 |
| 3263 #endif // V8_AST_H_ | 3263 #endif // V8_AST_H_ |
| OLD | NEW |