Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Unified Diff: source/libvpx/build/make/ads2gas.pl

Issue 11555023: libvpx: Add VP9 decoder. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: source/libvpx/build/make/ads2gas.pl
===================================================================
--- source/libvpx/build/make/ads2gas.pl (revision 172621)
+++ source/libvpx/build/make/ads2gas.pl (working copy)
@@ -61,26 +61,26 @@
s/:SHR:/ >> /g;
# Convert ELSE to .else
- s/\bELSE\b/.else/g;
+ s/ELSE/.else/g;
# Convert ENDIF to .endif
- s/\bENDIF\b/.endif/g;
+ s/ENDIF/.endif/g;
# Convert ELSEIF to .elseif
- s/\bELSEIF\b/.elseif/g;
+ s/ELSEIF/.elseif/g;
# Convert LTORG to .ltorg
- s/\bLTORG\b/.ltorg/g;
+ s/LTORG/.ltorg/g;
# Convert endfunc to nothing.
- s/\bendfunc\b//ig;
+ s/endfunc//ig;
# Convert FUNCTION to nothing.
- s/\bFUNCTION\b//g;
- s/\bfunction\b//g;
+ s/FUNCTION//g;
+ s/function//g;
- s/\bENTRY\b//g;
- s/\bMSARMASM\b/0/g;
+ s/ENTRY//g;
+ s/MSARMASM/0/g;
s/^\s+end\s+$//g;
# Convert IF :DEF:to .if
@@ -154,10 +154,6 @@
# ARM code
s/\sARM/.arm/g;
- # push/pop
- s/(push\s+)(r\d+)/stmdb sp\!, \{$2\}/g;
- s/(pop\s+)(r\d+)/ldmia sp\!, \{$2\}/g;
-
# NEON code
s/(vld1.\d+\s+)(q\d+)/$1\{$2\}/g;
s/(vtbl.\d+\s+[^,]+),([^,]+)/$1,\{$2\}/g;
@@ -193,7 +189,7 @@
s/(\S+\s+)EQU(\s+\S+)/.equ $1, $2/;
# Begin macro definition
- if (/\bMACRO\b/) {
+ if (/MACRO/) {
$_ = <STDIN>;
s/^/.macro/;
s/\$//g; # remove formal param reference
@@ -202,7 +198,7 @@
# For macros, use \ to reference formal params
s/\$/\\/g; # End macro definition
- s/\bMEND\b/.endm/; # No need to tell it where to stop assembling
+ s/MEND/.endm/; # No need to tell it where to stop assembling
next if /^\s*END\s*$/;
print;
print "$comment_sub$comment\n" if defined $comment;

Powered by Google App Engine
This is Rietveld 408576698