Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 9b86d0b51292f6291b734962af0f8912e8218f4d..556ab2ed8855ee1db5acee24f9a80f046911da28 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -1414,7 +1414,6 @@ class ObjectLiteralProperty FINAL : public ZoneObject { |
Kind kind() { return kind_; } |
// Type feedback information. |
- void RecordTypeFeedback(TypeFeedbackOracle* oracle); |
bool IsMonomorphic() { return !receiver_type_.is_null(); } |
Handle<Map> GetReceiverType() { return receiver_type_; } |
@@ -1426,6 +1425,8 @@ class ObjectLiteralProperty FINAL : public ZoneObject { |
bool is_static() const { return is_static_; } |
bool is_computed_name() const { return is_computed_name_; } |
+ void set_receiver_type(Handle<Map> map) { receiver_type_ = map; } |
+ |
protected: |
friend class AstNodeFactory; |
@@ -1911,7 +1912,6 @@ class CallNew FINAL : public Expression { |
return CallNewFeedbackSlot().next(); |
} |
- void RecordTypeFeedback(TypeFeedbackOracle* oracle); |
bool IsMonomorphic() OVERRIDE { return is_monomorphic_; } |
Handle<JSFunction> target() const { return target_; } |
Handle<AllocationSite> allocation_site() const { |
@@ -1922,6 +1922,12 @@ class CallNew FINAL : public Expression { |
static int feedback_slots() { return 1; } |
BailoutId ReturnId() const { return BailoutId(local_id(0)); } |
+ void set_allocation_site(Handle<AllocationSite> site) { |
+ allocation_site_ = site; |
+ } |
+ void set_is_monomorphic(bool monomorphic) { is_monomorphic_ = monomorphic; } |
+ void set_target(Handle<JSFunction> target) { target_ = target; } |
+ |
protected: |
CallNew(Zone* zone, Expression* expression, ZoneList<Expression*>* arguments, |
int pos) |