| Index: src/full-codegen.h
|
| diff --git a/src/full-codegen.h b/src/full-codegen.h
|
| index 57283bbaae7783d92206c67a76ea37c1101eb07f..db63d66bfa975e4929533214555e766f4603a5bf 100644
|
| --- a/src/full-codegen.h
|
| +++ b/src/full-codegen.h
|
| @@ -429,12 +429,20 @@ class FullCodeGenerator: public AstVisitor {
|
|
|
| // Feedback slot support. The feedback vector will be cleared during gc and
|
| // collected by the type-feedback oracle.
|
| - Handle<FixedArray> FeedbackVector() {
|
| + Handle<TypeFeedbackVector> FeedbackVector() const {
|
| return info_->feedback_vector();
|
| }
|
| void EnsureSlotContainsAllocationSite(FeedbackVectorSlot slot);
|
| + void EnsureSlotContainsAllocationSite(FeedbackVectorICSlot slot);
|
| +
|
| + // Returns a smi for the index into the FixedArray that backs the feedback
|
| + // vector
|
| Smi* SmiFromSlot(FeedbackVectorSlot slot) const {
|
| - return Smi::FromInt(slot.ToInt());
|
| + return Smi::FromInt(FeedbackVector()->GetIndex(slot));
|
| + }
|
| +
|
| + Smi* SmiFromSlot(FeedbackVectorICSlot slot) const {
|
| + return Smi::FromInt(FeedbackVector()->GetIndex(slot));
|
| }
|
|
|
| // Record a call's return site offset, used to rebuild the frame if the
|
| @@ -555,6 +563,10 @@ class FullCodeGenerator: public AstVisitor {
|
| // The receiver and the key is left on the stack by the IC.
|
| void EmitKeyedPropertyLoad(Property* expr);
|
|
|
| + // Adds the properties to the class (function) object and to its prototype.
|
| + // Expects the class (function) in the accumulator.
|
| + void EmitClassDefineProperties(ClassLiteral* lit);
|
| +
|
| // Apply the compound assignment operator. Expects the left operand on top
|
| // of the stack and the right one in the accumulator.
|
| void EmitBinaryOp(BinaryOperation* expr,
|
| @@ -601,6 +613,8 @@ class FullCodeGenerator: public AstVisitor {
|
|
|
| void EmitLoadHomeObject(SuperReference* expr);
|
|
|
| + void EmitLoadSuperConstructor(SuperReference* expr);
|
| +
|
| void CallIC(Handle<Code> code,
|
| TypeFeedbackId id = TypeFeedbackId::None());
|
|
|
|
|