aboutsummaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 15:30:46 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 15:30:46 +0000
commitddba2014c642b886fc9ae3bf44d6a8a10af58be5 (patch)
treee1333f8fb133044acb85e1325d823230bc5b5c94 /sample
parent278d90a255d326c55c54dcfb95eaad482a8a3060 (diff)
downloadruby-ddba2014c642b886fc9ae3bf44d6a8a10af58be5.tar.gz
* compile.c (iseq_ibf_dump): dump extra data just string length.
* sample/iseq_loader.rb: add using RubyVM::InstructionSequence.from_binary_format_extra_data method (commented out). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/iseq_loader.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/sample/iseq_loader.rb b/sample/iseq_loader.rb
index 6c6a67d3c8..2fd9184a7d 100644
--- a/sample/iseq_loader.rb
+++ b/sample/iseq_loader.rb
@@ -70,7 +70,10 @@ class RubyVM::InstructionSequence
$ISEQ_LOADER_LOADED += 1
STDERR.puts "[ISEQ_LOADER] #{Process.pid} load #{fname} from #{iseq_key}" if COMPILE_DEBUG
binary = read_compiled_iseq(fname, iseq_key)
- RubyVM::InstructionSequence.from_binary_format(binary)
+ iseq = RubyVM::InstructionSequence.from_binary_format(binary)
+ # p [extra_data(iseq.path), RubyVM::InstructionSequence.from_binary_format_extra_data(binary)]
+ # raise unless extra_data(iseq.path) == RubyVM::InstructionSequence.from_binary_format_extra_data(binary)
+ iseq
elsif COMPILE_IF_NOT_COMPILED
compile_and_save_iseq(fname, iseq_key)
else