Skip to content

Commit

Permalink
Showing 25 changed files with 600 additions and 97 deletions.
1 change: 1 addition & 0 deletions core/src/main/ruby/jruby/truffle/core.rb
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@
require_relative 'core/rubinius/kernel/bootstrap/type'

# Load common (ordered according to Rubinius' load_order.txt)
require_relative 'core/rubinius/kernel/common/enumerator'
require_relative 'core/rubinius/kernel/common/enumerable'
require_relative 'core/rubinius/kernel/common/undefined'
require_relative 'core/rubinius/kernel/common/type'
Original file line number Diff line number Diff line change
@@ -12,6 +12,12 @@ def self.mathn_loaded?
false
end

module Fiber

ENABLED = true

end

end

class PrimitiveFailure < StandardError

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions spec/truffle/tags/core/enumerator/each_tags.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
fails:Enumerator#each yields each element of self to the given block
fails:Enumerator#each calls #each on the object given in the constructor by default
fails:Enumerator#each calls #each on the underlying object until it's exhausted
fails:Enumerator#each calls the method given in the constructor instead of #each
fails:Enumerator#each calls the method given in the constructor until it's exhausted
fails:Enumerator#each raises a NoMethodError if the object doesn't respond to #each
fails:Enumerator#each returns self if not given arguments and not given a block
fails:Enumerator#each returns the same value from receiver.each if block is given
fails:Enumerator#each passes given arguments at initialized to receiver.each
fails:Enumerator#each requires multiple arguments
fails:Enumerator#each appends given arguments to receiver.each
fails:Enumerator#each returns the same value from receiver.each if block and arguments are given
fails:Enumerator#each returns new Enumerator if given arguments but not given a block
5 changes: 0 additions & 5 deletions spec/truffle/tags/core/enumerator/each_with_index_tags.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
fails:Enumerator#each_with_index passes each element and its index to block
fails:Enumerator#each_with_index returns the object being enumerated when given a block
fails:Enumerator#each_with_index binds splat arguments properly
fails:Enumerator#each_with_index returns an enumerator if no block is supplied
fails:Enumerator#each_with_index raises an ArgumentError if passed extra arguments
fails:Enumerator#each_with_index passes on the given block's return value
fails:Enumerator#each_with_index returns the iterator's return value
fails:Enumerator#each_with_index returns the correct value if chained with itself
4 changes: 0 additions & 4 deletions spec/truffle/tags/core/enumerator/each_with_object_tags.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
fails:Enumerator#each_with_object receives an argument
fails:Enumerator#each_with_object with block returns the given object
fails:Enumerator#each_with_object with block the block parameter passes each element to first parameter
fails:Enumerator#each_with_object with block the block parameter passes the given object to last parameter
fails:Enumerator#each_with_object without block returns new Enumerator
3 changes: 0 additions & 3 deletions spec/truffle/tags/core/enumerator/enum_for_tags.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
fails:#enum_for is defined in Kernel
fails:#enum_for returns a new enumerator
fails:#enum_for defaults the first argument to :each
fails:#enum_for exposes multi-arg yields as an array
fails:#enum_for uses the passed block's value to calculate the size of the enumerator
fails:#enum_for defers the evaluation of the passed block until #size is called
1 change: 0 additions & 1 deletion spec/truffle/tags/core/enumerator/enumerator_tags.txt

This file was deleted.

1 change: 0 additions & 1 deletion spec/truffle/tags/core/enumerator/feed_tags.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
fails:Enumerator#feed sets the future return value of yield if called before advancing the iterator
fails:Enumerator#feed causes yield to return the value if called during iteration
fails:Enumerator#feed can be called for each iteration
fails:Enumerator#feed returns nil
fails:Enumerator#feed raises a TypeError if called more than once without advancing the enumerator
fails:Enumerator#feed sets the return value of Yielder#yield
5 changes: 0 additions & 5 deletions spec/truffle/tags/core/enumerator/generator/each_tags.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
fails:Enumerator::Generator#each is an enumerable
fails:Enumerator::Generator#each supports enumeration with a block
fails:Enumerator::Generator#each raises a LocalJumpError if no block given
fails:Enumerator::Generator#each returns the block returned value
fails:Enumerator::Generator#each requires multiple arguments
fails:Enumerator::Generator#each appends given arguments to receiver.each
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
fails:Enumerator::Generator#initialize is a private method
fails:Enumerator::Generator#initialize returns self when given a block
fails:Enumerator::Generator#initialize on frozen instance raises a RuntimeError
9 changes: 0 additions & 9 deletions spec/truffle/tags/core/enumerator/initialize_tags.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
fails:Enumerator#initialize is a private method
fails:Enumerator#initialize returns self when given an object
fails:Enumerator#initialize returns self when given a block
fails:Enumerator#initialize accepts a block
fails:Enumerator#initialize sets size to nil if size is not given
fails:Enumerator#initialize sets size to nil if the given size is nil
fails:Enumerator#initialize sets size to the given size if the given size is Float::INFINITY
fails:Enumerator#initialize sets size to the given size if the given size is a Fixnum
fails:Enumerator#initialize sets size to the given size if the given size is a Proc
fails:Enumerator#initialize on frozen instance raises a RuntimeError
12 changes: 0 additions & 12 deletions spec/truffle/tags/core/enumerator/inject_tags.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,2 @@
fails:Enumerator#inject yields each element of self to the given block
fails:Enumerator#inject calls #each on the object given in the constructor by default
fails:Enumerator#inject calls #each on the underlying object until it's exhausted
fails:Enumerator#inject calls the method given in the constructor instead of #each
fails:Enumerator#inject calls the method given in the constructor until it's exhausted
fails:Enumerator#inject raises a NoMethodError if the object doesn't respond to #each
fails:Enumerator#inject returns self if not given arguments and not given a block
fails:Enumerator#inject returns the same value from receiver.each if block is given
fails:Enumerator#inject passes given arguments at initialized to receiver.each
fails:Enumerator#inject requires multiple arguments
fails:Enumerator#inject appends given arguments to receiver.each
fails:Enumerator#inject returns the same value from receiver.each if block and arguments are given
fails:Enumerator#inject returns new Enumerator if given arguments but not given a block
fails:Enumerator#inject works when chained against each_with_index
1 change: 0 additions & 1 deletion spec/truffle/tags/core/enumerator/inspect_tags.txt

This file was deleted.

2 changes: 0 additions & 2 deletions spec/truffle/tags/core/enumerator/lazy/initialize_tags.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
fails:Enumerator::Lazy#initialize is a private method
fails:Enumerator::Lazy#initialize returns self
fails:Enumerator::Lazy#initialize sets nil to size if not given a size
fails:Enumerator::Lazy#initialize sets nil to size if given size is nil
fails:Enumerator::Lazy#initialize sets given size to own size if the given size is Float::INFINITY
fails:Enumerator::Lazy#initialize sets given size to own size if the given size is a Fixnum
fails:Enumerator::Lazy#initialize sets given size to own size if the given size is a Proc
fails:Enumerator::Lazy#initialize raises an ArgumentError when block is not given
fails:Enumerator::Lazy#initialize when the returned lazy enumerator is evaluated by Enumerable#first stops after specified times
fails:Enumerator::Lazy#initialize on frozen instance raises a RuntimeError
1 change: 0 additions & 1 deletion spec/truffle/tags/core/enumerator/lazy/lazy_tags.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
fails:Enumerator::Lazy is a subclass of Enumerator
fails:Enumerator::Lazy#lazy returns self
6 changes: 0 additions & 6 deletions spec/truffle/tags/core/enumerator/new_tags.txt

This file was deleted.

3 changes: 0 additions & 3 deletions spec/truffle/tags/core/enumerator/rewind_tags.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
fails:Enumerator#rewind resets the enumerator to its initial state
fails:Enumerator#rewind returns self
fails:Enumerator#rewind has no effect on a new enumerator
fails:Enumerator#rewind has no effect if called multiple, consecutive times
fails:Enumerator#rewind works with peek to reset the position
fails:Enumerator#rewind calls the enclosed object's rewind method if one exists
fails:Enumerator#rewind does nothing if the object doesn't have a #rewind method
fails:Enumerator#rewind clears a pending #feed value
3 changes: 0 additions & 3 deletions spec/truffle/tags/core/enumerator/size_tags.txt

This file was deleted.

3 changes: 0 additions & 3 deletions spec/truffle/tags/core/enumerator/to_enum_tags.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
fails:#to_enum is defined in Kernel
fails:#to_enum returns a new enumerator
fails:#to_enum defaults the first argument to :each
fails:#to_enum exposes multi-arg yields as an array
fails:#to_enum uses the passed block's value to calculate the size of the enumerator
fails:#to_enum defers the evaluation of the passed block until #size is called
13 changes: 0 additions & 13 deletions spec/truffle/tags/core/enumerator/with_index_tags.txt

This file was deleted.

4 changes: 0 additions & 4 deletions spec/truffle/tags/core/enumerator/with_object_tags.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
fails:Enumerator#with_object receives an argument
fails:Enumerator#with_object with block returns the given object
fails:Enumerator#with_object with block the block parameter passes each element to first parameter
fails:Enumerator#with_object with block the block parameter passes the given object to last parameter
fails:Enumerator#with_object without block returns new Enumerator
3 changes: 0 additions & 3 deletions spec/truffle/tags/core/enumerator/yielder/append_tags.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
fails:Enumerator::Yielder#<< yields the value to the block
fails:Enumerator::Yielder#<< returns self
fails:Enumerator::Yielder#<< requires multiple arguments
fails:Enumerator::Yielder#<< yields with passed arguments
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/enumerator/yielder/initialize_tags.txt

This file was deleted.

2 changes: 0 additions & 2 deletions spec/truffle/tags/core/enumerator/yielder/yield_tags.txt

This file was deleted.

0 comments on commit e217033

Please sign in to comment.