| OLD | NEW |
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 __ shr(ebx, 3); | 114 __ shr(ebx, 3); |
| 115 // TODO(lrn): Where is the bitmap stored? Pass the bitmap as argument instead. | 115 // TODO(lrn): Where is the bitmap stored? Pass the bitmap as argument instead. |
| 116 // __ mov(ecx, position_of_bitmap); | 116 // __ mov(ecx, position_of_bitmap); |
| 117 __ movzx_b(ebx, Operand(ecx, ebx, times_1, 0)); | 117 __ movzx_b(ebx, Operand(ecx, ebx, times_1, 0)); |
| 118 __ and_(eax, (1<<3)-1); | 118 __ and_(eax, (1<<3)-1); |
| 119 __ bt(ebx, eax); | 119 __ bt(ebx, eax); |
| 120 __ j(greater_equal, on_zero); // Aka. jump on carry set. | 120 __ j(greater_equal, on_zero); // Aka. jump on carry set. |
| 121 } | 121 } |
| 122 | 122 |
| 123 | 123 |
| 124 void RegExpMacroAssemblerIA32::CheckCharacterClass(RegExpCharacterClass *cclass, | 124 void RegExpMacroAssemblerIA32::LoadCurrentCharacter(int cp_offset, |
| 125 Label* on_failure) { | 125 Label* on_end_of_input) { |
| 126 UNREACHABLE(); // Not implemented. |
| 127 } |
| 128 |
| 129 |
| 130 void RegExpMacroAssemblerIA32::CheckCharacterLT(uc16 limit, Label* on_less) { |
| 131 UNREACHABLE(); // Not implemented. |
| 132 } |
| 133 |
| 134 |
| 135 void RegExpMacroAssemblerIA32::CheckCharacterGT(uc16 limit, Label* on_greater) { |
| 126 UNREACHABLE(); // Not implemented. | 136 UNREACHABLE(); // Not implemented. |
| 127 } | 137 } |
| 128 | 138 |
| 129 | 139 |
| 130 void RegExpMacroAssemblerIA32::CheckCharacters(Vector<uc16> str, | 140 void RegExpMacroAssemblerIA32::CheckCharacters(Vector<uc16> str, |
| 131 Label* on_failure) { | 141 Label* on_failure) { |
| 132 if (sizeof(SubjectChar) == 1) { | 142 if (sizeof(SubjectChar) == 1) { |
| 133 for (int i = 0; i < str.length(); i++) { | 143 for (int i = 0; i < str.length(); i++) { |
| 134 if (str[i] > String::kMaxAsciiCharCode) { | 144 if (str[i] > String::kMaxAsciiCharCode) { |
| 135 __ jmp(on_failure); | 145 __ jmp(on_failure); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 438 |
| 429 | 439 |
| 430 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress( | 440 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress( |
| 431 Register reg, ArraySlice<T>* buffer) { | 441 Register reg, ArraySlice<T>* buffer) { |
| 432 __ mov(reg, buffer->array()); | 442 __ mov(reg, buffer->array()); |
| 433 __ add(reg, buffer->base_offset()); | 443 __ add(reg, buffer->base_offset()); |
| 434 } | 444 } |
| 435 | 445 |
| 436 #undef __ | 446 #undef __ |
| 437 }} | 447 }} |
| OLD | NEW |