Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ef05250a5cdf
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f572604d3628
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Feb 5, 2016

  1. Copy the full SHA
    54a74ea View commit details
  2. Copy the full SHA
    f572604 View commit details
Showing with 556 additions and 617 deletions.
  1. +27 −0 truffle/src/main/java/org/jruby/truffle/core/array/ArrayHelpers.java
  2. +529 −617 truffle/src/main/java/org/jruby/truffle/core/array/ArrayNodes.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package org.jruby.truffle.core.array;

import org.jruby.truffle.RubyContext;
import org.jruby.truffle.core.Layouts;

import com.oracle.truffle.api.object.DynamicObject;

public abstract class ArrayHelpers {

public static Object getStore(DynamicObject array) {
return Layouts.ARRAY.getStore(array);
}

public static int getSize(DynamicObject array) {
return Layouts.ARRAY.getSize(array);
}

public static void setStoreAndSize(DynamicObject array, Object store, int size) {
Layouts.ARRAY.setStore(array, store);
Layouts.ARRAY.setSize(array, size);
}

public static DynamicObject createArray(RubyContext context, Object store, int size) {
return Layouts.ARRAY.createArray(context.getCoreLibrary().getArrayFactory(), store, size);
}

}
Loading