OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_FEEDBACK_SLOTS_H_ | 5 #ifndef V8_FEEDBACK_SLOTS_H_ |
6 #define V8_FEEDBACK_SLOTS_H_ | 6 #define V8_FEEDBACK_SLOTS_H_ |
7 | 7 |
8 #include "v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "isolate.h" | 10 #include "src/isolate.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 class FeedbackSlotInterface { | 15 class FeedbackSlotInterface { |
16 public: | 16 public: |
17 static const int kInvalidFeedbackSlot = -1; | 17 static const int kInvalidFeedbackSlot = -1; |
18 | 18 |
19 virtual ~FeedbackSlotInterface() {} | 19 virtual ~FeedbackSlotInterface() {} |
20 | 20 |
21 virtual int ComputeFeedbackSlotCount() = 0; | 21 virtual int ComputeFeedbackSlotCount() = 0; |
22 virtual void SetFirstFeedbackSlot(int slot) = 0; | 22 virtual void SetFirstFeedbackSlot(int slot) = 0; |
23 }; | 23 }; |
24 | 24 |
25 } } // namespace v8::internal | 25 } } // namespace v8::internal |
26 | 26 |
27 #endif // V8_FEEDBACK_SLOTS_H_ | 27 #endif // V8_FEEDBACK_SLOTS_H_ |
OLD | NEW |