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 3// found in the LICENSE file. 4 5#ifndef V8_FEEDBACK_SLOTS_H_ 6#define V8_FEEDBACK_SLOTS_H_ 7 8#include "src/v8.h" 9 10#include "src/isolate.h" 11 12namespace v8 { 13namespace internal { 14 15class FeedbackSlotInterface { 16 public: 17 static const int kInvalidFeedbackSlot = -1; 18 19 virtual ~FeedbackSlotInterface() {} 20 21 virtual int ComputeFeedbackSlotCount() = 0; 22 virtual void SetFirstFeedbackSlot(int slot) = 0; 23}; 24 25} } // namespace v8::internal 26 27#endif // V8_FEEDBACK_SLOTS_H_ 28