| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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_ | 
| OLD | NEW | 
|---|