Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 #include "ast.h" | 45 #include "ast.h" |
| 46 #include "regexp-macro-assembler.h" | 46 #include "regexp-macro-assembler.h" |
| 47 // Include native regexp-macro-assembler. | 47 // Include native regexp-macro-assembler. |
| 48 #ifdef V8_NATIVE_REGEXP | 48 #ifdef V8_NATIVE_REGEXP |
| 49 #if V8_TARGET_ARCH_IA32 | 49 #if V8_TARGET_ARCH_IA32 |
| 50 #include "ia32/regexp-macro-assembler-ia32.h" | 50 #include "ia32/regexp-macro-assembler-ia32.h" |
| 51 #elif V8_TARGET_ARCH_X64 | 51 #elif V8_TARGET_ARCH_X64 |
| 52 #include "x64/regexp-macro-assembler-x64.h" | 52 #include "x64/regexp-macro-assembler-x64.h" |
| 53 #elif V8_TARGET_ARCH_ARM | 53 #elif V8_TARGET_ARCH_ARM |
| 54 #include "arm/regexp-macro-assembler-arm.h" | 54 #include "arm/regexp-macro-assembler-arm.h" |
| 55 #elif V8_TARGET_ARCH_MIPS | |
|
Søren Thygesen Gjesse
2010/01/19 22:59:12
I think we can safely ignore the native code RegEx
Alexandre
2010/01/22 23:08:42
Removed this part. We now need regexp=interpreted
| |
| 56 #include "mips/regexp-macro-assembler-mips.h" | |
| 55 #else // Unknown architecture. | 57 #else // Unknown architecture. |
| 56 #error "Unknown architecture." | 58 #error "Unknown architecture." |
| 57 #endif // Target architecture. | 59 #endif // Target architecture. |
| 58 #endif // V8_NATIVE_REGEXP | 60 #endif // V8_NATIVE_REGEXP |
| 59 | 61 |
| 60 namespace v8 { | 62 namespace v8 { |
| 61 namespace internal { | 63 namespace internal { |
| 62 | 64 |
| 63 | 65 |
| 64 // ----------------------------------------------------------------------------- | 66 // ----------------------------------------------------------------------------- |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 636 #ifdef V8_NATIVE_REGEXP | 638 #ifdef V8_NATIVE_REGEXP |
| 637 | 639 |
| 638 ExternalReference ExternalReference::re_check_stack_guard_state() { | 640 ExternalReference ExternalReference::re_check_stack_guard_state() { |
| 639 Address function; | 641 Address function; |
| 640 #ifdef V8_TARGET_ARCH_X64 | 642 #ifdef V8_TARGET_ARCH_X64 |
| 641 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); | 643 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); |
| 642 #elif V8_TARGET_ARCH_IA32 | 644 #elif V8_TARGET_ARCH_IA32 |
| 643 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); | 645 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); |
| 644 #elif V8_TARGET_ARCH_ARM | 646 #elif V8_TARGET_ARCH_ARM |
| 645 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); | 647 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); |
| 648 #elif V8_TARGET_ARCH_MIPS | |
|
Søren Thygesen Gjesse
2010/01/19 22:59:12
See above.
Alexandre
2010/01/22 23:08:42
Removed.
On 2010/01/19 22:59:12, Søren Gjesse wrot
| |
| 649 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); | |
| 646 #else | 650 #else |
| 647 UNREACHABLE("Unexpected architecture"); | 651 UNREACHABLE("Unexpected architecture"); |
| 648 #endif | 652 #endif |
| 649 return ExternalReference(Redirect(function)); | 653 return ExternalReference(Redirect(function)); |
| 650 } | 654 } |
| 651 | 655 |
| 652 ExternalReference ExternalReference::re_grow_stack() { | 656 ExternalReference ExternalReference::re_grow_stack() { |
| 653 return ExternalReference( | 657 return ExternalReference( |
| 654 Redirect(FUNCTION_ADDR(NativeRegExpMacroAssembler::GrowStack))); | 658 Redirect(FUNCTION_ADDR(NativeRegExpMacroAssembler::GrowStack))); |
| 655 } | 659 } |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 735 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); | 739 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); |
| 736 } | 740 } |
| 737 | 741 |
| 738 | 742 |
| 739 ExternalReference ExternalReference::debug_step_in_fp_address() { | 743 ExternalReference ExternalReference::debug_step_in_fp_address() { |
| 740 return ExternalReference(Debug::step_in_fp_addr()); | 744 return ExternalReference(Debug::step_in_fp_addr()); |
| 741 } | 745 } |
| 742 #endif | 746 #endif |
| 743 | 747 |
| 744 } } // namespace v8::internal | 748 } } // namespace v8::internal |
| OLD | NEW |