Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Last active September 30, 2021 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MasterDuke17/129ca09760840107045722beeef36731 to your computer and use it in GitHub Desktop.
Save MasterDuke17/129ca09760840107045722beeef36731 to your computer and use it in GitHub Desktop.
+ 2500 case MVM_OP_getcomp: {
+ 2501 MVMint16 dst = ins->operands[0].reg.orig;
+ 2502 MVMint16 comp = ins->operands[1].reg.orig;
+ 2503 | mov ARG1, TC->instance;
+ 2504 | lea ARG1, MVMINSTANCE:ARG1->mutex_compiler_registry;
+ 2505 | call &uv_mutex_lock;
+ 2506 | mov ARG1, TC;
+ 2507 | mov ARG2, TC->instance;
+ 2508 | mov ARG2, MVMINSTANCE:ARG2->compiler_registry;
+ 2509 | mov ARG3, aword WORK[comp];
+ 2510 | call &MVM_repr_at_key_o;
+ 2511 | mov ARG1, TC->instance;
+ 2512 | lea ARG1, MVMINSTANCE:ARG1->mutex_compiler_registry;
+ 2513 | call &uv_mutex_unlock;
+ 2514 break;
+ 2515 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment