Bug 125908

Summary: Add a simple stack abstraction for x86_64
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: New BugsAssignee: Benjamin Poulain <benjamin>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, ggaren
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch ggaren: review+

Description Benjamin Poulain 2013-12-17 19:50:31 PST
Add a simple stack abstraction for x86_64
Comment 1 Benjamin Poulain 2013-12-17 20:54:16 PST
Created attachment 219503 [details]
Patch
Comment 2 Geoffrey Garen 2013-12-17 23:21:03 PST
Comment on attachment 219503 [details]
Patch

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

r=me

> Source/JavaScriptCore/ChangeLog:11
> +        Add an explicit abstraction for the "lea" instruction. This is needed
> +        by the experimental JIT to have add and substract without changing the flags.

Why do we need to avoid changing flags before a call? Would be good to explain that.

> Source/JavaScriptCore/assembler/MacroAssemblerX86_64.h:231
> +#if ENABLE(CSS_SELECTOR_JIT)

No need for the #if.

> Source/WebCore/cssjit/StackAllocator.h:112
> +    void combine(StackAllocator&& stackA, StackAllocator&& stackB)

I think the typical compiler word for this is "merge".
Comment 3 Benjamin Poulain 2013-12-18 17:24:26 PST
Committed r160800: <http://trac.webkit.org/changeset/160800>