From: Ben L. Titzer Date: Tue, 10 Mar 2015 15:06:10 +0000 (+0100) Subject: Refactor TypeFeedbackOracle to accept Handle instead of Handle. X-Git-Tag: upstream/4.7.83~3929 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1d0f845a9a2539c87074c1a982dc30beb5c7624;p=platform%2Fupstream%2Fv8.git Refactor TypeFeedbackOracle to accept Handle instead of Handle. R=verwaest@chromium.org BUG= Review URL: https://codereview.chromium.org/979323005 Cr-Commit-Position: refs/heads/master@{#27111} --- diff --git a/src/type-info.cc b/src/type-info.cc index 51885d5ef..48d516019 100644 --- a/src/type-info.cc +++ b/src/type-info.cc @@ -313,7 +313,7 @@ Type* TypeFeedbackOracle::CountType(TypeFeedbackId id) { void TypeFeedbackOracle::PropertyReceiverTypes(TypeFeedbackId id, - Handle name, + Handle name, SmallMapList* receiver_types) { receiver_types->Clear(); Code::Flags flags = Code::ComputeHandlerFlags(Code::LOAD_IC); @@ -343,7 +343,7 @@ void TypeFeedbackOracle::KeyedPropertyReceiverTypes( void TypeFeedbackOracle::PropertyReceiverTypes(FeedbackVectorICSlot slot, - Handle name, + Handle name, SmallMapList* receiver_types) { receiver_types->Clear(); LoadICNexus nexus(feedback_vector_, slot); @@ -363,8 +363,9 @@ void TypeFeedbackOracle::KeyedPropertyReceiverTypes( } -void TypeFeedbackOracle::AssignmentReceiverTypes( - TypeFeedbackId id, Handle name, SmallMapList* receiver_types) { +void TypeFeedbackOracle::AssignmentReceiverTypes(TypeFeedbackId id, + Handle name, + SmallMapList* receiver_types) { receiver_types->Clear(); Code::Flags flags = Code::ComputeHandlerFlags(Code::STORE_IC); CollectReceiverTypes(id, name, flags, receiver_types); @@ -388,7 +389,7 @@ void TypeFeedbackOracle::CountReceiverTypes(TypeFeedbackId id, void TypeFeedbackOracle::CollectReceiverTypes(TypeFeedbackId ast_id, - Handle name, + Handle name, Code::Flags flags, SmallMapList* types) { Handle object = GetInfo(ast_id); @@ -401,7 +402,7 @@ void TypeFeedbackOracle::CollectReceiverTypes(TypeFeedbackId ast_id, template -void TypeFeedbackOracle::CollectReceiverTypes(T* obj, Handle name, +void TypeFeedbackOracle::CollectReceiverTypes(T* obj, Handle name, Code::Flags flags, SmallMapList* types) { if (FLAG_collect_megamorphic_maps_from_stub_cache && diff --git a/src/type-info.h b/src/type-info.h index 65af76865..6866da2d1 100644 --- a/src/type-info.h +++ b/src/type-info.h @@ -42,9 +42,9 @@ class TypeFeedbackOracle: public ZoneObject { IcCheckType* key_type); void GetLoadKeyType(TypeFeedbackId id, IcCheckType* key_type); - void PropertyReceiverTypes(TypeFeedbackId id, Handle name, + void PropertyReceiverTypes(TypeFeedbackId id, Handle name, SmallMapList* receiver_types); - void PropertyReceiverTypes(FeedbackVectorICSlot slot, Handle name, + void PropertyReceiverTypes(FeedbackVectorICSlot slot, Handle name, SmallMapList* receiver_types); void KeyedPropertyReceiverTypes(TypeFeedbackId id, SmallMapList* receiver_types, @@ -53,8 +53,7 @@ class TypeFeedbackOracle: public ZoneObject { void KeyedPropertyReceiverTypes(FeedbackVectorICSlot slot, SmallMapList* receiver_types, bool* is_string, IcCheckType* key_type); - void AssignmentReceiverTypes(TypeFeedbackId id, - Handle name, + void AssignmentReceiverTypes(TypeFeedbackId id, Handle name, SmallMapList* receiver_types); void KeyedAssignmentReceiverTypes(TypeFeedbackId id, SmallMapList* receiver_types, @@ -104,12 +103,10 @@ class TypeFeedbackOracle: public ZoneObject { Isolate* isolate() const { return isolate_; } private: - void CollectReceiverTypes(TypeFeedbackId id, - Handle name, - Code::Flags flags, - SmallMapList* types); + void CollectReceiverTypes(TypeFeedbackId id, Handle name, + Code::Flags flags, SmallMapList* types); template - void CollectReceiverTypes(T* obj, Handle name, Code::Flags flags, + void CollectReceiverTypes(T* obj, Handle name, Code::Flags flags, SmallMapList* types); // Returns true if there is at least one string map and if