From fa072704af64b922c11e068510e8b113ccab7a60 Mon Sep 17 00:00:00 2001 From: "erik.corry@gmail.com" Date: Tue, 12 Jun 2012 15:45:08 +0000 Subject: [PATCH] Force inlining of some hot functions (problem reported by Bert Belder). Review URL: https://chromiumcodereview.appspot.com/10546122 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11781 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/objects.h b/src/objects.h index bfce421..9aac37f 100644 --- a/src/objects.h +++ b/src/objects.h @@ -2574,11 +2574,11 @@ class DescriptorArray: public FixedArray { void Sort(const WhitenessWitness&); // Search the instance descriptors for given name. - inline int Search(String* name); + INLINE(int Search(String* name)); // As the above, but uses DescriptorLookupCache and updates it when // necessary. - inline int SearchWithCache(String* name); + INLINE(int SearchWithCache(String* name)); // Tells whether the name is present int the array. bool Contains(String* name) { return kNotFound != Search(name); } -- 2.7.4