Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError test suite failure mode #5

Open
2 tasks
JoshMeredith opened this issue Oct 28, 2021 · 0 comments
Open
2 tasks

ReferenceError test suite failure mode #5

JoshMeredith opened this issue Oct 28, 2021 · 0 comments

Comments

@JoshMeredith
Copy link

Supported symbol types:

  • raise
  • mainZCZCMainzimain

Unsupported symbol types:

  • compiled c (hello, foo, bar)

Debugging info:

  • This is a JavaScript exception.
  • None of the errored names show up in git grep, so they mustn't be defined for some reason.
  • Just before sine of the errors, there's a warning warning, unhandled primop which comes from the
    default case of Gen2.Prim.genPrim:
    genPrim _ _ op rs as = PrimInline $
    appS "h$log" [e $ "warning, unhandled primop: "++show op++" "++show (length rs, length as)] #
    f #
    copyRes
    where
      f = ApplStat (var (T.pack $ "h$primop_" ++ show op)) as
      copyRes = mconcat $ zipWith (\r reg -> r |= e reg) rs (enumFrom Ret1)
  • Primops are defined in primop-data-decl.hs-incl
  • Missing primops (11 matches): PrefetchAddrOp3 SetThreadAllocationCounter WriteByteArrayOp_Word8AsInt16 BRev8Op ShrinkSmallMutableArrayOp_Char
  • Missing others: h$opendir h$test_lt h$putchar h$memintrinTest h$log1p h$f5149 h$do_popcnt32 h$stg_word32ToFloatzh h$getOrSetLibHSghcGlobalDynFlags h$sqrt h$splitmix_init h$stg_floatToWord32zh h$func h$splitmix_init h$performGC_ h$foo h$mainZCZCMainzimain h$test_prim_op h$fin h$hello h$qsort h$puts h$test h$f h$var h$write h$free_fn_blob h$call8 h$staticfoo h$i h$printf h$n h$many_floats h$head_bytearray h$is_doubleton_homogenous h$add_all_int8 h$add_all_word8 h$add_all_int16 h$add_all_word16 h$getDbl h$getOrSetLibHSghcFastStringTable h$bar h$ghcjsbn_gcdExtSBigNat h$genSym h$finalize_value h$RtsFlags h$traceEventBinary h$deriv h$printx h$rts_unsafeGetMyCapability h$pipe h$initLinker_
    • Some of these are clearly c-naming (putchar, opendir)
    • Others are clearly haskell generated names (mainZCZCMainzimain)
    • Others look like internal haskell stuff (getSym, RtsFlags)
    • Some look like they come from compiled names (hello, foo, bar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant