Commit 016a6ea4
016a6ea41529Merged
Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 3 files · ~3 modified
Description
fix: batch 3 - parser/codegen audit fixes
- #808: split("|") missing -1 in ~143 sites across analyze + codegen. When the last semicolon-joined field is empty (a method with zero params, an ivar at the tail), MRI's split drops it -- spinel's fixpoint then sees a shorter table. Spinel's own runtime split keeps trailing empties already, so this only manifests during the bootstrap MRI run. Wholesale change to split("|", -1).
- #793: spinel_parse always emits an explicit
call_operatorfield on CallNode (not just for safe-navigation). Avoids codegen branches that depend on the field being non-empty. - #792: rewrite_syntax_sugar's
(&:sym)paren-strip skips whitespace between the symbol name and the closing paren, so(&:bar )matches the same shape(&:bar)does and the closing)is consumed instead of leaking out as a stray. - #765: snprintf into rel_path[512] / full_path[1024] in the require_relative resolver -- bail out cleanly when path_len would truncate rather than silently emitting a wrong path.
- #771: ir_hex_digit returns -1 (instead of 0) for non-hex chars,
and ir_unescape now passes a malformed
%XXthrough verbatim rather than decoding it as a NUL byte that truncates the surrounding type string.
476 tests pass; optcarrot checksum 59662.
Closes #808 Closes #793 Closes #792 Closes #765 Closes #771
Co-Authored-By: Claude Opus 4.7 [email protected]
Details
- Commit
- 016a6ea41529
- Parent
- 93c00884dcef
spinel_analyze.rbmodifiedView file
@@ -225,7 +225,7 @@
225225
@cls_ivar_type_cache_version = 0226226
# Single-slot caches for the outer "|" split of joined per-class227227
# method/param fields. cls_meth_ptypes_get / cls_meth_pnames_get /228-
# cls_cmeth_*_get all do `field[ci].split("|")` then228+
# cls_cmeth_*_get all do `field[ci].split("|", -1)` then229229
# `[midx].split(",")` — the outer split is repeated for every230230
# (ci, midx) pair. Cache one ci's outer split per field;231231
# consecutive calls with the same ci skip the outer split.@@ -6025,7 +6025,7 @@
60256025
while ci < @cls_names.length60266026
# Check zero-arg methods (getters)60276027
ci2_mnames = @cls_meth_names[ci].split(";")6028-
ci2_mparams = @cls_meth_params[ci].split("|")6028+
ci2_mparams = @cls_meth_params[ci].split("|", -1)60296029
mi2 = 060306030
while mi2 < ci2_mnames.length60316031
if ci2_mnames[mi2] == mname@@ -6881,9 +6881,9 @@
68816881
p_cmnames = @cls_cmeth_names[pi].split(";")68826882
p_cmreturns = @cls_cmeth_returns[pi].split(";")68836883
p_cmbodies = @cls_cmeth_bodies[pi].split(";")6884-
p_cmparams = @cls_cmeth_params[pi].split("|")6885-
p_cmptypes = @cls_cmeth_ptypes[pi].split("|")6886-
p_cmdefaults = @cls_cmeth_defaults[pi].split("|")6884+
p_cmparams = @cls_cmeth_params[pi].split("|", -1)6885+
p_cmptypes = @cls_cmeth_ptypes[pi].split("|", -1)6886+
p_cmdefaults = @cls_cmeth_defaults[pi].split("|", -1)68876887
pj = 068886888
while pj < p_cmnames.length68896889
mname = p_cmnames[pj]@@ -8286,11 +8286,11 @@
82868286
$stderr.puts "Spinel: alias `" + new_name + "` -> `" + old_name + "`: source method not found in class " + @cls_names[ci]82878287
exit(1)82888288
end8289-
pnames_all = @cls_meth_params[ci].split("|")8290-
ptypes_all = @cls_meth_ptypes[ci].split("|")8289+
pnames_all = @cls_meth_params[ci].split("|", -1)8290+
ptypes_all = @cls_meth_ptypes[ci].split("|", -1)82918291
rets_all = @cls_meth_returns[ci].split(";")82928292
bodies_all = @cls_meth_bodies[ci].split(";")8293-
defs_all = @cls_meth_defaults[ci].split("|")8293+
defs_all = @cls_meth_defaults[ci].split("|", -1)82948294
params = pnames_all[src] || ""82958295
ptypes = ptypes_all[src] || ""82968296
ret = rets_all[src] || "int"@@ -8326,12 +8326,12 @@
83268326
end83278327
end83288328
if hit_u >= 08329-
cur_params_u = @cls_meth_params[ci].split("|")8330-
cur_ptypes_u = @cls_meth_ptypes[ci].split("|")8329+
cur_params_u = @cls_meth_params[ci].split("|", -1)8330+
cur_ptypes_u = @cls_meth_ptypes[ci].split("|", -1)83318331
cur_returns_u = @cls_meth_returns[ci].split(";")83328332
cur_bodies_u = @cls_meth_bodies[ci].split(";")8333-
cur_defaults_u = @cls_meth_defaults[ci].split("|")8334-
cur_pempty_u = @cls_meth_ptypes_empty[ci].split("|")8333+
cur_defaults_u = @cls_meth_defaults[ci].split("|", -1)8334+
cur_pempty_u = @cls_meth_ptypes_empty[ci].split("|", -1)83358335
while cur_pempty_u.length < cur_names_u.length83368336
cur_pempty_u.push("")83378337
end@@ -8962,12 +8962,12 @@
89628962
# behaviour.89638963
$stderr.puts "warning: method '" + name + "' on " + @cls_names[ci] + " is being redefined; spinel uses last-def-wins semantics (calls before the redefinition won't see the original body — subset limitation)"89648964
cur_names = @cls_meth_names[ci].split(";")8965-
cur_params = @cls_meth_params[ci].split("|")8966-
cur_ptypes = @cls_meth_ptypes[ci].split("|")8965+
cur_params = @cls_meth_params[ci].split("|", -1)8966+
cur_ptypes = @cls_meth_ptypes[ci].split("|", -1)89678967
cur_returns = @cls_meth_returns[ci].split(";")89688968
cur_bodies = @cls_meth_bodies[ci].split(";")8969-
cur_defaults = @cls_meth_defaults[ci].split("|")8970-
cur_pempty = @cls_meth_ptypes_empty[ci].split("|")8969+
cur_defaults = @cls_meth_defaults[ci].split("|", -1)8970+
cur_pempty = @cls_meth_ptypes_empty[ci].split("|", -1)89718971
while cur_pempty.length < cur_names.length89728972
cur_pempty.push("")89738973
end@@ -9044,11 +9044,11 @@
90449044
end90459045
end90469046
if found_cmi >= 09047-
cur_cm_params = @cls_cmeth_params[ci].split("|")9048-
cur_cm_ptypes = @cls_cmeth_ptypes[ci].split("|")9047+
cur_cm_params = @cls_cmeth_params[ci].split("|", -1)9048+
cur_cm_ptypes = @cls_cmeth_ptypes[ci].split("|", -1)90499049
cur_cm_returns = @cls_cmeth_returns[ci].split(";")90509050
cur_cm_bodies = @cls_cmeth_bodies[ci].split(";")9051-
cur_cm_defaults = @cls_cmeth_defaults[ci].split("|")9051+
cur_cm_defaults = @cls_cmeth_defaults[ci].split("|", -1)90529052
cm_names_re[found_cmi] = name90539053
if found_cmi < cur_cm_params.length90549054
cur_cm_params[found_cmi] = params@@ -12691,7 +12691,7 @@
1269112691
mua_cci = find_class_idx(mua_cn)1269212692
if mua_cci >= 01269312693
mua_cmnames = @cls_cmeth_names[mua_cci].split(";")12694-
mua_cmpall = @cls_cmeth_ptypes[mua_cci].split("|")12694+
mua_cmpall = @cls_cmeth_ptypes[mua_cci].split("|", -1)1269512695
mua_cmidx = 01269612696
while mua_cmidx < mua_cmnames.length1269712697
if mua_cmnames[mua_cmidx] == mua_outer_mname && mua_cmidx < mua_cmpall.length@@ -13305,8 +13305,8 @@
1330513305
# exists on both ActionController_Base and ActionResponse).1330613306
default_obj_t = ""1330713307
defs_str_cm = ""13308-
if j < @cls_meth_defaults[oci].split("|").length13309-
defs_str_cm = @cls_meth_defaults[oci].split("|")[j]13308+
if j < @cls_meth_defaults[oci].split("|", -1).length13309+
defs_str_cm = @cls_meth_defaults[oci].split("|", -1)[j]1331013310
end1331113311
defs_arr_cm = defs_str_cm.split(",")1331213312
if pk < defs_arr_cm.length@@ -14566,7 +14566,7 @@
1456614566
while ci < @cls_names.length1456714567
mnames = @cls_meth_names[ci].split(";")1456814568
bodies = @cls_meth_bodies[ci].split(";")14569-
defaults_per = @cls_meth_defaults[ci].split("|")14569+
defaults_per = @cls_meth_defaults[ci].split("|", -1)1457014570
cls_changed = 01457114571
mj = 01457214572
while mj < mnames.length@@ -14855,8 +14855,8 @@
1485514855
ci = 01485614856
while ci < @cls_names.length1485714857
mnames = @cls_meth_names[ci].split(";")14858-
all_params = @cls_meth_params[ci].split("|")14859-
all_ptypes = @cls_meth_ptypes[ci].split("|")14858+
all_params = @cls_meth_params[ci].split("|", -1)14859+
all_ptypes = @cls_meth_ptypes[ci].split("|", -1)1486014860
bodies = @cls_meth_bodies[ci].split(";")1486114861
cls_changed = 01486214862
mj = 0@@ -15140,9 +15140,9 @@
1514015140
end1514115141
ci = 01514215142
while ci < @cls_names.length15143-
all_params = @cls_meth_params[ci].split("|")15144-
all_ptypes = @cls_meth_ptypes[ci].split("|")15145-
all_defaults = @cls_meth_defaults[ci].split("|")15143+
all_params = @cls_meth_params[ci].split("|", -1)15144+
all_ptypes = @cls_meth_ptypes[ci].split("|", -1)15145+
all_defaults = @cls_meth_defaults[ci].split("|", -1)1514615146
cls_changed = 01514715147
mj = 01514815148
while mj < all_params.length@@ -15181,9 +15181,9 @@
1518115181
@cls_meth_ptypes[ci] = all_ptypes.join("|")1518215182
@cls_meth_ptypes_version = @cls_meth_ptypes_version + 11518315183
end15184-
cmeth_params_all = @cls_cmeth_params[ci].split("|")15185-
cmeth_ptypes_all = @cls_cmeth_ptypes[ci].split("|")15186-
cmeth_defaults_all = @cls_cmeth_defaults[ci].split("|")15184+
cmeth_params_all = @cls_cmeth_params[ci].split("|", -1)15185+
cmeth_ptypes_all = @cls_cmeth_ptypes[ci].split("|", -1)15186+
cmeth_defaults_all = @cls_cmeth_defaults[ci].split("|", -1)1518715187
cmeth_cls_changed = 01518815188
cmj = 01518915189
while cmj < cmeth_params_all.length@@ -15440,8 +15440,8 @@
1544015440
ltypes = "".split(",")1544115441
sn_b = @nd_scope_names[body_id]1544215442
if sn_b != ""15443-
lnames = sn_b.split("|")15444-
ltypes = @nd_scope_types[body_id].split("|")15443+
lnames = sn_b.split("|", -1)15444+
ltypes = @nd_scope_types[body_id].split("|", -1)1544515445
end1544615446
j = 01544715447
while j < lnames.length@@ -15491,7 +15491,7 @@
1549115491
if ci < @cls_cmeth_names.length1549215492
cmnames = @cls_cmeth_names[ci].split(";")1549315493
cm_bodies = @cls_cmeth_bodies[ci].split(";")15494-
cm_ptypes = @cls_cmeth_ptypes[ci].split("|")15494+
cm_ptypes = @cls_cmeth_ptypes[ci].split("|", -1)1549515495
cmidx = 01549615496
while cmidx < cmnames.length1549715497
if cmidx < cm_ptypes.length@@ -16268,9 +16268,9 @@
1626816268
ci = 01626916269
while ci < @cls_names.length1627016270
@current_class_idx = ci16271-
all_params = @cls_meth_params[ci].split("|")16272-
all_ptypes = @cls_meth_ptypes[ci].split("|")16273-
all_empty = @cls_meth_ptypes_empty[ci].split("|")16271+
all_params = @cls_meth_params[ci].split("|", -1)16272+
all_ptypes = @cls_meth_ptypes[ci].split("|", -1)16273+
all_empty = @cls_meth_ptypes_empty[ci].split("|", -1)1627416274
bodies = @cls_meth_bodies[ci].split(";")1627516275
cls_changed = 01627616276
mj = 0@@ -16399,8 +16399,8 @@
1639916399
# Class instance methods.1640016400
ci = 01640116401
while ci < @cls_names.length16402-
all_params = @cls_meth_params[ci].split("|")16403-
all_ptypes = @cls_meth_ptypes[ci].split("|")16402+
all_params = @cls_meth_params[ci].split("|", -1)16403+
all_ptypes = @cls_meth_ptypes[ci].split("|", -1)1640416404
bodies = @cls_meth_bodies[ci].split(";")1640516405
cls_changed = 01640616406
mj = 0@@ -17747,7 +17747,7 @@
1774717747
ci = 01774817748
while ci < @cls_names.length1774917749
mnames = @cls_meth_names[ci].split(";")17750-
all_ptypes = @cls_meth_ptypes[ci].split("|")17750+
all_ptypes = @cls_meth_ptypes[ci].split("|", -1)1775117751
ivar_names = @cls_ivar_names[ci].split(";")1775217752
ivar_types = @cls_ivar_types[ci].split(";")1775317753
changed = 0@@ -18608,8 +18608,8 @@
1860818608
while i < @cls_names.length1860918609
@current_class_idx = i1861018610
mnames = @cls_meth_names[i].split(";")18611-
all_params = @cls_meth_params[i].split("|")18612-
all_ptypes = @cls_meth_ptypes[i].split("|")18611+
all_params = @cls_meth_params[i].split("|", -1)18612+
all_ptypes = @cls_meth_ptypes[i].split("|", -1)1861318613
bodies = @cls_meth_bodies[i].split(";")1861418614
returns = @cls_meth_returns[i].split(";")1861518615
@@ -18776,8 +18776,8 @@
1877618776
cmnames = @cls_cmeth_names[i].split(";")1877718777
cm_bodies = @cls_cmeth_bodies[i].split(";")1877818778
cm_returns = @cls_cmeth_returns[i].split(";")18779-
cm_params = @cls_cmeth_params[i].split("|")18780-
cm_ptypes = @cls_cmeth_ptypes[i].split("|")18779+
cm_params = @cls_cmeth_params[i].split("|", -1)18780+
cm_ptypes = @cls_cmeth_ptypes[i].split("|", -1)1878118781
saved_meth = @current_method_name1878218782
j = 01878318783
while j < cmnames.length@@ -18922,7 +18922,7 @@
1892218922
if parent_ci >= 01892318923
parent_init = cls_find_method_direct(parent_ci, "initialize")1892418924
if parent_init >= 018925-
parent_ptypes = @cls_meth_ptypes[parent_ci].split("|")18925+
parent_ptypes = @cls_meth_ptypes[parent_ci].split("|", -1)1892618926
if parent_init < parent_ptypes.length1892718927
ppt = parent_ptypes[parent_init].split(",")1892818928
if sk < ppt.length@@ -20976,8 +20976,8 @@
2097620976
# receiver-method unify path inside scan_new_calls.2097720977
cm_names = @cls_cmeth_names[ci].split(";")2097820978
cm_bodies = @cls_cmeth_bodies[ci].split(";")20979-
cm_params = @cls_cmeth_params[ci].split("|")20980-
cm_ptypes = @cls_cmeth_ptypes[ci].split("|")20979+
cm_params = @cls_cmeth_params[ci].split("|", -1)20980+
cm_ptypes = @cls_cmeth_ptypes[ci].split("|", -1)2098120981
saved_meth_cb = @current_method_name2098220982
cmi = 02098320983
while cmi < cm_names.length@@ -21596,8 +21596,8 @@
2159621596
stj = @nd_scope_types[sj]2159721597
snj = sj < @nd_scope_names.length ? @nd_scope_names[sj] : ""2159821598
if stj != "" && snj != ""21599-
psj = stj.split("|")21600-
pnj = snj.split("|")21599+
psj = stj.split("|", -1)21600+
pnj = snj.split("|", -1)2160121601
chj = 02160221602
ppj = 02160321603
while ppj < psj.length && ppj < pnj.length@@ -21945,7 +21945,7 @@
2194521945
if ci >= tbl.length2194621946
return2194721947
end21948-
all_pt = tbl[ci].split("|")21948+
all_pt = tbl[ci].split("|", -1)2194921949
changed = 02195021950
mj = 02195121951
while mj < all_pt.length@@ -22022,13 +22022,13 @@
2202222022
arbitrate_rbs_method_returns_definite_conflict2202322023
# Class instance methods.2202422024
@cls_meth_rbs_ptypes.each_pair { |k, rbs_pt|22025-
parts = k.split("|")22025+
parts = k.split("|", -1)2202622026
ci = parts[0].to_i2202722027
midx = parts[1].to_i2202822028
if ci < 0 || ci >= @cls_meth_ptypes.length2202922029
next2203022030
end22031-
all_pt = @cls_meth_ptypes[ci].split("|")22031+
all_pt = @cls_meth_ptypes[ci].split("|", -1)2203222032
if midx < all_pt.length && all_pt[midx] != rbs_pt2203322033
all_pt[midx] = rbs_pt2203422034
@cls_meth_ptypes[ci] = all_pt.join("|")@@ -22036,7 +22036,7 @@
2203622036
end2203722037
}2203822038
@cls_meth_rbs_returns.each_pair { |k, rbs_ret|22039-
parts = k.split("|")22039+
parts = k.split("|", -1)2204022040
ci = parts[0].to_i2204122041
midx = parts[1].to_i2204222042
if ci < 0 || ci >= @cls_meth_returns.length@@ -22051,13 +22051,13 @@
2205122051
}2205222052
# Class methods (cmeth).2205322053
@cls_cmeth_rbs_ptypes.each_pair { |k, rbs_pt|22054-
parts = k.split("|")22054+
parts = k.split("|", -1)2205522055
ci = parts[0].to_i2205622056
midx = parts[1].to_i2205722057
if ci < 0 || ci >= @cls_cmeth_ptypes.length2205822058
next2205922059
end22060-
all_pt = @cls_cmeth_ptypes[ci].split("|")22060+
all_pt = @cls_cmeth_ptypes[ci].split("|", -1)2206122061
if midx < all_pt.length && all_pt[midx] != rbs_pt2206222062
all_pt[midx] = rbs_pt2206322063
@cls_cmeth_ptypes[ci] = all_pt.join("|")@@ -22065,7 +22065,7 @@
2206522065
end2206622066
}2206722067
@cls_cmeth_rbs_returns.each_pair { |k, rbs_ret|22068-
parts = k.split("|")22068+
parts = k.split("|", -1)2206922069
ci = parts[0].to_i2207022070
midx = parts[1].to_i2207122071
if ci < 0 || ci >= @cls_cmeth_returns.length@@ -22262,7 +22262,7 @@
2226222262
2226322263
def arbitrate_rbs_method_returns_definite_conflict2226422264
@cls_meth_rbs_returns.each_pair { |k, rbs_ret|22265-
parts = k.split("|")22265+
parts = k.split("|", -1)2226622266
ci = parts[0].to_i2226722267
midx = parts[1].to_i2226822268
if ci < 0 || ci >= @cls_meth_bodies.length@@ -22295,7 +22295,7 @@
2229522295
end2229622296
}2229722297
@cls_cmeth_rbs_returns.each_pair { |k, rbs_ret|22298-
parts = k.split("|")22298+
parts = k.split("|", -1)2229922299
ci = parts[0].to_i2230022300
midx = parts[1].to_i2230122301
if ci < 0 || ci >= @cls_cmeth_bodies.length@@ -22965,7 +22965,7 @@
2296522965
while sj < @nd_scope_types.length2296622966
stj = @nd_scope_types[sj]2296722967
if stj != ""22968-
psj = stj.split("|")22968+
psj = stj.split("|", -1)2296922969
chj = 02297022970
ppj = 02297122971
while ppj < psj.length@@ -23150,7 +23150,7 @@
2315023150
# Class instance method + cmeth params + returns.2315123151
rci = 02315223152
while rci < @cls_names.length23153-
r_im_pall = @cls_meth_ptypes[rci].split("|")23153+
r_im_pall = @cls_meth_ptypes[rci].split("|", -1)2315423154
r_im_ret = @cls_meth_returns[rci].split(";")2315523155
r_imj = 02315623156
while r_imj < r_im_pall.length@@ -23186,7 +23186,7 @@
2318623186
end2318723187
r_imrj = r_imrj + 12318823188
end23189-
r_cmpall = @cls_cmeth_ptypes[rci].split("|")23189+
r_cmpall = @cls_cmeth_ptypes[rci].split("|", -1)2319023190
r_cmret = @cls_cmeth_returns[rci].split(";")2319123191
r_cmj = 02319223192
while r_cmj < r_cmpall.length@@ -23248,7 +23248,7 @@
2324823248
while r_nd < @nd_scope_types.length2324923249
r_st = @nd_scope_types[r_nd]2325023250
if r_st != ""23251-
r_pieces = r_st.split("|")23251+
r_pieces = r_st.split("|", -1)2325223252
r_pp = 02325323253
while r_pp < r_pieces.length2325423254
if r_pieces[r_pp] != ""@@ -23313,8 +23313,8 @@
2331323313
bci = 02331423314
while bci < @cls_names.length2331523315
bcn = @cls_names[bci]23316-
b_im_pn = @cls_meth_params[bci].split("|")23317-
b_im_pt = @cls_meth_ptypes[bci].split("|")23316+
b_im_pn = @cls_meth_params[bci].split("|", -1)23317+
b_im_pt = @cls_meth_ptypes[bci].split("|", -1)2331823318
b_im_mn = @cls_meth_names[bci].split(";")2331923319
b_im_rn = @cls_meth_returns[bci].split(";")2332023320
b_imj = 0@@ -23340,8 +23340,8 @@
2334023340
end2334123341
b_imj = b_imj + 12334223342
end23343-
b_cm_pn = @cls_cmeth_params[bci].split("|")23344-
b_cm_pt = @cls_cmeth_ptypes[bci].split("|")23343+
b_cm_pn = @cls_cmeth_params[bci].split("|", -1)23344+
b_cm_pt = @cls_cmeth_ptypes[bci].split("|", -1)2334523345
b_cm_mn = @cls_cmeth_names[bci].split(";")2334623346
b_cm_rn = @cls_cmeth_returns[bci].split(";")2334723347
b_cmj = 0@@ -24254,8 +24254,8 @@
2425424254
if ci2 >= 02425524255
init_idx = cls_find_method_direct(ci2, "initialize")2425624256
if init_idx >= 024257-
all_params = @cls_meth_params[ci2].split("|")24258-
all_ptypes = @cls_meth_ptypes[ci2].split("|")24257+
all_params = @cls_meth_params[ci2].split("|", -1)24258+
all_ptypes = @cls_meth_ptypes[ci2].split("|", -1)2425924259
pnames2 = "".split(",")2426024260
ptypes2 = "".split(",")2426124261
if init_idx < all_params.length@@ -24382,8 +24382,8 @@
2438224382
mnames_str = @cls_meth_names[i]2438324383
if mnames_str != ""2438424384
mnames = mnames_str.split(";")24385-
all_params = @cls_meth_params[i].split("|")24386-
all_ptypes = @cls_meth_ptypes[i].split("|")24385+
all_params = @cls_meth_params[i].split("|", -1)24386+
all_ptypes = @cls_meth_ptypes[i].split("|", -1)2438724387
bodies = @cls_meth_bodies[i].split(";")2438824388
mi = 02438924389
while mi < mnames.length@@ -24484,8 +24484,8 @@
2448424484
mnames_str = @cls_meth_names[i]2448524485
if mnames_str != ""2448624486
mnames = mnames_str.split(";")24487-
all_params = @cls_meth_params[i].split("|")24488-
all_ptypes = @cls_meth_ptypes[i].split("|")24487+
all_params = @cls_meth_params[i].split("|", -1)24488+
all_ptypes = @cls_meth_ptypes[i].split("|", -1)2448924489
bodies = @cls_meth_bodies[i].split(";")2449024490
saved_ci = @current_class_idx2449124491
@current_class_idx = i@@ -24965,7 +24965,7 @@
2496524965
return "".split(",")2496624966
end2496724967
if @cmp_outer_version != @cls_meth_ptypes_version || @cmp_outer_ci != ci24968-
@cmp_outer_split = @cls_meth_ptypes[ci].split("|")24968+
@cmp_outer_split = @cls_meth_ptypes[ci].split("|", -1)2496924969
@cmp_outer_ci = ci2497024970
@cmp_outer_version = @cls_meth_ptypes_version2497124971
end@@ -24980,7 +24980,7 @@
2498024980
return2498124981
end2498224982
if @cmp_outer_version != @cls_meth_ptypes_version || @cmp_outer_ci != ci24983-
@cmp_outer_split = @cls_meth_ptypes[ci].split("|")24983+
@cmp_outer_split = @cls_meth_ptypes[ci].split("|", -1)2498424984
@cmp_outer_ci = ci2498524985
@cmp_outer_version = @cls_meth_ptypes_version2498624986
end@@ -25001,7 +25001,7 @@
2500125001
return "".split(",")2500225002
end2500325003
if @cmn_outer_version != @cls_meth_params_version || @cmn_outer_ci != ci25004-
@cmn_outer_split = @cls_meth_params[ci].split("|")25004+
@cmn_outer_split = @cls_meth_params[ci].split("|", -1)2500525005
@cmn_outer_ci = ci2500625006
@cmn_outer_version = @cls_meth_params_version2500725007
end@@ -25016,7 +25016,7 @@
2501625016
return "".split(",")2501725017
end2501825018
if @ccmp_outer_version != @cls_cmeth_ptypes_version || @ccmp_outer_ci != ci25019-
@ccmp_outer_split = @cls_cmeth_ptypes[ci].split("|")25019+
@ccmp_outer_split = @cls_cmeth_ptypes[ci].split("|", -1)2502025020
@ccmp_outer_ci = ci2502125021
@ccmp_outer_version = @cls_cmeth_ptypes_version2502225022
end@@ -25031,7 +25031,7 @@
2503125031
return2503225032
end2503325033
if @ccmp_outer_version != @cls_cmeth_ptypes_version || @ccmp_outer_ci != ci25034-
@ccmp_outer_split = @cls_cmeth_ptypes[ci].split("|")25034+
@ccmp_outer_split = @cls_cmeth_ptypes[ci].split("|", -1)2503525035
@ccmp_outer_ci = ci2503625036
@ccmp_outer_version = @cls_cmeth_ptypes_version2503725037
end@@ -25049,7 +25049,7 @@
2504925049
return "".split(",")2505025050
end2505125051
if @ccmn_outer_version != @cls_cmeth_params_version || @ccmn_outer_ci != ci25052-
@ccmn_outer_split = @cls_cmeth_params[ci].split("|")25052+
@ccmn_outer_split = @cls_cmeth_params[ci].split("|", -1)2505325053
@ccmn_outer_ci = ci2505425054
@ccmn_outer_version = @cls_cmeth_params_version2505525055
end@@ -26132,8 +26132,8 @@
2613226132
icm_args_id = @nd_arguments[nid]2613326133
if icm_args_id >= 02613426134
icm_aargs = get_args(icm_args_id)26135-
icm_all_ptypes = @cls_meth_ptypes[icm_owner_ci].split("|")26136-
icm_all_empty = @cls_meth_ptypes_empty[icm_owner_ci].split("|")26135+
icm_all_ptypes = @cls_meth_ptypes[icm_owner_ci].split("|", -1)26136+
icm_all_empty = @cls_meth_ptypes_empty[icm_owner_ci].split("|", -1)2613726137
icm_ptypes = "".split(",")2613826138
icm_empties = "".split(",")2613926139
if icm_midx < icm_all_ptypes.length@@ -29465,7 +29465,7 @@
2946529465
if @multi_const_inits != nil2946629466
j = 02946729467
while j < @multi_const_inits.length29468-
mw_id = @multi_const_inits[j].split("|")[1].to_i29468+
mw_id = @multi_const_inits[j].split("|", -1)[1].to_i2946929469
rhs = @nd_expression[mw_id]2947029470
if rhs >= 02947129471
scan_locals(rhs, lnames, ltypes, empty_params)@@ -29511,8 +29511,8 @@
2951129511
# Class instance methods.2951229512
ci = 02951329513
while ci < @cls_names.length29514-
all_params = @cls_meth_params[ci].split("|")29515-
all_ptypes = @cls_meth_ptypes[ci].split("|")29514+
all_params = @cls_meth_params[ci].split("|", -1)29515+
all_ptypes = @cls_meth_ptypes[ci].split("|", -1)2951629516
bodies = @cls_meth_bodies[ci].split(";")2951729517
cls_changed = 02951829518
mj = 0@@ -29582,8 +29582,8 @@
2958229582
# Class instance methods.2958329583
ci = 02958429584
while ci < @cls_names.length29585-
all_params = @cls_meth_params[ci].split("|")29586-
all_ptypes = @cls_meth_ptypes[ci].split("|")29585+
all_params = @cls_meth_params[ci].split("|", -1)29586+
all_ptypes = @cls_meth_ptypes[ci].split("|", -1)2958729587
bodies = @cls_meth_bodies[ci].split(";")2958829588
mj = 02958929589
while mj < all_params.length@@ -29606,8 +29606,8 @@
2960629606
# Class methods (cmeths).2960729607
ci = 02960829608
while ci < @cls_names.length29609-
all_params = @cls_cmeth_params[ci].split("|")29610-
all_ptypes = @cls_cmeth_ptypes[ci].split("|")29609+
all_params = @cls_cmeth_params[ci].split("|", -1)29610+
all_ptypes = @cls_cmeth_ptypes[ci].split("|", -1)2961129611
bodies = @cls_cmeth_bodies[ci].split(";")2961229612
mj = 02961329613
while mj < all_params.length@@ -29697,7 +29697,7 @@
2969729697
ci_w = find_class_idx(cls_name_w)2969829698
if ci_w >= 02969929699
cm_names_w = @cls_cmeth_names[ci_w].split(";")29700-
cmpall_w = @cls_cmeth_ptypes[ci_w].split("|")29700+
cmpall_w = @cls_cmeth_ptypes[ci_w].split("|", -1)2970129701
cmi_w = 02970229702
while cmi_w < cm_names_w.length2970329703
if cm_names_w[cmi_w] == mname_w && cmi_w < cmpall_w.length@@ -30225,7 +30225,7 @@
3022530225
if @multi_const_inits != nil3022630226
mci = 03022730227
while mci < @multi_const_inits.length30228-
parts = @multi_const_inits[mci].split("|")30228+
parts = @multi_const_inits[mci].split("|", -1)3022930229
scope_n = parts[0]3023030230
mw_id = parts[1].to_i3023130231
rhs = @nd_expression[mw_id]spinel_codegen.rbmodifiedView file
Loading diff…
spinel_parse.cmodifiedView file
Loading diff…