ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Faster/Faster.pm
(Generate patch)

Comparing Faster/Faster.pm (file contents):
Revision 1.12 by root, Fri Mar 10 18:39:26 2006 UTC vs.
Revision 1.17 by root, Fri Mar 10 18:58:35 2006 UTC

31my $LINK = "$Config{ld} $Config{ldflags} $Config{lddlflags} $Config{ccdlflags}"; 31my $LINK = "$Config{ld} $Config{ldflags} $Config{lddlflags} $Config{ccdlflags}";
32my $LIBS = "$Config{libs}"; 32my $LIBS = "$Config{libs}";
33my $_o = $Config{_o}; 33my $_o = $Config{_o};
34my $_so = ".so"; 34my $_so = ".so";
35 35
36# we don't need no steenking PIC on x86
37$COMPILE =~ s/-f(?:PIC|pic)//g
38 if $Config{archname} =~ /^(i[3456]86)-/;
39
36my $opt_assert = 1; 40my $opt_assert = 0;
37 41
38our $source; 42our $source;
39 43
40my @ops; 44my @ops;
41my $op; 45my $op;
199 $source .= " PUSHMARK (PL_stack_sp);\n"; 203 $source .= " PUSHMARK (PL_stack_sp);\n";
200 204
201 out_next; 205 out_next;
202} 206}
203 207
204if (0 && $Config{useithreads} ne "define") { 208if ($Config{useithreads} ne "define") {
205 # disable optimisations on ithreads 209 # disable optimisations on ithreads
206 210
207 *op_const = sub { 211 *op_const = sub {
208 $source .= " { dSP; XPUSHs ((SV *)${$op->sv}L); PUTBACK; }\n"; 212 $source .= " { dSP; XPUSHs ((SV *)${$op->sv}L); PUTBACK; }\n";
209 213
385 out_next; 389 out_next;
386} 390}
387 391
388sub op_grepstart { 392sub op_grepstart {
389 out_callop; 393 out_callop;
394 $op = $op->next;
390 out_cond_jump $op->next->other; 395 out_cond_jump $op->other;
391 out_jump_next; 396 out_jump_next;
392} 397}
393 398
394*op_mapstart = \&op_grepstart; 399*op_mapstart = \&op_grepstart;
395 400

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines