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

Side by Side Diff: src/ast.h

Issue 107933005: Templatise type representation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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') | src/ic.cc » ('J')
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 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after
2069 protected: 2069 protected:
2070 CompareOperation(Isolate* isolate, 2070 CompareOperation(Isolate* isolate,
2071 Token::Value op, 2071 Token::Value op,
2072 Expression* left, 2072 Expression* left,
2073 Expression* right, 2073 Expression* right,
2074 int pos) 2074 int pos)
2075 : Expression(isolate, pos), 2075 : Expression(isolate, pos),
2076 op_(op), 2076 op_(op),
2077 left_(left), 2077 left_(left),
2078 right_(right), 2078 right_(right),
2079 combined_type_(Type::None(), isolate) { 2079 combined_type_(Type::None(isolate)) {
2080 ASSERT(Token::IsCompareOp(op)); 2080 ASSERT(Token::IsCompareOp(op));
2081 } 2081 }
2082 2082
2083 private: 2083 private:
2084 Token::Value op_; 2084 Token::Value op_;
2085 Expression* left_; 2085 Expression* left_;
2086 Expression* right_; 2086 Expression* right_;
2087 2087
2088 Handle<Type> combined_type_; 2088 Handle<Type> combined_type_;
2089 }; 2089 };
(...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after
3301 private: 3301 private:
3302 Isolate* isolate_; 3302 Isolate* isolate_;
3303 Zone* zone_; 3303 Zone* zone_;
3304 Visitor visitor_; 3304 Visitor visitor_;
3305 }; 3305 };
3306 3306
3307 3307
3308 } } // namespace v8::internal 3308 } } // namespace v8::internal
3309 3309
3310 #endif // V8_AST_H_ 3310 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | src/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698