Module: CodeTools::GeneratorMethods

Included in:
Generator
Defined in:
lib/rubinius/code/compiler/generator_methods.rb

Instance Method Summary collapse

Instance Method Details

#add_scopeObject



5
6
7
8
9
10
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 5

def add_scope
  @stream << 0
  @ip += 1
  @current_block.add_stack(1, 0)
  @instruction = 0
end

#allow_privateObject



12
13
14
15
16
17
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 12

def allow_private
  @stream << 1
  @ip += 1
  @current_block.add_stack(0, 0)
  @instruction = 1
end

#cast_arrayObject



19
20
21
22
23
24
25
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 19

def cast_array
  unless @instruction == 2 or @instruction == 29
    @stream << 2
    @ip += 1
  end
  @instruction = 2
end

#cast_for_multi_block_argObject



27
28
29
30
31
32
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 27

def cast_for_multi_block_arg
  @stream << 3
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 3
end

#cast_for_single_block_argObject



34
35
36
37
38
39
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 34

def cast_for_single_block_arg
  @stream << 4
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 4
end

#cast_for_splat_block_argObject



41
42
43
44
45
46
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 41

def cast_for_splat_block_arg
  @stream << 5
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 5
end

#cast_multi_valueObject



48
49
50
51
52
53
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 48

def cast_multi_value
  @stream << 6
  @ip += 1
  @current_block.add_stack(1, 1)
  @instruction = 6
end

#check_frozenObject



55
56
57
58
59
60
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 55

def check_frozen
  @stream << 7
  @ip += 1
  @current_block.add_stack(1, 1)
  @instruction = 7
end

#check_interruptsObject



62
63
64
65
66
67
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 62

def check_interrupts
  @stream << 8
  @ip += 1
  @current_block.add_stack(0, 0)
  @instruction = 8
end

#check_serial(arg1, arg2) ⇒ Object



69
70
71
72
73
74
75
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 69

def check_serial(arg1, arg2)
  arg1 = find_literal(arg1)
  @stream << 9 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(1, 1)
  @instruction = 9
end

#check_serial_private(arg1, arg2) ⇒ Object



77
78
79
80
81
82
83
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 77

def check_serial_private(arg1, arg2)
  arg1 = find_literal(arg1)
  @stream << 10 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(1, 1)
  @instruction = 10
end

#clear_exceptionObject



85
86
87
88
89
90
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 85

def clear_exception
  @stream << 11
  @ip += 1
  @current_block.add_stack(0, 0)
  @instruction = 11
end

#create_block(arg1) ⇒ Object



92
93
94
95
96
97
98
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 92

def create_block(arg1)
  arg1 = add_generator(arg1)
  @stream << 12 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 12
end

#dupObject



100
101
102
103
104
105
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 100

def dup
  @stream << 13
  @ip += 1
  @current_block.add_stack(1, 2)
  @instruction = 13
end

#dup_many(arg1) ⇒ Object



107
108
109
110
111
112
113
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 107

def dup_many(arg1)
  arg1 = Integer(arg1)
  @stream << 14 << arg1
  @ip += 2
  @current_block.add_stack(arg1, (arg1 * 2))
  @instruction = 14
end

#emit_push_literal(arg1) ⇒ Object



418
419
420
421
422
423
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 418

def emit_push_literal(arg1)
  @stream << 48 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 48
end

#ensure_returnObject



115
116
117
118
119
120
121
122
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 115

def ensure_return
  @stream << 15
  @ip += 1
  @current_block.add_stack(1, 1)
  @current_block.close true
  @current_block = new_basic_block
  @instruction = 15
end

#find_const(arg1) ⇒ Object



124
125
126
127
128
129
130
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 124

def find_const(arg1)
  arg1 = find_literal(arg1)
  @stream << 16 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 16
end

#goto(arg1) ⇒ Object



132
133
134
135
136
137
138
139
140
141
142
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 132

def goto(arg1)
  location = @ip + 1
  @stream << 17 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(0, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  @current_block = new_basic_block
  @instruction = 17
end

#goto_if_equal(arg1) ⇒ Object



144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 144

def goto_if_equal(arg1)
  location = @ip + 1
  @stream << 18 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(2, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 18
end

#goto_if_false(arg1) ⇒ Object



158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 158

def goto_if_false(arg1)
  location = @ip + 1
  @stream << 19 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(1, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 19
end

#goto_if_nil(arg1) ⇒ Object



172
173
174
175
176
177
178
179
180
181
182
183
184
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 172

def goto_if_nil(arg1)
  location = @ip + 1
  @stream << 20 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(1, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 20
end

#goto_if_not_equal(arg1) ⇒ Object



186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 186

def goto_if_not_equal(arg1)
  location = @ip + 1
  @stream << 21 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(2, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 21
end

#goto_if_not_nil(arg1) ⇒ Object



200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 200

def goto_if_not_nil(arg1)
  location = @ip + 1
  @stream << 22 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(1, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 22
end

#goto_if_not_undefined(arg1) ⇒ Object



214
215
216
217
218
219
220
221
222
223
224
225
226
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 214

def goto_if_not_undefined(arg1)
  location = @ip + 1
  @stream << 23 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(1, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 23
end

#goto_if_true(arg1) ⇒ Object



228
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 228

def goto_if_true(arg1)
  location = @ip + 1
  @stream << 24 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(1, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 24
end

#goto_if_undefined(arg1) ⇒ Object



242
243
244
245
246
247
248
249
250
251
252
253
254
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 242

def goto_if_undefined(arg1)
  location = @ip + 1
  @stream << 25 << arg1
  @ip += 2
  arg1.used_at location
  @current_block.add_stack(1, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 25
end

#instance_ofObject



256
257
258
259
260
261
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 256

def instance_of
  @stream << 26
  @ip += 1
  @current_block.add_stack(2, 1)
  @instruction = 26
end

#invoke_primitive(arg1, arg2) ⇒ Object



263
264
265
266
267
268
269
270
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 263

def invoke_primitive(arg1, arg2)
  arg1 = find_literal(arg1)
  arg2 = Integer(arg2)
  @stream << 27 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(arg2, 1)
  @instruction = 27
end

#kind_ofObject



272
273
274
275
276
277
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 272

def kind_of
  @stream << 28
  @ip += 1
  @current_block.add_stack(2, 1)
  @instruction = 28
end

#m_bytes(arg1, arg2) ⇒ Object



921
922
923
924
925
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 921

def m_bytes(arg1, arg2)
  @stream << 117 << arg1 << arg2
  @ip += 3
  @instruction = 117
end

#m_counter(arg1) ⇒ Object



927
928
929
930
931
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 927

def m_counter(arg1)
  @stream << 118 << arg1
  @ip += 2
  @instruction = 118
end

#m_sum(arg1, arg2) ⇒ Object



933
934
935
936
937
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 933

def m_sum(arg1, arg2)
  @stream << 119 << arg1 << arg2
  @ip += 3
  @instruction = 119
end

#m_time_stamp(arg1, arg2) ⇒ Object



945
946
947
948
949
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 945

def m_time_stamp(arg1, arg2)
  @stream << 121 << arg1 << arg2
  @ip += 3
  @instruction = 121
end

#m_timer_start(arg1) ⇒ Object



951
952
953
954
955
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 951

def m_timer_start(arg1)
  @stream << 122 << arg1
  @ip += 2
  @instruction = 122
end

#m_timer_stop(arg1, arg2) ⇒ Object



957
958
959
960
961
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 957

def m_timer_stop(arg1, arg2)
  @stream << 123 << arg1 << arg2
  @ip += 3
  @instruction = 123
end

#m_value(arg1, arg2) ⇒ Object



939
940
941
942
943
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 939

def m_value(arg1, arg2)
  @stream << 120 << arg1 << arg2
  @ip += 3
  @instruction = 120
end

#make_array(arg1) ⇒ Object



279
280
281
282
283
284
285
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 279

def make_array(arg1)
  arg1 = Integer(arg1)
  @stream << 29 << arg1
  @ip += 2
  @current_block.add_stack(arg1, 1)
  @instruction = 29
end

#move_down(arg1) ⇒ Object



287
288
289
290
291
292
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 287

def move_down(arg1)
  @stream << 30 << arg1
  @ip += 2
  @current_block.add_stack(arg1, (arg1 * 1))
  @instruction = 30
end

#noopObject



294
295
296
297
298
299
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 294

def noop
  @stream << 31
  @ip += 1
  @current_block.add_stack(0, 0)
  @instruction = 31
end

#object_to_s(arg1) ⇒ Object



301
302
303
304
305
306
307
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 301

def object_to_s(arg1)
  arg1 = find_literal(arg1)
  @stream << 32 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 32
end

#p_any(arg1) ⇒ Object



813
814
815
816
817
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 813

def p_any(arg1)
  @stream << 99 << arg1
  @ip += 2
  @instruction = 99
end

#p_call(arg1) ⇒ Object



819
820
821
822
823
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 819

def p_call(arg1)
  @stream << 100 << arg1
  @ip += 2
  @instruction = 100
end

#p_char(arg1) ⇒ Object



825
826
827
828
829
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 825

def p_char(arg1)
  @stream << 101 << arg1
  @ip += 2
  @instruction = 101
end

#p_char_set(arg1) ⇒ Object



831
832
833
834
835
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 831

def p_char_set(arg1)
  @stream << 102 << arg1
  @ip += 2
  @instruction = 102
end

#p_choice(arg1, arg2) ⇒ Object



837
838
839
840
841
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 837

def p_choice(arg1, arg2)
  @stream << 103 << arg1 << arg2
  @ip += 3
  @instruction = 103
end

#p_commit(arg1) ⇒ Object



843
844
845
846
847
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 843

def p_commit(arg1)
  @stream << 104 << arg1
  @ip += 2
  @instruction = 104
end

#p_commit_back(arg1) ⇒ Object



849
850
851
852
853
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 849

def p_commit_back(arg1)
  @stream << 105 << arg1
  @ip += 2
  @instruction = 105
end

#p_commit_partial(arg2) ⇒ Object



855
856
857
858
859
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 855

def p_commit_partial(arg2)
  @stream << 106 << arg1
  @ip += 2
  @instruction = 106
end

#p_endObject



861
862
863
864
865
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 861

def p_end
  @stream << 107
  @ip += 1
  @instruction = 107
end

#p_failObject



867
868
869
870
871
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 867

def p_fail
  @stream << 108
  @ip += 1
  @instruction = 108
end

#p_fail_twiceObject



873
874
875
876
877
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 873

def p_fail_twice
  @stream << 109
  @ip += 1
  @instruction = 109
end

#p_init(arg1, arg2) ⇒ Object



915
916
917
918
919
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 915

def p_init(arg1, arg2)
  @stream << 116 << arg1 << arg2
  @ip += 3
  @instruction = 116
end

#p_jump(arg1) ⇒ Object



879
880
881
882
883
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 879

def p_jump(arg1)
  @stream << 110 << arg1
  @ip += 2
  @instruction = 110
end

#p_returnObject



885
886
887
888
889
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 885

def p_return
  @stream << 111
  @ip += 1
  @instruction = 111
end

#p_span(arg1) ⇒ Object



891
892
893
894
895
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 891

def p_span(arg1)
  @stream << 112 << arg1
  @ip += 2
  @instruction = 112
end

#p_test_any(arg1, arg2) ⇒ Object



897
898
899
900
901
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 897

def p_test_any(arg1, arg2)
  @stream << 113 << arg1 << arg2
  @ip += 3
  @instruction = 113
end

#p_test_char(arg1, arg2) ⇒ Object



903
904
905
906
907
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 903

def p_test_char(arg1, arg2)
  @stream << 114 << arg1 << arg2
  @ip += 3
  @instruction = 114
end

#p_test_char_set(arg1, arg2) ⇒ Object



909
910
911
912
913
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 909

def p_test_char_set(arg1, arg2)
  @stream << 115 << arg1 << arg2
  @ip += 3
  @instruction = 115
end

#passed_arg(arg1) ⇒ Object



309
310
311
312
313
314
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 309

def passed_arg(arg1)
  @stream << 33 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 33
end

#passed_blockarg(arg1) ⇒ Object



316
317
318
319
320
321
322
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 316

def passed_blockarg(arg1)
  arg1 = Integer(arg1)
  @stream << 34 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 34
end

#popObject



324
325
326
327
328
329
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 324

def pop
  @stream << 35
  @ip += 1
  @current_block.add_stack(1, 0)
  @instruction = 35
end

#pop_many(arg1) ⇒ Object



331
332
333
334
335
336
337
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 331

def pop_many(arg1)
  arg1 = Integer(arg1)
  @stream << 36 << arg1
  @ip += 2
  @current_block.add_stack(arg1, 0)
  @instruction = 36
end

#pop_unwindObject



339
340
341
342
343
344
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 339

def pop_unwind
  @stream << 37
  @ip += 1
  @current_block.add_stack(0, 0)
  @instruction = 37
end

#push_blockObject



346
347
348
349
350
351
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 346

def push_block
  @stream << 38
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 38
end

#push_block_argObject



353
354
355
356
357
358
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 353

def push_block_arg
  @stream << 39
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 39
end

#push_const(arg1) ⇒ Object



360
361
362
363
364
365
366
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 360

def push_const(arg1)
  arg1 = find_literal(arg1)
  @stream << 40 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 40
end

#push_cpath_topObject



368
369
370
371
372
373
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 368

def push_cpath_top
  @stream << 41
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 41
end

#push_current_exceptionObject



375
376
377
378
379
380
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 375

def push_current_exception
  @stream << 42
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 42
end

#push_exception_stateObject



382
383
384
385
386
387
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 382

def push_exception_state
  @stream << 43
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 43
end

#push_falseObject



389
390
391
392
393
394
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 389

def push_false
  @stream << 44
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 44
end

#push_fileObject



806
807
808
809
810
811
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 806

def push_file
  @stream << 98
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 98
end

#push_has_blockObject



396
397
398
399
400
401
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 396

def push_has_block
  @stream << 45
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 45
end

#push_int(arg1) ⇒ Object



403
404
405
406
407
408
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 403

def push_int(arg1)
  @stream << 46 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 46
end

#push_ivar(arg1) ⇒ Object



410
411
412
413
414
415
416
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 410

def push_ivar(arg1)
  arg1 = find_literal(arg1)
  @stream << 47 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 47
end

#push_local(arg1) ⇒ Object



425
426
427
428
429
430
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 425

def push_local(arg1)
  @stream << 49 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 49
end

#push_local_depth(arg1, arg2) ⇒ Object



432
433
434
435
436
437
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 432

def push_local_depth(arg1, arg2)
  @stream << 50 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(0, 1)
  @instruction = 50
end

#push_memo(arg1) ⇒ Object



439
440
441
442
443
444
445
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 439

def push_memo(arg1)
  arg1 = find_literal(arg1)
  @stream << 51 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 51
end

#push_mirrorObject



447
448
449
450
451
452
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 447

def push_mirror
  @stream << 52
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 52
end

#push_my_field(arg1) ⇒ Object



454
455
456
457
458
459
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 454

def push_my_field(arg1)
  @stream << 53 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 53
end

#push_my_offset(arg1) ⇒ Object



461
462
463
464
465
466
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 461

def push_my_offset(arg1)
  @stream << 54 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 54
end

#push_nilObject



468
469
470
471
472
473
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 468

def push_nil
  @stream << 55
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 55
end

#push_procObject



475
476
477
478
479
480
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 475

def push_proc
  @stream << 56
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 56
end

#push_rubiniusObject



482
483
484
485
486
487
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 482

def push_rubinius
  @stream << 57
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 57
end

#push_scopeObject



489
490
491
492
493
494
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 489

def push_scope
  @stream << 58
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 58
end

#push_selfObject



496
497
498
499
500
501
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 496

def push_self
  @stream << 59
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 59
end

#push_stack_local(arg1) ⇒ Object



503
504
505
506
507
508
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 503

def push_stack_local(arg1)
  @stream << 60 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 60
end

#push_trueObject



510
511
512
513
514
515
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 510

def push_true
  @stream << 61
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 61
end

#push_typeObject



517
518
519
520
521
522
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 517

def push_type
  @stream << 62
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 62
end

#push_undefObject



524
525
526
527
528
529
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 524

def push_undef
  @stream << 63
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 63
end

#push_variablesObject



531
532
533
534
535
536
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 531

def push_variables
  @stream << 64
  @ip += 1
  @current_block.add_stack(0, 1)
  @instruction = 64
end

#raise_breakObject



538
539
540
541
542
543
544
545
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 538

def raise_break
  @stream << 65
  @ip += 1
  @current_block.add_stack(1, 1)
  @current_block.close false
  @current_block = new_basic_block
  @instruction = 65
end

#raise_excObject



547
548
549
550
551
552
553
554
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 547

def raise_exc
  @stream << 66
  @ip += 1
  @current_block.add_stack(1, 0)
  @current_block.close false
  @current_block = new_basic_block
  @instruction = 66
end

#raise_returnObject



556
557
558
559
560
561
562
563
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 556

def raise_return
  @stream << 67
  @ip += 1
  @current_block.add_stack(1, 1)
  @current_block.close true
  @current_block = new_basic_block
  @instruction = 67
end

#reraiseObject



565
566
567
568
569
570
571
572
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 565

def reraise
  @stream << 68
  @ip += 1
  @current_block.add_stack(0, 0)
  @current_block.close false
  @current_block = new_basic_block
  @instruction = 68
end

#restore_exception_stateObject



574
575
576
577
578
579
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 574

def restore_exception_state
  @stream << 69
  @ip += 1
  @current_block.add_stack(1, 0)
  @instruction = 69
end

#ret(arg1) ⇒ Object



581
582
583
584
585
586
587
588
589
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 581

def ret(arg1)
  arg1 = Integer(arg1)
  @stream << 70 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @current_block.close true
  @current_block = new_basic_block
  @instruction = 70
end

#rotate(arg1) ⇒ Object



591
592
593
594
595
596
597
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 591

def rotate(arg1)
  arg1 = Integer(arg1)
  @stream << 71 << arg1
  @ip += 2
  @current_block.add_stack(arg1, (arg1 * 1))
  @instruction = 71
end

#send_method(arg1) ⇒ Object



599
600
601
602
603
604
605
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 599

def send_method(arg1)
  arg1 = find_literal(arg1)
  @stream << 72 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 72
end

#send_stack(arg1, arg2) ⇒ Object



607
608
609
610
611
612
613
614
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 607

def send_stack(arg1, arg2)
  arg1 = find_literal(arg1)
  arg2 = Integer(arg2)
  @stream << 73 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(arg2+1, 1)
  @instruction = 73
end

#send_stack_with_block(arg1, arg2) ⇒ Object



616
617
618
619
620
621
622
623
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 616

def send_stack_with_block(arg1, arg2)
  arg1 = find_literal(arg1)
  arg2 = Integer(arg2)
  @stream << 74 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(arg2+2, 1)
  @instruction = 74
end

#send_stack_with_splat(arg1, arg2) ⇒ Object



625
626
627
628
629
630
631
632
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 625

def send_stack_with_splat(arg1, arg2)
  arg1 = find_literal(arg1)
  arg2 = Integer(arg2)
  @stream << 75 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(arg2+3, 1)
  @instruction = 75
end

#send_super_stack_with_block(arg1, arg2) ⇒ Object



634
635
636
637
638
639
640
641
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 634

def send_super_stack_with_block(arg1, arg2)
  arg1 = find_literal(arg1)
  arg2 = Integer(arg2)
  @stream << 76 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(arg2+1, 1)
  @instruction = 76
end

#send_super_stack_with_splat(arg1, arg2) ⇒ Object



643
644
645
646
647
648
649
650
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 643

def send_super_stack_with_splat(arg1, arg2)
  arg1 = find_literal(arg1)
  arg2 = Integer(arg2)
  @stream << 77 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(arg2+2, 1)
  @instruction = 77
end

#send_vcall(arg1) ⇒ Object



652
653
654
655
656
657
658
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 652

def send_vcall(arg1)
  arg1 = find_literal(arg1)
  @stream << 78 << arg1
  @ip += 2
  @current_block.add_stack(0, 1)
  @instruction = 78
end

#set_call_flags(arg1) ⇒ Object



660
661
662
663
664
665
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 660

def set_call_flags(arg1)
  @stream << 79 << arg1
  @ip += 2
  @current_block.add_stack(0, 0)
  @instruction = 79
end

#set_const(arg1) ⇒ Object



667
668
669
670
671
672
673
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 667

def set_const(arg1)
  arg1 = find_literal(arg1)
  @stream << 80 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 80
end

#set_const_at(arg1) ⇒ Object



675
676
677
678
679
680
681
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 675

def set_const_at(arg1)
  arg1 = find_literal(arg1)
  @stream << 81 << arg1
  @ip += 2
  @current_block.add_stack(2, 1)
  @instruction = 81
end

#set_ivar(arg1) ⇒ Object



683
684
685
686
687
688
689
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 683

def set_ivar(arg1)
  arg1 = find_literal(arg1)
  @stream << 82 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 82
end

#set_local(arg1) ⇒ Object



691
692
693
694
695
696
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 691

def set_local(arg1)
  @stream << 83 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 83
end

#set_local_depth(arg1, arg2) ⇒ Object



698
699
700
701
702
703
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 698

def set_local_depth(arg1, arg2)
  @stream << 84 << arg1 << arg2
  @ip += 3
  @current_block.add_stack(1, 1)
  @instruction = 84
end

#set_stack_local(arg1) ⇒ Object



705
706
707
708
709
710
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 705

def set_stack_local(arg1)
  @stream << 85 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 85
end

#setup_unwind(arg1, arg2) ⇒ Object



712
713
714
715
716
717
718
719
720
721
722
723
724
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 712

def setup_unwind(arg1, arg2)
  location = @ip + 1
  @stream << 86 << arg1 << arg2
  @ip += 3
  arg1.used_at location
  @current_block.add_stack(0, 0)
  @current_block.left = arg1.basic_block
  @current_block.close
  block = new_basic_block
  @current_block.right = block
  @current_block = block
  @instruction = 86
end

#shift_arrayObject



726
727
728
729
730
731
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 726

def shift_array
  @stream << 87
  @ip += 1
  @current_block.add_stack(1, 2)
  @instruction = 87
end

#store_my_field(arg1) ⇒ Object



733
734
735
736
737
738
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 733

def store_my_field(arg1)
  @stream << 88 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 88
end

#string_appendObject



740
741
742
743
744
745
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 740

def string_append
  @stream << 89
  @ip += 1
  @current_block.add_stack(2, 1)
  @instruction = 89
end

#string_build(arg1) ⇒ Object



747
748
749
750
751
752
753
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 747

def string_build(arg1)
  arg1 = Integer(arg1)
  @stream << 90 << arg1
  @ip += 2
  @current_block.add_stack(arg1, 1)
  @instruction = 90
end

#string_dupObject



755
756
757
758
759
760
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 755

def string_dup
  @stream << 91
  @ip += 1
  @current_block.add_stack(1, 1)
  @instruction = 91
end

#swapObject



762
763
764
765
766
767
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 762

def swap
  @stream << 92
  @ip += 1
  @current_block.add_stack(2, 2)
  @instruction = 92
end

#unwind(arg1) ⇒ Object



769
770
771
772
773
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 769

def unwind(arg1)
  @stream << 93 << arg1
  @ip += 2
  @instruction = 93
end

#yield_debuggerObject



775
776
777
778
779
780
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 775

def yield_debugger
  @stream << 94
  @ip += 1
  @current_block.add_stack(0, 0)
  @instruction = 94
end

#yield_splat(arg1) ⇒ Object



782
783
784
785
786
787
788
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 782

def yield_splat(arg1)
  arg1 = Integer(arg1)
  @stream << 95 << arg1
  @ip += 2
  @current_block.add_stack(arg1+1, 1)
  @instruction = 95
end

#yield_stack(arg1) ⇒ Object



790
791
792
793
794
795
796
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 790

def yield_stack(arg1)
  arg1 = Integer(arg1)
  @stream << 96 << arg1
  @ip += 2
  @current_block.add_stack(arg1, 1)
  @instruction = 96
end

#zsuper(arg1) ⇒ Object



798
799
800
801
802
803
804
# File 'lib/rubinius/code/compiler/generator_methods.rb', line 798

def zsuper(arg1)
  arg1 = find_literal(arg1)
  @stream << 97 << arg1
  @ip += 2
  @current_block.add_stack(1, 1)
  @instruction = 97
end