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

IR: Let primitive expressions take manifest arguments #572

Merged
merged 2 commits into from
Jul 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/as_values/prim.ml
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ let prim = function
let nobbles = mapi (fun i f -> f i) (classify_utf8_leader (of_int (Char.code s.[0]))) in
let code = fold_left (fun acc nobble -> logor (shift_left acc 6) nobble) 0l nobbles in
k (Tup [Word32 (of_int (length nobbles)); Char (to_int code)])
| "@serialize" -> fun v k -> k (Serialized v)
| "@deserialize" -> fun v k -> k (as_serialized v)

| "array_len" -> fun v k ->
k (Int (Int.of_int (Array.length (Value.as_array v))))
Expand Down
Loading