rubinius-compiler 3.33 → 3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fa8885a368de235e0d26d19d57f7a816ff35b01
4
- data.tar.gz: 75221520fb00559ce5d1334fe3953eb9718d7fec
3
+ metadata.gz: 2b1f66eeedecfd23d304f5ffb516a559cdec6a73
4
+ data.tar.gz: 1c8729f75d92e8274a057cab55ca680dd7cdcdf9
5
5
  SHA512:
6
- metadata.gz: e47a3ce6ea0796fd467292188251a4ecae589d851ee296955c2e3b7ac5ade6c428af4e77b27fc453074efc8a6fc805fb4bfd14a3ac9716302f179cf1eb7248b8
7
- data.tar.gz: cd3a05848205c1bc4b35ecf8531d34cafcc114a8ac47db23ea06650dc525045582cb77a548f286ba9e1e46f150da1c77ff306312b2409450016ada067492ae0c
6
+ metadata.gz: 3cc7ab0c23e58cc173aa8b728a27babdd3b38941442a613356536c5aa10b1082c725d197f78a9192f79af1d71b3302bb3d7e781b25bbe1c4ecb1789e0d650608
7
+ data.tar.gz: 0c343c73bde690eca4b11d0674af2cefd50fcd4e69aefb2a118ffb4414519db5c91e24b7b4de64d5c79b4f230d26e0e6d865dfbda066bd10544de8517e1c5c45
@@ -1331,5 +1331,72 @@ module CodeTools
1331
1331
  @instruction = 180
1332
1332
  end
1333
1333
 
1334
+ def goto_past(arg1)
1335
+ @stream << 181 << arg1
1336
+ @ip += 2
1337
+ @instruction = 181
1338
+ end
1339
+
1340
+ def goto_future(arg1)
1341
+ @stream << 182 << arg1
1342
+ @ip += 2
1343
+ @instruction = 182
1344
+ end
1345
+
1346
+ def r_load_0(arg1)
1347
+ @stream << 183 << arg1
1348
+ @ip += 2
1349
+ @instruction = 183
1350
+ end
1351
+
1352
+ def r_load_1(arg1)
1353
+ @stream << 184 << arg1
1354
+ @ip += 2
1355
+ @instruction = 184
1356
+ end
1357
+
1358
+ def r_load_nil(arg1, arg2)
1359
+ @stream << 185 << arg1 << arg2
1360
+ @ip += 3
1361
+ @instruction = 185
1362
+ end
1363
+
1364
+ def r_load_false(arg1)
1365
+ @stream << 186 << arg1
1366
+ @ip += 2
1367
+ @instruction = 186
1368
+ end
1369
+
1370
+ def r_load_true(arg1)
1371
+ @stream << 187 << arg1
1372
+ @ip += 2
1373
+ @instruction = 187
1374
+ end
1375
+
1376
+ def call_send(arg1, arg2)
1377
+ arg1 = find_literal(arg1)
1378
+ arg2 = Integer(arg2)
1379
+ @stream << 188 << arg1 << arg2
1380
+ @ip += 3
1381
+ @current_block.add_stack(arg2+1, 1)
1382
+ @instruction = 188
1383
+ end
1384
+
1385
+ def call(arg1, arg2)
1386
+ arg1 = find_literal(arg1)
1387
+ arg2 = Integer(arg2)
1388
+ @stream << 189 << arg1 << arg2
1389
+ @ip += 3
1390
+ @current_block.add_stack(arg2+1, 1)
1391
+ @instruction = 189
1392
+ end
1393
+
1394
+ def call_0(arg1)
1395
+ arg1 = find_literal(arg1)
1396
+ @stream << 190 << arg1
1397
+ @ip += 2
1398
+ @current_block.add_stack(0, 1)
1399
+ @instruction = 190
1400
+ end
1334
1401
  end
1335
1402
  end
@@ -202,5 +202,15 @@ module Rubinius
202
202
  opcode 178, :a_less_equal, :stack => [0, 0], :args => [:r0, :r1], :control_flow => :next
203
203
  opcode 179, :a_greater, :stack => [0, 0], :args => [:r0, :r1], :control_flow => :next
204
204
  opcode 180, :a_greater_equal, :stack => [0, 0], :args => [:r0, :r1], :control_flow => :next
205
+ opcode 181, :goto_past, :stack => [0, 0], :args => [:location], :control_flow => :branch
206
+ opcode 182, :goto_future, :stack => [0, 0], :args => [:location], :control_flow => :branch
207
+ opcode 183, :r_load_0, :stack => [0, 0], :args => [:r0], :control_flow => :next
208
+ opcode 184, :r_load_1, :stack => [0, 0], :args => [:r0], :control_flow => :next
209
+ opcode 185, :r_load_nil, :stack => [0, 0], :args => [:r0, :r1], :control_flow => :next
210
+ opcode 186, :r_load_false, :stack => [0, 0], :args => [:r0], :control_flow => :next
211
+ opcode 187, :r_load_true, :stack => [0, 0], :args => [:r0], :control_flow => :next
212
+ opcode 188, :call_send, :stack => [[1,2], 1], :args => [:literal, :count], :control_flow => :send
213
+ opcode 189, :call, :stack => [[1,2], 1], :args => [:literal, :count], :control_flow => :send
214
+ opcode 190, :call_0, :stack => [0, 1], :args => [:literal], :control_flow => :send
205
215
  end
206
216
  end
@@ -1,5 +1,5 @@
1
1
  module CodeTools
2
2
  class Compiler
3
- VERSION = "3.33"
3
+ VERSION = "3.34"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubinius-compiler
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.33'
4
+ version: '3.34'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Shirai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-28 00:00:00.000000000 Z
11
+ date: 2019-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.5.1
80
+ rubygems_version: 2.5.2.3
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: A Bytecode compiler for the Rubinius language platform.