Closed Bug 1226799 Opened 9 years ago Closed 9 years ago

De-duplicate the 11 Is[BuiltinName] self-hosting intrinsics with templates

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla45
Tracking Status
firefox45 --- fixed

People

(Reporter: till, Assigned: till)

Details

Attachments

(1 file)

So very satisfying.
Comment on attachment 8690300 [details] [diff] [review]
De-duplicate the 11 Is[BuiltinName] self-hosting intrinsics with templates

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

Looks good, with 2 copy-n-paste fix.

::: js/src/vm/SelfHosting.cpp
@@ +1503,3 @@
>                      IntrinsicIsMapIterator),
> +    JS_INLINABLE_FN("IsStringIterator",
> +                    intrinsic_IsInstanceOfBuiltin<ArrayIteratorObject>, 1,0,

StringIteratorObject

@@ +1561,5 @@
>            CallNonGenericSelfhostedMethod<Is<LegacyGeneratorObject>>, 2, 0),
>      JS_FN("CallStarGeneratorMethodIfWrapped",
>            CallNonGenericSelfhostedMethod<Is<StarGeneratorObject>>, 2, 0),
>  
> +    JS_FN("IsWeakSet", intrinsic_IsInstanceOfBuiltin<TypedArrayObject>, 1,0),

WeakSetObject
Attachment #8690300 - Flags: review?(arai.unmht) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/4fb114d9f1bc7dcdec02e39386b81533e75cb611
Bug 1226799 - De-duplicate the 11 Is[BuiltinName] self-hosting intrinsics with templates. r=arai
https://hg.mozilla.org/mozilla-central/rev/4fb114d9f1bc
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: