diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-25 13:42:44 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-25 13:42:44 +0200 |
commit | 565eea9d6d455f60196d37e13b802d5f0e923150 (patch) | |
tree | 9a196154d34ac1cd370f3215e1b0c4b179151831 /Source/JavaScriptCore | |
parent | 3f313d31e279000455e390d6c171d13ef54619af (diff) | |
download | qtwebkit-565eea9d6d455f60196d37e13b802d5f0e923150.tar.gz |
[WIN] Make LLInt offsets extractor work on Windows
https://bugs.webkit.org/show_bug.cgi?id=100369
Reviewed by NOBODY (OOPS!).
Open the input file explicitly in binary mode to prevent ruby/Windows from thinking that
it's a text mode file that needs even new line conversions. The binary mode parameter is
ignored on other platforms.
* offlineasm/offsets.rb:
Diffstat (limited to 'Source/JavaScriptCore')
-rw-r--r-- | Source/JavaScriptCore/ChangeLog | 13 | ||||
-rw-r--r-- | Source/JavaScriptCore/offlineasm/offsets.rb | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Source/JavaScriptCore/ChangeLog b/Source/JavaScriptCore/ChangeLog index c096c4bd0..0387dcecd 100644 --- a/Source/JavaScriptCore/ChangeLog +++ b/Source/JavaScriptCore/ChangeLog @@ -1,3 +1,16 @@ +2012-10-25 Simon Hausmann <simon.hausmann@digia.com> + + [WIN] Make LLInt offsets extractor work on Windows + https://bugs.webkit.org/show_bug.cgi?id=100369 + + Reviewed by NOBODY (OOPS!). + + Open the input file explicitly in binary mode to prevent ruby/Windows from thinking that + it's a text mode file that needs even new line conversions. The binary mode parameter is + ignored on other platforms. + + * offlineasm/offsets.rb: + 2012-10-23 Mark Lam <mark.lam@apple.com> Make topCallFrame reliable. diff --git a/Source/JavaScriptCore/offlineasm/offsets.rb b/Source/JavaScriptCore/offlineasm/offsets.rb index cb09918cd..50b963b72 100644 --- a/Source/JavaScriptCore/offlineasm/offsets.rb +++ b/Source/JavaScriptCore/offlineasm/offsets.rb @@ -105,7 +105,7 @@ def offsetsAndConfigurationIndex(file) fileBytes = [] - File.open(file, "r") { + File.open(file, "rb") { | inp | loop { byte = inp.getbyte |