| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 __ cmp(edi, -by * char_size()); | 1023 __ cmp(edi, -by * char_size()); |
| 1024 __ j(greater_equal, &after_position, Label::kNear); | 1024 __ j(greater_equal, &after_position, Label::kNear); |
| 1025 __ mov(edi, -by * char_size()); | 1025 __ mov(edi, -by * char_size()); |
| 1026 // On RegExp code entry (where this operation is used), the character before | 1026 // On RegExp code entry (where this operation is used), the character before |
| 1027 // the current position is expected to be already loaded. | 1027 // the current position is expected to be already loaded. |
| 1028 // We have advanced the position, so it's safe to read backwards. | 1028 // We have advanced the position, so it's safe to read backwards. |
| 1029 LoadCurrentCharacterUnchecked(-1, 1); | 1029 LoadCurrentCharacterUnchecked(-1, 1); |
| 1030 __ bind(&after_position); | 1030 __ bind(&after_position); |
| 1031 } | 1031 } |
| 1032 | 1032 |
| 1033 |
| 1033 void RegExpMacroAssemblerIA32::SetRegister(int register_index, int to) { | 1034 void RegExpMacroAssemblerIA32::SetRegister(int register_index, int to) { |
| 1034 ASSERT(register_index >= num_saved_registers_); // Reserved for positions! | 1035 ASSERT(register_index >= num_saved_registers_); // Reserved for positions! |
| 1035 __ mov(register_location(register_index), Immediate(to)); | 1036 __ mov(register_location(register_index), Immediate(to)); |
| 1036 } | 1037 } |
| 1037 | 1038 |
| 1038 | 1039 |
| 1039 bool RegExpMacroAssemblerIA32::Succeed() { | 1040 bool RegExpMacroAssemblerIA32::Succeed() { |
| 1040 __ jmp(&success_label_); | 1041 __ jmp(&success_label_); |
| 1041 return global(); | 1042 return global(); |
| 1042 } | 1043 } |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1322 } | 1323 } |
| 1323 | 1324 |
| 1324 | 1325 |
| 1325 #undef __ | 1326 #undef __ |
| 1326 | 1327 |
| 1327 #endif // V8_INTERPRETED_REGEXP | 1328 #endif // V8_INTERPRETED_REGEXP |
| 1328 | 1329 |
| 1329 }} // namespace v8::internal | 1330 }} // namespace v8::internal |
| 1330 | 1331 |
| 1331 #endif // V8_TARGET_ARCH_IA32 | 1332 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |