Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into 2.0.0pre
Conflicts: .gitignore Rakefile configure lib/timeout.rb spec/tags/18/ruby/core/argf/gets_tags.txt spec/tags/18/ruby/core/argf/readline_tags.txt spec/tags/18/ruby/library/openstruct/method_missing_tags.txt vm/agent_components.cpp vm/builtin/data.cpp vm/capi/include/ruby.h vm/configuration.hpp vm/gc/baker.cpp vm/gc/immix.cpp vm/gc/marksweep.cpp vm/gc/walker.cpp vm/inline_cache.cpp vm/objectmemory.cpp
- Loading branch information
Showing
65 changed files
with
476 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
module CompiledMethodSpec | ||
LineTest = def line_test | ||
1 + 1 | ||
2 + 2 | ||
end | ||
|
||
BlockLineTest = def block_line_test | ||
1 + 1 | ||
1.times do | ||
2 + 2 | ||
end | ||
end | ||
end | ||
|
||
# Line numbers are important! Thats why the above module is in | ||
# this file and not a fixture. | ||
|
||
describe "Rubinius::CompiledMethod#locate_line" do | ||
it "finds the ip for a line" do | ||
cm, ip = CompiledMethodSpec::LineTest.locate_line(4) | ||
ip.should == 5 | ||
end | ||
|
||
it "returns the CompiledMethod the ip is in" do | ||
cm, ip = CompiledMethodSpec::LineTest.locate_line(3) | ||
cm.should == CompiledMethodSpec::LineTest | ||
end | ||
|
||
it "returns nil if the line can't be found" do | ||
CompiledMethodSpec::LineTest.locate_line(50).should be_nil | ||
end | ||
|
||
it "returns nil if the line is the definition line" do | ||
CompiledMethodSpec::LineTest.locate_line(2).should be_nil | ||
end | ||
|
||
it "searches blocks for the line" do | ||
cm, ip = CompiledMethodSpec::BlockLineTest.locate_line(10) | ||
blk = CompiledMethodSpec::BlockLineTest.literals.to_a.grep(Rubinius::CompiledMethod).first | ||
|
||
cm.should == blk | ||
ip.should == 0 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require File.expand_path('../../../spec_helper', __FILE__) | ||
require "ostruct" | ||
|
||
describe "OpenStruct#[]" do | ||
before :each do | ||
@os = OpenStruct.new | ||
end | ||
|
||
it "raises a NoMethodError" do | ||
lambda { @os[1] }.should raise_error(NoMethodError) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
require File.expand_path('../../../spec_helper', __FILE__) | ||
require "ostruct" | ||
|
||
describe "OpenStruct#[]=" do | ||
before :each do | ||
@os = OpenStruct.new | ||
end | ||
|
||
ruby_bug "redmine:4179", "1.9.2" do | ||
it "raises a NoMethodError" do | ||
lambda { @os[1] = 2 }.should raise_error(NoMethodError) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -388,7 +388,7 @@ namespace rubinius { | |
continue; | ||
} | ||
} | ||
i++; | ||
++i; | ||
} | ||
|
||
if(!found) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.