| 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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 | 411 |
| 412 void RegExpMacroAssemblerIA32::IfRegisterLT(int reg, | 412 void RegExpMacroAssemblerIA32::IfRegisterLT(int reg, |
| 413 int comparand, | 413 int comparand, |
| 414 Label* if_lt) { | 414 Label* if_lt) { |
| 415 __ cmp(register_location(reg), Immediate(comparand)); | 415 __ cmp(register_location(reg), Immediate(comparand)); |
| 416 BranchOrBacktrack(less, if_lt); | 416 BranchOrBacktrack(less, if_lt); |
| 417 } | 417 } |
| 418 | 418 |
| 419 | 419 |
| 420 | 420 |
| 421 RegExpMacroAssembler::Re2kImplementation | 421 RegExpMacroAssembler::IrregexpImplementation |
| 422 RegExpMacroAssemblerIA32::Implementation() { | 422 RegExpMacroAssemblerIA32::Implementation() { |
| 423 return kIA32Implementation; | 423 return kIA32Implementation; |
| 424 } | 424 } |
| 425 | 425 |
| 426 | 426 |
| 427 | 427 |
| 428 void RegExpMacroAssemblerIA32::LoadCurrentCharacter(int cp_offset, | 428 void RegExpMacroAssemblerIA32::LoadCurrentCharacter(int cp_offset, |
| 429 Label* on_end_of_input) { | 429 Label* on_end_of_input) { |
| 430 ASSERT(cp_offset >= 0); | 430 ASSERT(cp_offset >= 0); |
| 431 ASSERT(cp_offset < (1<<30)); // Be sane! (And ensure negation works) | 431 ASSERT(cp_offset < (1<<30)); // Be sane! (And ensure negation works) |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 596 |
| 597 | 597 |
| 598 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, | 598 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, |
| 599 ArraySlice* buffer) { | 599 ArraySlice* buffer) { |
| 600 __ mov(reg, buffer->array()); | 600 __ mov(reg, buffer->array()); |
| 601 __ add(Operand(reg), Immediate(buffer->base_offset())); | 601 __ add(Operand(reg), Immediate(buffer->base_offset())); |
| 602 } | 602 } |
| 603 | 603 |
| 604 #undef __ | 604 #undef __ |
| 605 }} | 605 }} |
| OLD | NEW |