| 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 // Entry code: | 629 // Entry code: |
| 630 __ bind(&entry_label_); | 630 __ bind(&entry_label_); |
| 631 // Start new stack frame. | 631 // Start new stack frame. |
| 632 __ push(ebp); | 632 __ push(ebp); |
| 633 __ mov(ebp, esp); | 633 __ mov(ebp, esp); |
| 634 // Save callee-save registers. Order here should correspond to order of | 634 // Save callee-save registers. Order here should correspond to order of |
| 635 // kBackup_ebx etc. | 635 // kBackup_ebx etc. |
| 636 __ push(esi); | 636 __ push(esi); |
| 637 __ push(edi); | 637 __ push(edi); |
| 638 __ push(ebx); // Callee-save on MacOS. | 638 __ push(ebx); // Callee-save on MacOS. |
| 639 __ push(Immediate(0)); // Make room for input start minus one | 639 __ push(Immediate(0)); // Make room for "input start - 1" constant. |
| 640 | 640 |
| 641 // Check if we have space on the stack for registers. | 641 // Check if we have space on the stack for registers. |
| 642 Label retry_stack_check; | 642 Label retry_stack_check; |
| 643 Label stack_limit_hit; | 643 Label stack_limit_hit; |
| 644 Label stack_ok; | 644 Label stack_ok; |
| 645 | 645 |
| 646 __ bind(&retry_stack_check); | 646 __ bind(&retry_stack_check); |
| 647 ExternalReference stack_guard_limit = | 647 ExternalReference stack_guard_limit = |
| 648 ExternalReference::address_of_stack_guard_limit(); | 648 ExternalReference::address_of_stack_guard_limit(); |
| 649 __ mov(ecx, esp); | 649 __ mov(ecx, esp); |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 | 1243 |
| 1244 | 1244 |
| 1245 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, | 1245 void RegExpMacroAssemblerIA32::LoadConstantBufferAddress(Register reg, |
| 1246 ArraySlice* buffer) { | 1246 ArraySlice* buffer) { |
| 1247 __ mov(reg, buffer->array()); | 1247 __ mov(reg, buffer->array()); |
| 1248 __ add(Operand(reg), Immediate(buffer->base_offset())); | 1248 __ add(Operand(reg), Immediate(buffer->base_offset())); |
| 1249 } | 1249 } |
| 1250 | 1250 |
| 1251 #undef __ | 1251 #undef __ |
| 1252 }} // namespace v8::internal | 1252 }} // namespace v8::internal |
| OLD | NEW |