| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_AST_H_ | 5 #ifndef V8_AST_H_ |
| 6 #define V8_AST_H_ | 6 #define V8_AST_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/assembler.h" | 10 #include "src/assembler.h" |
| (...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1960 | 1960 |
| 1961 // Type feedback information. | 1961 // Type feedback information. |
| 1962 virtual int ComputeFeedbackSlotCount() { | 1962 virtual int ComputeFeedbackSlotCount() { |
| 1963 return (FLAG_vector_ics && is_jsruntime()) ? 1 : 0; | 1963 return (FLAG_vector_ics && is_jsruntime()) ? 1 : 0; |
| 1964 } | 1964 } |
| 1965 virtual void SetFirstFeedbackSlot(int slot) { | 1965 virtual void SetFirstFeedbackSlot(int slot) { |
| 1966 callruntime_feedback_slot_ = slot; | 1966 callruntime_feedback_slot_ = slot; |
| 1967 } | 1967 } |
| 1968 | 1968 |
| 1969 int CallRuntimeFeedbackSlot() { | 1969 int CallRuntimeFeedbackSlot() { |
| 1970 DCHECK(!is_jsruntime() || | |
| 1971 callruntime_feedback_slot_ != kInvalidFeedbackSlot); | |
| 1972 return callruntime_feedback_slot_; | 1970 return callruntime_feedback_slot_; |
| 1973 } | 1971 } |
| 1974 | 1972 |
| 1975 TypeFeedbackId CallRuntimeFeedbackId() const { | 1973 TypeFeedbackId CallRuntimeFeedbackId() const { |
| 1976 return TypeFeedbackId(base_id() + 0); | 1974 return TypeFeedbackId(base_id() + 0); |
| 1977 } | 1975 } |
| 1978 | 1976 |
| 1979 protected: | 1977 protected: |
| 1980 CallRuntime(Zone* zone, const AstRawString* name, | 1978 CallRuntime(Zone* zone, const AstRawString* name, |
| 1981 const Runtime::Function* function, | 1979 const Runtime::Function* function, |
| (...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3624 Zone* zone_; | 3622 Zone* zone_; |
| 3625 Visitor visitor_; | 3623 Visitor visitor_; |
| 3626 AstValueFactory* ast_value_factory_; | 3624 AstValueFactory* ast_value_factory_; |
| 3627 AstNode::IdGen* id_gen_; | 3625 AstNode::IdGen* id_gen_; |
| 3628 }; | 3626 }; |
| 3629 | 3627 |
| 3630 | 3628 |
| 3631 } } // namespace v8::internal | 3629 } } // namespace v8::internal |
| 3632 | 3630 |
| 3633 #endif // V8_AST_H_ | 3631 #endif // V8_AST_H_ |
| OLD | NEW |