Skip to content

Instantly share code, notes, and snippets.

View matthewd's full-sized avatar

Matthew Draper matthewd

View GitHub Profile
diff --git a/lib/compiler/ast/sends.rb b/lib/compiler/ast/sends.rb
index 6707b05..0f5851e 100644
--- a/lib/compiler/ast/sends.rb
+++ b/lib/compiler/ast/sends.rb
@@ -2,6 +2,7 @@ module Rubinius
module AST
class Send < Node
attr_accessor :receiver, :name, :privately, :block, :variable
+ attr_accessor :vcall_style
attr_accessor :check_for_local
tango:src/rbx[hydra⚡]% bin/mspec spec/compiler ^spec/compiler/transforms --parser-adelaide
rubinius 2.0.0dev (1.8.7 7a9c86f9 yyyy-mm-dd JI) [x86_64-unknown-linux-gnu]
.....................F..F.............F........................
1)
A Dstr node is compiled from '"#{22}aa" "cd#{44}" "55" "#{66}"' FAILED
Expected:
[:test_generator,
[[:push, 22],
[:meta_to_s],
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
rbx[0x55f13d]
/lib/libpthread.so.0(+0xef60)[0x7fce311faf60]
rbx(_ZN8rubinius7ImmixGC10saw_objectEPNS_6ObjectE+0x1c)[0x6a60ac]
rbx(_ZN8rubinius16GarbageCollector11scan_objectEPNS_6ObjectE+0x30)[0x6a50a0]
rbx(_ZN8rubinius7ImmixGC7collectERNS_6GCDataE+0x2f8)[0x6a69e8]
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
rbx[0x55f13d]
/lib/libpthread.so.0(+0xef60)[0x7ffd86ab9f60]
rbx(_ZN8rubinius7ImmixGC10saw_objectEPNS_6ObjectE+0x2b)[0x6a60bb]
rbx(_ZN8rubinius10Executable4Info13mark_inlinersEPNS_6ObjectERNS_10ObjectMarkE+0x3c)[0x635e9c]
rbx(_ZN8rubinius14CompiledMethod4Info4markEPNS_6ObjectERNS_10ObjectMarkE+0x2a)[0x631e4a]
puts(
# Variations:
# - use single quotes on 'AA...'
# - use single quotes on '222..'
"000" + <<"AA\n#{x}\" + "111" + <<BB + "222\
333
444#{<<CC + "555" + <<-DD}666
777
CC
CC
%%{
attr_accessor :heredocs
def setup
@heredocs = []
end
def heredoc(term, indent, value, dynamic)
h = heredoc_(term, indent, value, dynamic)
@heredocs << h
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
rbx[0x55f13d]
/lib/libpthread.so.0(+0xef60)[0x7f79ffc2cf60]
rbx(_ZN8rubinius7ImmixGC10saw_objectEPNS_6ObjectE+0x38)[0x6a60c8]
rbx(_ZN8rubinius10Executable4Info13mark_inlinersEPNS_6ObjectERNS_10ObjectMarkE+0x3c)[0x635e9c]
rbx(_ZN8rubinius14CompiledMethod4Info4markEPNS_6ObjectERNS_10ObjectMarkE+0x2a)[0x631e4a]
diff --git a/lib/kpeg/code_generator.rb b/lib/kpeg/code_generator.rb
index 55376d6..bcdddcd 100644
--- a/lib/kpeg/code_generator.rb
+++ b/lib/kpeg/code_generator.rb
@@ -263,7 +263,11 @@ module KPeg
code << indentify("_tmp = _tmp ? nil : true\n", indent)
code << indentify("self.pos = #{ss}\n", indent)
when RuleReference
- code << indentify("_tmp = apply(:#{method_name op.rule_name})\n", indent)
+ if op.arguments
#!/usr/bin/env ruby
lib_path = File.expand_path("../../lib", __FILE__)
$:.unshift lib_path
require 'uri'
require 'net/http'
require 'optparse'
diff --git a/src/backend/executor/functions.c b/src/backend/executor/functions.c
new file mode 100644
index ce3b77b..be71fbb
*** a/src/backend/executor/functions.c
--- b/src/backend/executor/functions.c
*************** typedef SQLFunctionCache *SQLFunctionCac
*** 116,122 ****
--- 116,124 ----
*/
typedef struct SQLFunctionParseInfo