-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into truffle-head
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
- 9.1.17.0
- 9.1.16.0
- 9.1.15.0
- 9.1.14.0
- 9.1.13.0
- 9.1.12.0
- 9.1.11.0
- 9.1.10.0
- 9.1.9.0
- 9.1.8.0
- 9.1.7.0
- 9.1.6.0
- 9.1.5.0
- 9.1.4.0
- 9.1.3.0
- 9.1.2.0
- 9.1.1.0
- 9.1.0.0
Showing
412 changed files
with
1,612 additions
and
1,342 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
ruby -X+T test/truffle/integration/backtraces/backtraces.rb | ||
set -e | ||
|
||
for f in test/truffle/integration/backtraces/*.rb | ||
do | ||
echo $f | ||
ruby -X+T $f | ||
done |
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,11 @@ | ||
/blocks.rb:20:in `block (5 levels) in <main>' | ||
/blocks.rb:12:in `m' | ||
/blocks.rb:19:in `block (4 levels) in <main>' | ||
/blocks.rb:18:in `tap' | ||
/blocks.rb:18:in `block (3 levels) in <main>' | ||
/blocks.rb:17:in `each' | ||
/blocks.rb:17:in `block (2 levels) in <main>' | ||
/blocks.rb:16:in `each' | ||
/blocks.rb:16:in `block in <main>' | ||
/backtraces.rb:17:in `check' | ||
/blocks.rb:15:in `<main>' |
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,25 @@ | ||
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. This | ||
# code is released under a tri EPL/GPL/LGPL license. You can use it, | ||
# redistribute it and/or modify it under the terms of the: | ||
# | ||
# Eclipse Public License version 1.0 | ||
# GNU General Public License version 2 | ||
# GNU Lesser General Public License version 2.1 | ||
|
||
require_relative 'backtraces' | ||
|
||
def m | ||
yield | ||
end | ||
|
||
check('blocks.backtrace') do | ||
[1].each do |n| | ||
{a: 1}.each do |k, v| | ||
true.tap do |t| | ||
m do | ||
raise 'message' | ||
end | ||
end | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/eval.rb:18:in `<main>' | ||
/eval.rb:18:in `eval' | ||
/eval.rb:18:in `m2' | ||
/eval.rb:14:in `<main>' | ||
/eval.rb:14:in `eval' | ||
/eval.rb:14:in `m1' | ||
/eval.rb:22:in `block in <main>' | ||
/backtraces.rb:17:in `check' | ||
/eval.rb:21:in `<main>' |
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,23 @@ | ||
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. This | ||
# code is released under a tri EPL/GPL/LGPL license. You can use it, | ||
# redistribute it and/or modify it under the terms of the: | ||
# | ||
# Eclipse Public License version 1.0 | ||
# GNU General Public License version 2 | ||
# GNU Lesser General Public License version 2.1 | ||
|
||
require_relative 'backtraces' | ||
|
||
# TODO CS 3-Feb-16 Not compliant with MRI - here as a regression test | ||
|
||
def m1 | ||
eval 'm2' | ||
end | ||
|
||
def m2 | ||
eval "raise 'message'" | ||
end | ||
|
||
check('eval.backtrace') do | ||
m1 | ||
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,9 @@ | ||
/javascript.rb:19:in `foo' | ||
(eval):1 | ||
/javascript.rb:31:in `bar' | ||
/javascript.rb:31:in `baz' | ||
(eval):1 | ||
/javascript.rb:55:in `bob' | ||
/javascript.rb:55:in `block in <main>' | ||
/backtraces.rb:17:in `check' | ||
/javascript.rb:54:in `<main>' |
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,56 @@ | ||
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. This | ||
# code is released under a tri EPL/GPL/LGPL license. You can use it, | ||
# redistribute it and/or modify it under the terms of the: | ||
# | ||
# Eclipse Public License version 1.0 | ||
# GNU General Public License version 2 | ||
# GNU Lesser General Public License version 2.1 | ||
|
||
require_relative 'backtraces' | ||
|
||
js = 'application/javascript' | ||
|
||
unless defined?(Truffle) && Truffle::Interop.mime_type_supported?(js) | ||
puts "JavaScript doesn't appear to be available - skipping polylgot backtrace tests" | ||
exit | ||
end | ||
|
||
def foo(_) | ||
raise 'foo-message' | ||
end | ||
|
||
Truffle::Interop.export_method :foo | ||
Truffle::Interop.eval js, "foo = Interop.import('foo')" | ||
|
||
Truffle::Interop.eval js, "function bar() { foo(); }" | ||
|
||
Truffle::Interop.eval js, "Interop.export('bar', bar)" | ||
Truffle::Interop.import_method :bar | ||
|
||
def baz(_) | ||
bar(self) | ||
end | ||
|
||
Truffle::Interop.export_method :baz | ||
Truffle::Interop.eval js, "baz = Interop.import('baz')" | ||
|
||
Truffle::Interop.eval js, "function bob() { baz(); }" | ||
|
||
Truffle::Interop.eval js, "Interop.export('bob', bob)" | ||
Truffle::Interop.import_method :bob | ||
|
||
expected = [ | ||
"/backtraces.rb:96:in `foo'", | ||
"(eval):1", | ||
"/backtraces.rb:108:in `bar'", | ||
"/backtraces.rb:108:in `baz'", | ||
"(eval):1", | ||
"/backtraces.rb:132:in `bob'", | ||
"/backtraces.rb:132:in `block in <main>'", | ||
"/backtraces.rb:11:in `check'", | ||
"/backtraces.rb:131:in `<main>'" | ||
] | ||
|
||
check('javascript.backtrace') do | ||
bob(self) | ||
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,6 @@ | ||
/send.rb:18:in `m2' | ||
/send.rb:14:in `send' | ||
/send.rb:14:in `m1' | ||
/send.rb:22:in `block in <main>' | ||
/backtraces.rb:17:in `check' | ||
/send.rb:21:in `<main>' |
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,23 @@ | ||
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. This | ||
# code is released under a tri EPL/GPL/LGPL license. You can use it, | ||
# redistribute it and/or modify it under the terms of the: | ||
# | ||
# Eclipse Public License version 1.0 | ||
# GNU General Public License version 2 | ||
# GNU Lesser General Public License version 2.1 | ||
|
||
require_relative 'backtraces' | ||
|
||
# TODO CS 3-Feb-16 Not compliant with MRI - here as a regression test | ||
|
||
def m1 | ||
send :m2 | ||
end | ||
|
||
def m2 | ||
raise 'message' | ||
end | ||
|
||
check('send.backtrace') do | ||
m1 | ||
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,9 @@ | ||
/simple.rb:13:in `m' | ||
/simple.rb:15:in `m' | ||
/simple.rb:15:in `m' | ||
/simple.rb:15:in `m' | ||
/simple.rb:15:in `m' | ||
/simple.rb:15:in `m' | ||
/simple.rb:20:in `block in <main>' | ||
/backtraces.rb:17:in `check' | ||
/simple.rb:19:in `<main>' |
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,21 @@ | ||
# Copyright (c) 2016 Oracle and/or its affiliates. All rights reserved. This | ||
# code is released under a tri EPL/GPL/LGPL license. You can use it, | ||
# redistribute it and/or modify it under the terms of the: | ||
# | ||
# Eclipse Public License version 1.0 | ||
# GNU General Public License version 2 | ||
# GNU Lesser General Public License version 2.1 | ||
|
||
require_relative 'backtraces' | ||
|
||
def m(count) | ||
if count.zero? | ||
raise 'message' | ||
else | ||
m(count - 1) | ||
end | ||
end | ||
|
||
check('simple.backtrace') do | ||
m(5) | ||
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 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.