Closed Bug 823465 Opened 12 years ago Closed 12 years ago

BaselineCompiler: Add string length stub

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
No description provided.
Attachment #694321 - Flags: review?(kvijayan)
Attachment #694321 - Attachment description: Patch for inbound → Patch
Comment on attachment 694321 [details] [diff] [review] Patch Review of attachment 694321 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/ion/BaselineIC.cpp @@ +348,5 @@ > + > + // Non-monitored stubs are used if the result has always the same type, > + // e.g. a StringLength stub will always return int32. > + if (!mainStub->isMonitored()) > + continue; This comment is not directly relevant to this patch, but the above code reminded me of this. |DoGetPropFallback| should call |addMonitorStubForValue| on its TypeMonitor_Fallback stub, as |DoCallFallback| does, to avoid an extra trip to the type monitor fallback stub when some other monitored optimized stub ends up returning the same type.
Attachment #694321 - Flags: review?(kvijayan) → review+
https://hg.mozilla.org/projects/ionmonkey/rev/7d714f0e176f (In reply to Kannan Vijayan [:djvj] from comment #1) > > |DoGetPropFallback| should call |addMonitorStubForValue| on its > TypeMonitor_Fallback stub, as |DoCallFallback| does, to avoid an extra trip > to the type monitor fallback stub when some other monitored optimized stub > ends up returning the same type. The problem is that it may attach multiple stubs for the same type. We could check for existing stubs first, but just letting the fallback monitor path seems easier and shouldn't be noticeable. What do you think?
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: