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

Side by Side Diff: src/ast.h

Issue 27183002: Fix initial comparison combined_type (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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.cc » ('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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698