| OLD | NEW |
| 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 1945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1956 bool is_postfix() const { return !is_prefix_; } | 1956 bool is_postfix() const { return !is_prefix_; } |
| 1957 | 1957 |
| 1958 Token::Value op() const { return op_; } | 1958 Token::Value op() const { return op_; } |
| 1959 Token::Value binary_op() { | 1959 Token::Value binary_op() { |
| 1960 return (op() == Token::INC) ? Token::ADD : Token::SUB; | 1960 return (op() == Token::INC) ? Token::ADD : Token::SUB; |
| 1961 } | 1961 } |
| 1962 | 1962 |
| 1963 Expression* expression() const { return expression_; } | 1963 Expression* expression() const { return expression_; } |
| 1964 virtual int position() const V8_OVERRIDE { return pos_; } | 1964 virtual int position() const V8_OVERRIDE { return pos_; } |
| 1965 | 1965 |
| 1966 void RecordTypeFeedback(TypeFeedbackOracle* oracle, Zone* znoe); | 1966 void RecordTypeFeedback(TypeFeedbackOracle* oracle, Zone* zone); |
| 1967 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } | 1967 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } |
| 1968 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { | 1968 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { |
| 1969 return &receiver_types_; | 1969 return &receiver_types_; |
| 1970 } | 1970 } |
| 1971 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE { | 1971 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE { |
| 1972 return store_mode_; | 1972 return store_mode_; |
| 1973 } | 1973 } |
| 1974 TypeInfo type() const { return type_; } | 1974 TypeInfo type() const { return type_; } |
| 1975 | 1975 |
| 1976 BailoutId AssignmentId() const { return assignment_id_; } | 1976 BailoutId AssignmentId() const { return assignment_id_; } |
| (...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3243 private: | 3243 private: |
| 3244 Isolate* isolate_; | 3244 Isolate* isolate_; |
| 3245 Zone* zone_; | 3245 Zone* zone_; |
| 3246 Visitor visitor_; | 3246 Visitor visitor_; |
| 3247 }; | 3247 }; |
| 3248 | 3248 |
| 3249 | 3249 |
| 3250 } } // namespace v8::internal | 3250 } } // namespace v8::internal |
| 3251 | 3251 |
| 3252 #endif // V8_AST_H_ | 3252 #endif // V8_AST_H_ |
| OLD | NEW |