Skip to content

Commit

Permalink
[Truffle] Move Rubinius core files out of kernel since everything is …
Browse files Browse the repository at this point in the history
…"kernel" in that directory.
  • Loading branch information
eregon committed Feb 9, 2015
1 parent fbc17d5 commit b22e25a
Show file tree
Hide file tree
Showing 46 changed files with 50 additions and 48 deletions.
8 changes: 5 additions & 3 deletions COPYING
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ lib/ruby/1.9, and lib/ruby/site_ruby/1.8/rubygems*.
The Rubinius API implementation in truffle/src/main/ruby/core/rubinius/api
is copyright (c) 2011, Evan Phoenix, and released under the 3-clause BSD license.

The Rubinius core library implementation in truffle/src/main/ruby/core/rubinius/kernel
is copyright (c) 2007-2014, Evan Phoenix and contributors, and released under
the 3-clause BSD license.
The Rubinius core library implementation
in truffle/src/main/ruby/core/rubinius/bootstrap
and truffle/src/main/ruby/core/rubinius/common is
copyright (c) 2007-2014, Evan Phoenix and contributors,
and released under the 3-clause BSD license.

The complete text of the Eclipse Public License is as follows:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ public RubyNode visitConstNode(org.jruby.ast.ConstNode node) {
* we will because we'll translate that to ::Rubinius. But it is a simpler translation.
*/

if (node.getName().equals("Rubinius") && sourceSection.getSource().getPath().startsWith("core:/core/rubinius/kernel")) {
if (node.getName().equals("Rubinius") && sourceSection.getSource().getPath().startsWith("core:/core/rubinius")) {
return new org.jruby.ast.Colon3Node(node.getPosition(), node.getName()).accept(this);
}

Expand Down Expand Up @@ -1504,7 +1504,7 @@ public RubyNode visitInstVarNode(org.jruby.ast.InstVarNode node) {
* self, and @start to be 0.
*/

if (sourceSection.getSource().getPath().equals("core:/core/rubinius/kernel/common/array.rb")) {
if (sourceSection.getSource().getPath().equals("core:/core/rubinius/common/array.rb")) {
if (nameWithoutSigil.equals("@total")) {
return new RubyCallNode(context, sourceSection,
"size",
Expand Down
86 changes: 43 additions & 43 deletions truffle/src/main/ruby/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,52 +21,52 @@
require_relative 'core/rubinius/api/shims/metrics'

# Load bootstrap (ordered according to Rubinius' load_order.txt)
require_relative 'core/rubinius/kernel/bootstrap/basic_object'
require_relative 'core/rubinius/kernel/bootstrap/false'
require_relative 'core/rubinius/kernel/bootstrap/gc'
require_relative 'core/rubinius/kernel/bootstrap/kernel'
require_relative 'core/rubinius/kernel/bootstrap/nil'
require_relative 'core/rubinius/kernel/bootstrap/regexp'
require_relative 'core/rubinius/kernel/bootstrap/rubinius'
require_relative 'core/rubinius/kernel/bootstrap/string'
require_relative 'core/rubinius/kernel/bootstrap/symbol'
require_relative 'core/rubinius/kernel/bootstrap/time'
require_relative 'core/rubinius/kernel/bootstrap/true'
require_relative 'core/rubinius/kernel/bootstrap/type'
require_relative 'core/rubinius/bootstrap/basic_object'
require_relative 'core/rubinius/bootstrap/false'
require_relative 'core/rubinius/bootstrap/gc'
require_relative 'core/rubinius/bootstrap/kernel'
require_relative 'core/rubinius/bootstrap/nil'
require_relative 'core/rubinius/bootstrap/regexp'
require_relative 'core/rubinius/bootstrap/rubinius'
require_relative 'core/rubinius/bootstrap/string'
require_relative 'core/rubinius/bootstrap/symbol'
require_relative 'core/rubinius/bootstrap/time'
require_relative 'core/rubinius/bootstrap/true'
require_relative 'core/rubinius/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/exception'
require_relative 'core/rubinius/kernel/common/undefined'
require_relative 'core/rubinius/kernel/common/type'
require_relative 'core/rubinius/kernel/common/array'
require_relative 'core/rubinius/kernel/common/kernel'
require_relative 'core/rubinius/kernel/common/comparable'
require_relative 'core/rubinius/kernel/common/numeric'
require_relative 'core/rubinius/kernel/common/identity_map'
require_relative 'core/rubinius/kernel/common/integer'
require_relative 'core/rubinius/kernel/common/fixnum'
require_relative 'core/rubinius/kernel/common/false'
require_relative 'core/rubinius/kernel/common/float'
require_relative 'core/rubinius/kernel/common/immediate'
require_relative 'core/rubinius/kernel/common/main'
require_relative 'core/rubinius/kernel/common/marshal'
require_relative 'core/rubinius/kernel/common/nil'
require_relative 'core/rubinius/kernel/common/object_space'
require_relative 'core/rubinius/kernel/common/proc'
require_relative 'core/rubinius/kernel/common/string'
require_relative 'core/rubinius/kernel/common/struct'
require_relative 'core/rubinius/kernel/common/regexp'
require_relative 'core/rubinius/kernel/common/signal'
require_relative 'core/rubinius/kernel/common/mutex'
require_relative 'core/rubinius/kernel/common/throw_catch'
require_relative 'core/rubinius/kernel/common/time'
require_relative 'core/rubinius/kernel/common/true'
require_relative 'core/rubinius/common/enumerator'
require_relative 'core/rubinius/common/enumerable'
require_relative 'core/rubinius/common/exception'
require_relative 'core/rubinius/common/undefined'
require_relative 'core/rubinius/common/type'
require_relative 'core/rubinius/common/array'
require_relative 'core/rubinius/common/kernel'
require_relative 'core/rubinius/common/comparable'
require_relative 'core/rubinius/common/numeric'
require_relative 'core/rubinius/common/identity_map'
require_relative 'core/rubinius/common/integer'
require_relative 'core/rubinius/common/fixnum'
require_relative 'core/rubinius/common/false'
require_relative 'core/rubinius/common/float'
require_relative 'core/rubinius/common/immediate'
require_relative 'core/rubinius/common/main'
require_relative 'core/rubinius/common/marshal'
require_relative 'core/rubinius/common/nil'
require_relative 'core/rubinius/common/object_space'
require_relative 'core/rubinius/common/proc'
require_relative 'core/rubinius/common/string'
require_relative 'core/rubinius/common/struct'
require_relative 'core/rubinius/common/regexp'
require_relative 'core/rubinius/common/signal'
require_relative 'core/rubinius/common/mutex'
require_relative 'core/rubinius/common/throw_catch'
require_relative 'core/rubinius/common/time'
require_relative 'core/rubinius/common/true'

require_relative 'core/rubinius/kernel/common/rational'
require_relative 'core/rubinius/kernel/common/complex'
require_relative 'core/rubinius/kernel/common/gc'
require_relative 'core/rubinius/common/rational'
require_relative 'core/rubinius/common/complex'
require_relative 'core/rubinius/common/gc'

# Load JRuby+Truffle classes
require_relative 'core/array'
Expand Down

0 comments on commit b22e25a

Please sign in to comment.