rubinius-ast 3.14 → 3.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d694bd467ca7f2c24f34bcd40517285cea7a44d9
4
- data.tar.gz: 190db107813312eb0991916de9a4c713f654bccf
3
+ metadata.gz: 328973f90732961bbcaa7b54cc1fb38183fb6008
4
+ data.tar.gz: e2df1578fdd7418afc6e61a3a8e3ed4d3d405046
5
5
  SHA512:
6
- metadata.gz: 7576c7ee2fc89149d48dba4062af764d8e0110c42df114175ff5d1b29d3225dfd0288f780099b063e87197e97ce688ed2fe220f515933640e33616b41fc367e9
7
- data.tar.gz: ddc45303a20460cba18189dec7e495e1dec5bd0e270695c882ced8b79115b9055458385f7885bd0da2e37eef86b29c23f207c30fded13fb2937c319fe2a313d1
6
+ metadata.gz: 6e079793bc8f5b6324f4030380123515730a73d47b9bdb0e2f46020ed5c4e8225193641ff6d7df9c37ceb6498b856a65769b5622a08e0a15faae1a506a314dce
7
+ data.tar.gz: c89d62825be15d83e4412c87c13faf6cc779d31ff6c5ec47b352e7a2775b1dd295efe47664fee6ec874d8acb573566ee802f6944ea2ff148600373f5baadea66
@@ -85,17 +85,14 @@ module CodeTools
85
85
  ok = g.new_label
86
86
  g.setup_unwind ex, RescueType
87
87
 
88
+ g.push_type
88
89
  @parent.bytecode(g)
89
90
  g.push_literal @name
90
- if const_missing
91
- g.push_true
92
- else
93
- g.push_false
94
- end
95
- g.invoke_primitive :vm_const_defined_under, 3
96
-
97
- g.pop_unwind
98
- g.goto ok
91
+ g.send :constant_path_defined?, 2
92
+ g.dup
93
+ g.goto_if_not_undefined ok
94
+ g.pop
95
+ g.goto f
99
96
 
100
97
  ex.set!
101
98
  g.clear_exception
@@ -171,13 +168,14 @@ module CodeTools
171
168
  ok = g.new_label
172
169
  g.setup_unwind ex, RescueType
173
170
 
171
+ g.push_type
174
172
  g.push_cpath_top
175
173
  g.push_literal @name
176
- g.push_false
177
- g.invoke_primitive :vm_const_defined_under, 3
178
-
179
- g.pop_unwind
180
- g.goto ok
174
+ g.send :constant_path_defined?, 2
175
+ g.dup
176
+ g.goto_if_not_undefined ok
177
+ g.pop
178
+ g.goto f
181
179
 
182
180
  ex.set!
183
181
  g.clear_exception
@@ -266,11 +264,14 @@ module CodeTools
266
264
  ok = g.new_label
267
265
  g.setup_unwind ex, RescueType
268
266
 
267
+ g.push_type
268
+ g.push_scope
269
269
  g.push_literal @name
270
- g.invoke_primitive :vm_const_defined, 1
271
-
272
- g.pop_unwind
273
- g.goto ok
270
+ g.send :constant_scope_defined?, 2
271
+ g.dup
272
+ g.goto_if_not_undefined ok
273
+ g.pop
274
+ g.goto f
274
275
 
275
276
  ex.set!
276
277
  g.clear_exception
@@ -1,5 +1,5 @@
1
1
  module CodeTools
2
2
  module AST
3
- VERSION = "3.14"
3
+ VERSION = "3.15"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubinius-ast
3
3
  version: !ruby/object:Gem::Version
4
- version: '3.14'
4
+ version: '3.15'
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-05 00:00:00.000000000 Z
11
+ date: 2018-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler