Closed Bug 811875 Opened 12 years ago Closed 12 years ago

BaselineCompiler: Implement calls

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 1 obsolete file)

Handling CALLLOCAL/CALLARG will be useful to test the IC design and frame iteration code.
Attached patch WIP (obsolete) (deleted) — Splinter Review
Handles calls using Invoke. Introduces a bunch of new jit-test failures, seems to be mostly frame iteration stuff, will look into them tomorrow.
Depends on: 812138
Attached patch Patch (deleted) — Splinter Review
On top of the patch in bug 812138, this doesn't introduce any new jit-test failures on x86 and x64.
Attachment #681672 - Attachment is obsolete: true
Attachment #681962 - Flags: review?(kvijayan)
Comment on attachment 681962 [details] [diff] [review]
Patch

Review of attachment 681962 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good.

I think we should eliminate the coding of constructing flag into the key.  The DoCallFallback function can inspect the JSOp at the PC to do the right thing, as well as to decide what kind of specific optimized stubs it wants to generate in the future - e.g. it can generate ICNew_Blah vs. ICCall_Blah depending on the inspected JSOp value.  Maybe we can rename ICCall_Fallback to ICInvoke_Fallback to represent the fact that it handles both Call and New cases.

Currently the extra argument makes it non-uniform with the style of the rest of the fallback ICs and doesn't provide any new information that we can't access from DoCallFallback anyway, and I don't see a significant perf benefit to doing this either.
Attachment #681962 - Flags: review?(kvijayan) → review+
Attached patch Part 2: Handle NEW (deleted) — Splinter Review
Adds NEW and uses a single fallback function.
Attachment #682061 - Flags: review?(kvijayan)
Comment on attachment 682061 [details] [diff] [review]
Part 2: Handle NEW

Review of attachment 682061 [details] [diff] [review]:
-----------------------------------------------------------------

Sweet :)
Attachment #682061 - Flags: review?(kvijayan) → review+
https://hg.mozilla.org/projects/ionmonkey/rev/420892dc7b4d
https://hg.mozilla.org/projects/ionmonkey/rev/4415df1167d3
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: