/
ch13_reference.pod
3723 lines (2078 loc) · 65.6 KB
/
ch13_reference.pod
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
=pod
=head1 Parrot Reference
Z<CHP-10>
This chapter contains a condensed list of PASM opcodes, PIR directives
and instructions, and Parrot command-line options, sorted alphabetically
for easy reference. Any PASM opcode is valid in PIR code, so if you're
looking up PIR syntax you should check A<CHP-10-SECT-1>"PASM Opcodes",
A<CHP-10-SECT-2>"PIR Directives", and A<CHP-10-SECT-3>"PIR
Instructions".
=head2 PASM Opcodes
Z<CHP-10-SECT-1>
X<PASM (Parrot assembly language);opcodes, quick reference>
For complete details on each opcode and the latest changes, read the
documentation in F<docs/ops/>, or look at all the C<.ops> files in the
F<ops/> directory.
We've followed a few conventions. C<DEST> is always the register where
the result of the operation is stored. Sometimes the original value of
C<DEST> is one of the source values. C<VAL> indicates that the actual
value might be a literal integer, float, or string, or a register
containing an integer, float, string, or PMC. See the F<.ops> files
for the combinations allowed with a particular operation.
=head3 abs
X<abs opcode (PASM)>
abs R<DEST>
abs R<DEST>, R<VAL>
Return the absolute value of a number. If R<VAL> is left out, R<DEST>
gets the absolute value of itself.
I<Arguments: IR or NR or IR, I or IR, N or NR, I or NR, N>
=head3 acos
X<acos opcode (PASM)>
acos R<DEST>, R<VAL>
The arc cosine of R<VAL> in radians.
I<Arguments: NR, N or NR, I>
=head3 add
X<add opcode (PASM)>
add R<DEST>, R<VAL>
add R<DEST>, R<VAL>, R<VAL>
Add two values and return the sum. If only one R<VAL>, add R<VAL> to
R<DEST>.
I<Arguments: IR, I or NR, I or NR, N or P, I or P, N or P, P or IR, I, I
or NR, N, I or NR, N, N or P, P, I or P, P, N or P, P, P>
=head3 addattribute
X<addattribute opcode (PASM)>
addattribute R<CLASS>, R<ATTR>
Add the attribute name R<ATTR> to class R<CLASS>.
I<Arguments: P, S>
=head3 addparent
X<addparent opcode (PASM)>
addparent R<CLASS1>, R<CLASS2>
Add class R<CLASS2> to the list of parent classes for R<CLASS1>.
I<Arguments: P, P>
=head3 and
X<and opcode (PASM)>
and R<DEST>, R<VAL1>, R<VAL2>
Logical AND. Return R<VAL1> if it's false; otherwise, return R<VAL2>.
I<Arguments: IR, I, I or P, P, P>
=head3 asec
X<asec opcode (PASM)>
asec R<DEST>, R<VAL>
The arc secant of R<VAL> in radians.
I<Arguments: NR, I or NR, N>
=head3 asin
X<asin opcode (PASM)>
asin R<DEST>, R<VAL>
The arc sine of R<VAL> in radians.
I<Arguments: NR, I or NR, N>
=head3 assign
X<assign opcode (PASM)>
assign R<DEST>, R<VAL>
Assign a value to a PMC.
I<Arguments: SR, S or P, I or P, N or P, S or P, P>
=head3 atan
X<atan opcode (PASM)>
atan R<DEST>, R<VAL>
atan R<DEST>, R<VAL1>, R<VAL2>
The arc tangent of R<VAL1> / R<VAL2> in radians (sign significant). If
R<VAL2> is omitted, then just the arc tangent of R<VAL>.
I<Arguments: NR, I or NR, N or NR, I, I or NR, I, N or NR, N, I or NR,
N, N>
=head3 band
X<band opcode (PASM)>
band R<DEST>, R<VAL>
band R<DEST>, R<VAL>, R<VAL>
Bitwise AND on two values. If only one R<VAL>, bitwise AND on R<DEST>
and R<VAL>.
I<Arguments: IR, I or P, I or P, P or IR, I, I or P, P, I or P, P, P>
=head3 bands
X<bands opcode (PASM)>
bands R<DEST>, R<VAL>
bands R<DEST>, R<VAL>, R<VAL>
Bitwise AND on two strings. If only one R<VAL>, bitwise AND on R<DEST>
and R<VAL>.
I<Arguments: SR, S or P, S or P, P or SR, S, S or P, P, S or P, P, P>
=head3 bnot
X<bnot opcode (PASM)>
bnot R<DEST>, R<VAL>
Bitwise NOT on R<VAL>.
I<Arguments: IR, I or P, P>
=head3 bnots
X<bnots opcode (PASM)>
bnots R<DEST>, R<VAL>
Bitwise NOT on string R<VAL>.
I<Arguments: SR, S or P, P>
=head3 bor
X<bor opcode (PASM)>
bor R<DEST>, R<VAL>, R<VAL>
Bitwise OR on two values. If only one R<VAL>, bitwise OR on R<DEST>
and R<VAL>.
I<Arguments: IR, I or P, I or P, P or IR, I, I or P, P, I or P, P, P>
=head3 bors
X<bors opcode (PASM)>
bor R<DEST>, R<VAL>, R<VAL>
Bitwise OR on two strings. If only one R<VAL>, bitwise OR on R<DEST>
and R<VAL>.
I<Arguments: SR, S or P, S or P, P or SR, S, S or P, P, S or P, P, P>
=head3 bounds
X<bounds opcode (PASM)>
bounds R<INT>
Toggle bytecode bounds checking in the interpreter (0 for off, any other
value for on).
I<Arguments: I>
=head3 branch
X<branch opcode (PASM)>
branch R<LABEL>
Branch to a label. The label is calculated as a relative offset.
I<Arguments: I>
=head3 branch_cs
X<branch_cs opcode (PASM)>
branch_cs R<FIXUP_ENTRY>
Intersegment branch to the location of the given fixup table entry.
I<Arguments: S>
=head3 bsr
X<bsr opcode (PASM)>
bsr R<LABEL>
Branch to a label, like C<branch>, but also push the current location
onto the call stack so C<ret> can return to it.
I<Arguments: I>
=head3 bxor
X<bxor opcode (PASM)>
bxor R<DEST>, R<VAL>
bxor R<DEST>, R<VAL>, R<VAL>
Bitwise XOR on two values. If only one R<VAL>, bitwise XOR on R<DEST>
and R<VAL>.
I<Arguments: IR, I or P, I or P, P or IR, I, I or P, P, I or P, P, P>
=head3 bxors
X<bxors opcode (PASM)>
bxors R<DEST>, R<VAL>
bxors R<DEST>, R<VAL>, R<VAL>
Bitwise XOR on two strings. If only one R<VAL>, bitwise XOR on R<DEST>
and R<VAL>.
I<Arguments: SR, S or P, S or P, P or SR, S, S or P, P, S or P, P, P>
=head3 callmethod
X<callmethod opcode (PASM)>
callmethod
callmethod R<METHODNAME>
Call the method named R<METHODNAME> on the object stored in C<P2>
according to the Parrot Calling Conventions. If no method name, pull the
name from C<S0>.
I<Arguments: S>
=head3 callmethodcc
X<callmethodcc opcode (PASM)>
callmethodcc
callmethodcc R<METHODNAME>
Call the method named R<METHODNAME> on the object stored in C<P2>
according to the Parrot Calling Conventions. If no method name, pull the
name from C<S0>. Also create a return continuation and store it in
C<P1>.
I<Arguments: S>
=head3 can
X<can opcode (PASM)>
can R<DEST>, R<OBJECT>, R<METHODNAME>
Return a true value if R<OBJECT> I<can> do the R<METHODNAME> method,
otherwise return a false value.
I<Arguments: IR, P, S>
=head3 ceil
X<ceil opcode (PASM)>
ceil R<DEST>
ceil R<DEST>, R<VAL>
Set R<DEST> to the smallest integral value less than or equal to R<VAL>
(if present) or itself (if not).
I<Arguments: NR or IR, N or NR, N>
=head3 checkevents
X<checkevents opcode (PASM)>
checkevents
Check the interpreter's task queue for unhandled events and run the associated
event handlers.
=head3 chopn
X<chopn opcode (PASM)>
chopn R<DEST>, R<VAL1>
chopn R<DEST>, R<VAL1>, R<VAL2>
Remove R<VAL2> number of characters from string R<VAL1>. If no
R<VAL2>, remove R<VAL> number of characters from string R<DEST>.
I<Arguments: SR, I or SR, S, I>
=head3 chr
X<chr opcode (PASM)>
chr R<DEST>, R<INT>
Return the character represented by the given number.
I<Arguments: SR, I>
=head3 class
X<class opcode (PASM)>
class R<CLASS>, R<OBJECT>
Return the R<CLASS> of the given R<OBJECT>.
I<Arguments: P, P>
=head3 clear_eh
X<clear_eh>
clear_eh
Clear the most recent exception handler.
See also: C<set_eh>, C<throw>.
=head3 clearX
X<cleari opcode (PASM)>
X<clearn opcode (PASM)>
X<clearp opcode (PASM)>
X<clears opcode (PASM)>
cleari
clearn
clearp
clears
Clear all registers of the given type ("i" = integer, "n" = float, "p"
= PMC, "s" = string). Integer and float registers clear to zero; string
and PMC registers clear to NULL.
=head3 clone
X<clone opcode (PASM)>
clone R<DEST>, R<VAL>
Clone (deep copy) a string or PMC and return the result.
I<Arguments: SR, S or P, P>
=head3 close
X<close opcode (PASM)>
close R<DEST>
Close the filehandle in the given register.
I<Arguments: P>
=head3 cmod
X<cmod opcode (PASM)>
cmod R<DEST>, R<VAL1>, R<VAL2>
C's built-in mod operator.
See also C<mod>.
I<Arguments: IR, I, I or NR, N, N or P, P, I or P, P, N or P, P, P>
=head3 cmp
X<cmp (comparison);opcode (PASM)>
cmp R<DEST>, R<VAL1>, R<VAL2>
Set R<DEST> to 1 if R<VAL1> is greater then R<VAL2>, to -1 if it's less then
R<VAL2> or to zero if both are equal. If R<VAL1> and R<VAL2> are both PMCs,
then the type of comparison depends on R<VAL1>.
I<Arguments: IR, I, I or IR, N, N or IR, S, S or IR, P, I or IR, P, N
IR, P, S or IR, P, P>
=head3 cmp_num
X<cmp_num opcode (PASM)>
cmp_num R<DEST>, R<VAL1>, R<VAL2>
Like C<cmp>, but forces numeric comparison.
I<Arguments: IR, P, P>
=head3 cmp_str
X<cmp_str opcode (PASM)>
cmp_str R<DEST>, R<VAL1>, R<VAL2>
Like C<cmp>, but forces string comparison.
I<Arguments: IR, P, P>
=head3 collect
X<collect opcode (PASM)>
collect
Trigger a garbage collection (GC) run.
=head3 collectoff
X<collectoff opcode (PASM)>
collectoff
Disable garbage collection runs (nestable).
=head3 collecton
X<collecton opcode (PASM)>
collecton
Re-enable garbage collection runs.
=head3 compile
X<compile opcode (PASM)>
compile R<DEST>, R<COMPILER>, R<SOURCE>
Compile a string of source code with a given compiler PMC and store
the result.
I<Arguments: P, P, S>
=head3 compreg
X<compreg opcode (PASM)>
compreg R<DEST>, R<TYPE>
Return a compiler PMC for a particular type of source code.
I<Arguments: P, S>
compreg R<TYPE>, R<SUB>
Register R<SUB> as a compiler for language R<TYPE>.
I<Arguments: S, P>
=head3 concat
X<concat opcode (PASM)>
concat R<DEST>, R<VAL>
concat R<DEST>, R<VAL>, R<VAL>
Concatenate two strings. If only one R<VAL>, concatenate R<VAL> onto
R<DEST>.
I<Arguments: SR, S or SR, S, S or P, P, S or P, P, P>
=head3 conv_*
conv_i1 R<DEST>, R<VAL>
conv_i1_ovf R<DEST>, R<VAL>
Convert value to integer or number of given type C<i1>, C<i2>, C<i4>, C<i8>,
C<u1>, C<u2>, C<u4>, C<r4>, C<r8>. C<i> corresponds to a signed integer,
C<u> to an unsigned integer and C<r> to a float; the number indicates the
size (in bytes) of the type. The variants with C<_ovf> throw an exception
if the conversion would overflow.
=head3 cos
X<cos opcode (PASM)>
cos R<DEST>, R<VAL>
The cosine of R<VAL> in radians.
I<Arguments: NR, I or NR, N>
=head3 cosh
X<cosh opcode (PASM)>
cosh R<DEST>, R<VAL>
The hyperbolic cosine of R<VAL> in radians.
I<Arguments: NR, I or NR, N>
=head3 debug
X<debug opcode (PASM)>
debug R<FLAG>
Toggle debugging in the interpreter (0 for off, any other value for on).
I<Arguments: I>
=head3 dec
X<dec opcode (PASM)>
dec R<DEST>
Decrement a value by 1.
I<Arguments: I or N or P>
=head3 decodelocaltime
X<decodelocaltime opcode (PASM)>
decodelocaltime R<DEST>, R<VAL>
Set R<DEST> to a new array which represents the decoded time of the
given epoch-seconds value shifted to local time.
I<Arguments: P, I>
=head3 decodetime
X<decodetime opcode (PASM)>
decodetime R<DEST>, R<VAL>
Set R<DEST> to a new array which represents the decoded time of the
given epoch-seconds value.
I<Arguments: P, I>
=head3 defined
X<defined opcode (PASM)>
defined R<DEST>, R<PMC>
defined R<DEST>, R<PMC>[R<KEY>]
Test a keyed PMC value for definedness. If no R<KEY>, test a PMC for
definedness.
I<Arguments: IR, P>
=head3 delete
X<delete opcode (PASM)>
delete R<DEST>[R<KEY>]
Delete a keyed value from an aggregate PMC.
I<Arguments: P>
=head3 delprop
X<delprop opcode (PASM)>
delprop R<PMC>, R<NAME>
Delete a named property from a PMC.
I<Arguments: P, S>
See also: C<setprop> and C<getprop>.
=head3 deref
X<deref opcode (PASM)>
deref R<DEST>, R<REF>
Set R<DEST> to the PMC that R<REF> refers to.
I<Arguments: P, P>
=head3 die_hard
X<die_hard opcode (PASM)>
die_hard R<LEVEL>, R<ERROR>
Die at a given level of severity, and with the given error code.
I<Arguments: I, I>
See also: C<exit>.
=head3 div
X<div opcode (PASM)>
div R<DEST>, R<VAL>
div R<DEST>, R<VAL1>, R<VAL2>
Divide R<VAL1> by R<VAL2>. If R<VAL2> is left out, divide R<DEST> by
R<VAL>.
I<Arguments: IR, I or NR, I or NR, N or P, I or P, N or P, P or IR, I, I
or NR, N, I or NR, N, N or P, P, I or P, P, N or P, P, P>
=head3 dlfunc
X<dlfunc opcode (PASM)>
dlfunc R<DEST>, R<LIBRARY>, R<SYMBOL>, R<SIGNATURE>
Look up a symbol in a dynamic link library PMC and create a subroutine
PMC for that symbol with the given signature.
I<Arguments: P, P, S, S>
=head3 dlvar
X<dlvar opcode (PASM)>
dlvar R<DEST>, R<LIBRARY>, R<SYMBOL>
Look up a symbol in a dynamic link library PMC and create a
PMC for that symbol.
I<Arguments: P, P, S>
=head3 does
X<does opcode (PASM)>
does R<DEST>, R<OBJECT>, R<VAL>
Return a true value if R<OBJECT> I<does> provide the interface R<VAL>,
otherwise return a false value.
I<Arguments: I, P, S>
=head3 downcase
X<downcase opcode (PASM)>
downcase R<DEST>
downcase R<DEST>, R<VAL>
Create a copy of the string in R<VAL> with all characters converted to
lower case, and store it in R<DEST>. If R<VAL> is omitted, convert and
replace the string in R<DEST>.
I<Arguments: S or S, S>
See also: C<upcase>, C<titlecase>.
=head3 end
X<end opcode (PASM)>
end
End execution within the current code segment or halt the interpreter
if in the main code segment.
=head3 enternative
X<enternative opcode (PASM)>
enternative
Run the C<run_native> C function.
=head3 eq
X<eq opcode (PASM)>
eq R<VAL>, R<VAL>, R<LABEL>
Jump to a label if the two values are equal.
I<Arguments: I, I, IC or N, N, IC or S, S, IC or P, I, IC or P, N, IC
or P, S, IC or P, P, IC>
=head3 eq_addr
X<eq_addr opcode (PASM)>
eq_addr R<VAL1>, R<VAL2>, R<LABEL>
Jump to a label if R<VAL1> and R<VAL2> point to the same string or PMC.
Note that this op compares the addresses of the two strings or PMCs,
not simply their values.
I<Arguments: S, S, IC or P, P, IC>
=head3 eq_num
X<eq_num opcode (PASM)>
eq_num R<VAL>, R<VAL>, R<LABEL>
Jump to a label if the two values are numerically equal.
I<Arguments: P, P, IC>
=head3 eq_str
X<eq_str opcode (PASM)>
eq_str R<VAL>, R<VAL>, R<LABEL>
Jump to a label if the two strings are equal.
I<Arguments: P, P, IC>
=head3 err
X<err opcode (PASM)>
err R<DEST>
err R<DEST>, R<CODE>
Return the system error code to an integer destination or the system
error message to a string destination. The two-argument version returns
the system error message for a given code.
I<Arguments: IR or SR or SR, I>
=head3 errorsoff
X<errorsoff opcode (PASM)>
errorsoff R<VAL>
Turn off errors of type R<VAL>.
I<Arguments: I>
=head3 errorson
X<errorson opcode (PASM)>
errorson R<VAL>
Turn on errors of type R<VAL>.
I<Arguments: I>
=head3 exchange
X<exchange opcode (PASM)>
exchange R<REG>, R<REG>
Exchange the contents of two registers.
I<Arguments: IR, IR or NR, NR or SR, SR or P, P>
=head3 exists
X<exists opcode (PASM)>
exists R<DEST>, R<PMC>[R<KEY>]
Test a PMC key for existence.
I<Arguments: IR, P>
=head3 exit
X<exit opcode (PASM)>
exit R<STATUS>
Exit the interpreter with a given R<STATUS>. (For extended exit status,
throw an exception with severity C<EXCEPT_exit>.)
I<Arguments: I>
See also: C<throw>, C<die_hard>.
=head3 exp
X<exp opcode (PASM)>
exp R<DEST>, R<VAL>
Base of the natural logarithm, I<e>, to the power of R<VAL>.
I<Arguments: NR, I or NR, N>
=head3 exsec
X<exsec opcode (PASM)>
exsec R<DEST>, R<VAL>
The exsecant of R<VAL> in radians.
I<Arguments: NR, N>
=head3 fact
X<fact opcode (PASM)>
fact R<DEST>, R<INT>
Return the factorial of R<INT>.
I<Arguments: IR, I or NR, I>
=head3 fdopen
X<fdopen opcode (PASM)>
fdopen R<DEST>, R<INT>, R<MODE>
Get a ParrotIO object for handle R<INT> with open mode R<MODE>.
I<Arguments: P, I, S>
=head3 find_chartype
X<find_chartype opcode (PASM)>
find_chartype R<DEST>, R<NAME>
Find the chartype named R<NAME> and return its number in R<DEST>.
I<Arguments: IR, S>
=head3 find_encoding
X<strings;encoding>
X<find_encoding opcode (PASM)>
find_encoding R<DEST>, R<NAME>
Find the encoding named R<NAME> and return its number in R<DEST>.
I<Arguments: IR, S>
=head3 find_global
X<find_global opcode (PASM)>
find_global R<DEST>, R<NAME>
Return a global variable with the given name.
I<Arguments: P, S>
find_global R<DEST>, R<NAMESPACE>, R<NAME>
Return a global variable with the given name from the given namespace.
I<Arguments: P, S, S or P, P, S>
See also: C<store_global>.
=head3 find_lex
X<find_lex opcode (PASM)>
find_lex R<DEST>, R<NAME>
find_lex R<DEST>, R<DEPTH>, R<NAME>
find_lex R<DEST>, R<DEPTH>, R<POSITION>
Return the lexical variable of the given name from a lexical
scratchpad. If R<DEPTH> is provided, only return a variable from the
scratchpad at that depth. A find by position returns the variable at a
particular position in the scratchpad.
I<Arguments: P, S or P, I, S or P, I, I>
See also: C<store_lex>.
=head3 find_method
X<find_method opcode (PASM)>
find_method R<DEST>, R<PMC>, R<NAME>
Look up a method by name in a PMC's vtable. Return a method PMC.
I<Arguments: P, P, S>
=head3 find_type
X<find_type opcode (PASM)>
find_type R<DEST>, R<NAME>
Find the integer identifier for a PMC type or native Parrot datatype by name.
I<Arguments: IR, S>
See also: C<typeof>.
=head3 findclass
X<findclass opcode (PASM)>
findclass R<DEST>, R<NAME>
Return 1 if the class R<NAME> exists, and 0 otherwise.
I<Arguments: IR, S>
See also: C<typeof>.
=head3 floor
X<floor opcode (PASM)>
floor R<DEST>
floor R<DEST>, R<VAL>
Return the largest integral value less than or equal to R<VAL> (if
present) or itself (if not).
I<Arguments: NR or IR, N or NR, N>
=head3 foldup
X<foldup opcode (PASM)>
foldup R<DEST>
foldup R<DEST>, R<SKIP>
Return a new array holding all passed subroutine parameters. R<SKIP>
defines an optional offset.
I<Arguments: P or P, I>
=head3 freeze
X<freeze opcode (PASM)>
freeze R<DEST>, R<VAL>
Create a frozen image R<DEST> from PMC R<VAL>.
I<Arguments: SR, P>
See also: C<thaw>.
=head3 gc_debug
X<gc_debug opcode (PASM)>