Closed Bug 881608 Opened 11 years ago Closed 11 years ago

OdinMonkey: "Assertion failure: false (Unexpected argument type)" passing unknown around

Categories

(Core :: JavaScript Engine, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla24

People

(Reporter: jruderman, Assigned: luke)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(1 file)

(function(stdlib, foreign) {
  "use asm";
  var identity = foreign.identity;
  function f()
  {
    return identity(identity(0)) | 0;
  }
  return f;
})(this, {identity:function(x){return x}})


Assertion failure: false (Unexpected argument type), at js/src/ion/x64/Assembler-x64.cpp:71


The first bad revision is:
changeset:   http://hg.mozilla.org/integration/mozilla-inbound/rev/9ce9c145e072
user:        Luke Wagner
date:        Mon Jun 10 16:21:21 2013 -0700
summary:     Bug 878526 - OdinMonkey: handle 'unknown' type properly for FFI functions with unused results (r=bbouvier)
Attached patch fix and testSplinter Review
Oops, there was an implicit case analysis in CheckCallArgs that was missed when adding Type::Unknown.
Assignee: general → luke
Status: NEW → ASSIGNED
Attachment #760934 - Flags: review?(bbouvier)
Comment on attachment 760934 [details] [diff] [review]
fix and test

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

Nice catch.
Attachment #760934 - Flags: review?(bbouvier) → review+
https://hg.mozilla.org/mozilla-central/rev/acda9f185e0b
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: