| 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 __ cmp(eax, 64); // FIXME: 64 = size of map. Found somehow?? | 311 __ cmp(eax, 64); // FIXME: 64 = size of map. Found somehow?? |
| 312 __ j(greater_equal, &fallthrough); | 312 __ j(greater_equal, &fallthrough); |
| 313 // TODO(lrn): ecx must hold address of map | 313 // TODO(lrn): ecx must hold address of map |
| 314 __ movzx_b(eax, Operand(ecx, eax, times_1, 0)); | 314 __ movzx_b(eax, Operand(ecx, eax, times_1, 0)); |
| 315 // jump table: jump to destinations[eax]; | 315 // jump table: jump to destinations[eax]; |
| 316 | 316 |
| 317 __ bind(&fallthrough); | 317 __ bind(&fallthrough); |
| 318 } | 318 } |
| 319 | 319 |
| 320 | 320 |
| 321 | |
| 322 void RegExpMacroAssemblerIA32::DispatchHighByteMap( | 321 void RegExpMacroAssemblerIA32::DispatchHighByteMap( |
| 323 byte start, | 322 byte start, |
| 324 Label* byte_map, | 323 Label* byte_map, |
| 325 const Vector<Label*>& destinations) { | 324 const Vector<Label*>& destinations) { |
| 326 UNREACHABLE(); | 325 UNREACHABLE(); |
| 327 | 326 |
| 328 Label fallthrough; | 327 Label fallthrough; |
| 329 ReadCurrentChar(eax); | 328 ReadCurrentChar(eax); |
| 330 __ shr(eax, 8); | 329 __ shr(eax, 8); |
| 331 __ sub(Operand(eax), Immediate(start)); | 330 __ sub(Operand(eax), Immediate(start)); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 | 623 |
| 625 | 624 |
| 626 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, | 625 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, |
| 627 ArraySlice* buffer) { | 626 ArraySlice* buffer) { |
| 628 __ mov(reg, buffer->array()); | 627 __ mov(reg, buffer->array()); |
| 629 __ add(Operand(reg), Immediate(buffer->base_offset())); | 628 __ add(Operand(reg), Immediate(buffer->base_offset())); |
| 630 } | 629 } |
| 631 | 630 |
| 632 #undef __ | 631 #undef __ |
| 633 }} | 632 }} |
| OLD | NEW |