diff options
Diffstat (limited to 'deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc')
-rw-r--r-- | deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc b/deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc index bc3e643369..1187fc04b8 100644 --- a/deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc +++ b/deps/v8/src/regexp/ppc/regexp-macro-assembler-ppc.cc @@ -86,8 +86,7 @@ namespace internal { * bool direct_call = false, * Isolate* isolate); * The call is performed by NativeRegExpMacroAssembler::Execute() - * (in regexp-macro-assembler.cc) via the CALL_GENERATED_REGEXP_CODE macro - * in ppc/simulator-ppc.h. + * (in regexp-macro-assembler.cc) via the GeneratedCode wrapper. */ #define __ ACCESS_MASM(masm_) @@ -522,12 +521,12 @@ bool RegExpMacroAssemblerPPC::CheckSpecialCharacterClass(uc16 type, Label success; __ cmpi(current_character(), Operand(' ')); __ beq(&success); - // Check range 0x09..0x0d + // Check range 0x09..0x0D __ subi(r3, current_character(), Operand('\t')); __ cmpli(r3, Operand('\r' - '\t')); __ ble(&success); // \u00a0 (NBSP). - __ cmpi(r3, Operand(0x00a0 - '\t')); + __ cmpi(r3, Operand(0x00A0 - '\t')); BranchOrBacktrack(ne, on_no_match); __ bind(&success); return true; @@ -549,37 +548,37 @@ bool RegExpMacroAssemblerPPC::CheckSpecialCharacterClass(uc16 type, BranchOrBacktrack(le, on_no_match); return true; case '.': { - // Match non-newlines (not 0x0a('\n'), 0x0d('\r'), 0x2028 and 0x2029) + // Match non-newlines (not 0x0A('\n'), 0x0D('\r'), 0x2028 and 0x2029) __ xori(r3, current_character(), Operand(0x01)); - // See if current character is '\n'^1 or '\r'^1, i.e., 0x0b or 0x0c - __ subi(r3, r3, Operand(0x0b)); - __ cmpli(r3, Operand(0x0c - 0x0b)); + // See if current character is '\n'^1 or '\r'^1, i.e., 0x0B or 0x0C + __ subi(r3, r3, Operand(0x0B)); + __ cmpli(r3, Operand(0x0C - 0x0B)); BranchOrBacktrack(le, on_no_match); if (mode_ == UC16) { // Compare original value to 0x2028 and 0x2029, using the already - // computed (current_char ^ 0x01 - 0x0b). I.e., check for - // 0x201d (0x2028 - 0x0b) or 0x201e. - __ subi(r3, r3, Operand(0x2028 - 0x0b)); + // computed (current_char ^ 0x01 - 0x0B). I.e., check for + // 0x201D (0x2028 - 0x0B) or 0x201E. + __ subi(r3, r3, Operand(0x2028 - 0x0B)); __ cmpli(r3, Operand(1)); BranchOrBacktrack(le, on_no_match); } return true; } case 'n': { - // Match newlines (0x0a('\n'), 0x0d('\r'), 0x2028 and 0x2029) + // Match newlines (0x0A('\n'), 0x0D('\r'), 0x2028 and 0x2029) __ xori(r3, current_character(), Operand(0x01)); - // See if current character is '\n'^1 or '\r'^1, i.e., 0x0b or 0x0c - __ subi(r3, r3, Operand(0x0b)); - __ cmpli(r3, Operand(0x0c - 0x0b)); + // See if current character is '\n'^1 or '\r'^1, i.e., 0x0B or 0x0C + __ subi(r3, r3, Operand(0x0B)); + __ cmpli(r3, Operand(0x0C - 0x0B)); if (mode_ == LATIN1) { BranchOrBacktrack(gt, on_no_match); } else { Label done; __ ble(&done); // Compare original value to 0x2028 and 0x2029, using the already - // computed (current_char ^ 0x01 - 0x0b). I.e., check for - // 0x201d (0x2028 - 0x0b) or 0x201e. - __ subi(r3, r3, Operand(0x2028 - 0x0b)); + // computed (current_char ^ 0x01 - 0x0B). I.e., check for + // 0x201D (0x2028 - 0x0B) or 0x201E. + __ subi(r3, r3, Operand(0x2028 - 0x0B)); __ cmpli(r3, Operand(1)); BranchOrBacktrack(gt, on_no_match); __ bind(&done); |