summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/create_jit_stubs
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/create_jit_stubs')
-rw-r--r--JavaScriptCore/create_jit_stubs11
1 files changed, 11 insertions, 0 deletions
diff --git a/JavaScriptCore/create_jit_stubs b/JavaScriptCore/create_jit_stubs
index 4d510ea..9bb9ee5 100644
--- a/JavaScriptCore/create_jit_stubs
+++ b/JavaScriptCore/create_jit_stubs
@@ -42,6 +42,7 @@ $file = $ARGV[0];
die "$usage\n" unless ($prefix and $file);
my $stub_template = "";
+my $output_end = "";
my $stub = "";
my $rtype = "";
@@ -51,9 +52,17 @@ print STDERR "Creating JIT stubs for $file \n";
open(IN, $file) or die "No such file $file";
while ( $_ = <IN> ) {
+ if ( /^$prefix\_BEGIN\((.*)\)/ ) {
+ $stub = $1;
+ $stub =~ s/$offset_template/$offset/g;
+ print $stub . "\n";
+ }
if ( /^$prefix\((.*)\)/ ) {
$stub_template .= $1 . "\n";
}
+ if ( /^$prefix\_END\((.*)\)/ ) {
+ $output_end .= $1 . "\n";
+ }
if ( /^DEFINE_STUB_FUNCTION\((.*), (.*)\)/ ) {
$stub = $stub_template;
$rtype = quotemeta($1);
@@ -66,4 +75,6 @@ while ( $_ = <IN> ) {
}
}
+print $output_end;
+
close(IN);