Bug 152942

Summary: Use a profile to store allocation structures for subclasses of InternalFunctions
Product: WebKit Reporter: Keith Miller <keith_miller>
Component: New BugsAssignee: Keith Miller <keith_miller>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, mark.lam, msaboff, ossy, saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 142591, 152949    
Attachments:
Description Flags
Patch
msaboff: review+
Benchmark results none

Description Keith Miller 2016-01-08 22:04:58 PST
Use a profile to store allocation structures for subclasses of InternalFunctions
Comment 1 Keith Miller 2016-01-08 22:21:01 PST
Created attachment 268614 [details]
Patch
Comment 2 Keith Miller 2016-01-09 16:26:45 PST
Created attachment 268630 [details]
Benchmark results
Comment 3 Michael Saboff 2016-01-11 13:14:03 PST
Comment on attachment 268614 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=268614&action=review

r=me

> Source/JavaScriptCore/ChangeLog:8
> +        This patch adds InternalFunctionAlloctationProfile to FunctionRareData, which holds

Spelling *InternalFunctionAllocationProfile*

> Source/JavaScriptCore/ChangeLog:10
> +        InternalFunctionAlloctationProfile ended up being distinct from ObjectAlloctationProfile, due to

ditto spelling.
Comment 4 Keith Miller 2016-01-11 13:25:31 PST
Comment on attachment 268614 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=268614&action=review

>> Source/JavaScriptCore/ChangeLog:8
>> +        This patch adds InternalFunctionAlloctationProfile to FunctionRareData, which holds
> 
> Spelling *InternalFunctionAllocationProfile*

Fixed.

>> Source/JavaScriptCore/ChangeLog:10
>> +        InternalFunctionAlloctationProfile ended up being distinct from ObjectAlloctationProfile, due to
> 
> ditto spelling.

Fixed both Alloctations.
Comment 5 Keith Miller 2016-01-11 13:31:19 PST
Committed r194863: <http://trac.webkit.org/changeset/194863>
Comment 6 Csaba Osztrogonác 2016-01-12 03:22:59 PST
(In reply to comment #5)
> Committed r194863: <http://trac.webkit.org/changeset/194863>

It broke the Apple Mac cmake build:
https://build.webkit.org/builders/Apple%20El%20Capitan%20CMake%20Debug%20%28Build%29/builds/1536

/Volumes/Data/slave/elcapitan-cmake-debug/build/Source/JavaScriptCore/runtime/FunctionRareData.h:29:10: fatal error: 'InternalFunctionAllocationProfile.h' file not found
#include "InternalFunctionAllocationProfile.h"
         ^
Comment 7 Csaba Osztrogonác 2016-01-12 03:23:45 PST
Let's see if a clean build helps or not:
https://build.webkit.org/builders/Apple%20El%20Capitan%20CMake%20Debug%20%28Build%29/builds/1559
Comment 8 Keith Miller 2016-01-27 14:37:13 PST
*** Bug 152710 has been marked as a duplicate of this bug. ***