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

Side by Side Diff: src/ast.h

Issue 21813010: Replace BIT_NOT by XOR with ~0 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 4 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 | « src/arm/full-codegen-arm.cc ('k') | 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 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 Handle<String> name_; 1820 Handle<String> name_;
1821 const Runtime::Function* function_; 1821 const Runtime::Function* function_;
1822 ZoneList<Expression*>* arguments_; 1822 ZoneList<Expression*>* arguments_;
1823 }; 1823 };
1824 1824
1825 1825
1826 class UnaryOperation: public Expression { 1826 class UnaryOperation: public Expression {
1827 public: 1827 public:
1828 DECLARE_NODE_TYPE(UnaryOperation) 1828 DECLARE_NODE_TYPE(UnaryOperation)
1829 1829
1830 virtual bool ResultOverwriteAllowed();
1831
1832 Token::Value op() const { return op_; } 1830 Token::Value op() const { return op_; }
1833 Expression* expression() const { return expression_; } 1831 Expression* expression() const { return expression_; }
1834 virtual int position() const { return pos_; } 1832 virtual int position() const { return pos_; }
1835 1833
1836 BailoutId MaterializeTrueId() { return materialize_true_id_; } 1834 BailoutId MaterializeTrueId() { return materialize_true_id_; }
1837 BailoutId MaterializeFalseId() { return materialize_false_id_; } 1835 BailoutId MaterializeFalseId() { return materialize_false_id_; }
1838 1836
1839 TypeFeedbackId UnaryOperationFeedbackId() const { return reuse(id()); } 1837 TypeFeedbackId UnaryOperationFeedbackId() const { return reuse(id()); }
1840 1838
1841 virtual void RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle); 1839 virtual void RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle);
(...skipping 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
3209 private: 3207 private:
3210 Isolate* isolate_; 3208 Isolate* isolate_;
3211 Zone* zone_; 3209 Zone* zone_;
3212 Visitor visitor_; 3210 Visitor visitor_;
3213 }; 3211 };
3214 3212
3215 3213
3216 } } // namespace v8::internal 3214 } } // namespace v8::internal
3217 3215
3218 #endif // V8_AST_H_ 3216 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698