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

Side by Side Diff: src/ast.h

Issue 5976006: Fix a couple cast errors
Patch Set: Created 10 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
« no previous file with comments | « no previous file | src/deoptimizer.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 1384
1385 class BinaryOperation: public Expression { 1385 class BinaryOperation: public Expression {
1386 public: 1386 public:
1387 BinaryOperation(Token::Value op, 1387 BinaryOperation(Token::Value op,
1388 Expression* left, 1388 Expression* left,
1389 Expression* right, 1389 Expression* right,
1390 int pos) 1390 int pos)
1391 : op_(op), left_(left), right_(right), pos_(pos), is_smi_only_(false) { 1391 : op_(op), left_(left), right_(right), pos_(pos), is_smi_only_(false) {
1392 ASSERT(Token::IsBinaryOp(op)); 1392 ASSERT(Token::IsBinaryOp(op));
1393 right_id_ = (op == Token::AND || op == Token::OR) 1393 right_id_ = (op == Token::AND || op == Token::OR)
1394 ? GetNextId() 1394 ? static_cast<int>(GetNextId())
1395 : AstNode::kNoNumber; 1395 : AstNode::kNoNumber;
1396 } 1396 }
1397 1397
1398 // Create the binary operation corresponding to a compound assignment. 1398 // Create the binary operation corresponding to a compound assignment.
1399 explicit BinaryOperation(Assignment* assignment); 1399 explicit BinaryOperation(Assignment* assignment);
1400 1400
1401 DECLARE_NODE_TYPE(BinaryOperation) 1401 DECLARE_NODE_TYPE(BinaryOperation)
1402 1402
1403 virtual bool IsInlineable() const; 1403 virtual bool IsInlineable() const;
1404 1404
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
2160 AST_NODE_LIST(DEF_VISIT) 2160 AST_NODE_LIST(DEF_VISIT)
2161 #undef DEF_VISIT 2161 #undef DEF_VISIT
2162 2162
2163 private: 2163 private:
2164 bool stack_overflow_; 2164 bool stack_overflow_;
2165 }; 2165 };
2166 2166
2167 } } // namespace v8::internal 2167 } } // namespace v8::internal
2168 2168
2169 #endif // V8_AST_H_ 2169 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698