| 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 28 matching lines...) Expand all Loading... |
| 39 #include "ic-inl.h" | 39 #include "ic-inl.h" |
| 40 #include "factory.h" | 40 #include "factory.h" |
| 41 #include "runtime.h" | 41 #include "runtime.h" |
| 42 #include "serialize.h" | 42 #include "serialize.h" |
| 43 #include "stub-cache.h" | 43 #include "stub-cache.h" |
| 44 #include "regexp-stack.h" | 44 #include "regexp-stack.h" |
| 45 #include "ast.h" | 45 #include "ast.h" |
| 46 #include "regexp-macro-assembler.h" | 46 #include "regexp-macro-assembler.h" |
| 47 #include "platform.h" | 47 #include "platform.h" |
| 48 // Include native regexp-macro-assembler. | 48 // Include native regexp-macro-assembler. |
| 49 #ifdef V8_NATIVE_REGEXP | 49 #ifndef V8_INTERPRETED_REGEXP |
| 50 #if V8_TARGET_ARCH_IA32 | 50 #if V8_TARGET_ARCH_IA32 |
| 51 #include "ia32/regexp-macro-assembler-ia32.h" | 51 #include "ia32/regexp-macro-assembler-ia32.h" |
| 52 #elif V8_TARGET_ARCH_X64 | 52 #elif V8_TARGET_ARCH_X64 |
| 53 #include "x64/regexp-macro-assembler-x64.h" | 53 #include "x64/regexp-macro-assembler-x64.h" |
| 54 #elif V8_TARGET_ARCH_ARM | 54 #elif V8_TARGET_ARCH_ARM |
| 55 #include "arm/regexp-macro-assembler-arm.h" | 55 #include "arm/regexp-macro-assembler-arm.h" |
| 56 #else // Unknown architecture. | 56 #else // Unknown architecture. |
| 57 #error "Unknown architecture." | 57 #error "Unknown architecture." |
| 58 #endif // Target architecture. | 58 #endif // Target architecture. |
| 59 #endif // V8_NATIVE_REGEXP | 59 #endif // V8_INTERPRETED_REGEXP |
| 60 | 60 |
| 61 namespace v8 { | 61 namespace v8 { |
| 62 namespace internal { | 62 namespace internal { |
| 63 | 63 |
| 64 | 64 |
| 65 // ----------------------------------------------------------------------------- | 65 // ----------------------------------------------------------------------------- |
| 66 // Implementation of Label | 66 // Implementation of Label |
| 67 | 67 |
| 68 int Label::pos() const { | 68 int Label::pos() const { |
| 69 if (pos_ < 0) return -pos_ - 1; | 69 if (pos_ < 0) return -pos_ - 1; |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 ExternalReference ExternalReference::compile_array_pop_call() { | 668 ExternalReference ExternalReference::compile_array_pop_call() { |
| 669 return ExternalReference(FUNCTION_ADDR(CompileArrayPopCall)); | 669 return ExternalReference(FUNCTION_ADDR(CompileArrayPopCall)); |
| 670 } | 670 } |
| 671 | 671 |
| 672 | 672 |
| 673 ExternalReference ExternalReference::compile_array_push_call() { | 673 ExternalReference ExternalReference::compile_array_push_call() { |
| 674 return ExternalReference(FUNCTION_ADDR(CompileArrayPushCall)); | 674 return ExternalReference(FUNCTION_ADDR(CompileArrayPushCall)); |
| 675 } | 675 } |
| 676 | 676 |
| 677 | 677 |
| 678 #ifdef V8_NATIVE_REGEXP | 678 #ifndef V8_INTERPRETED_REGEXP |
| 679 | 679 |
| 680 ExternalReference ExternalReference::re_check_stack_guard_state() { | 680 ExternalReference ExternalReference::re_check_stack_guard_state() { |
| 681 Address function; | 681 Address function; |
| 682 #ifdef V8_TARGET_ARCH_X64 | 682 #ifdef V8_TARGET_ARCH_X64 |
| 683 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); | 683 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); |
| 684 #elif V8_TARGET_ARCH_IA32 | 684 #elif V8_TARGET_ARCH_IA32 |
| 685 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); | 685 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); |
| 686 #elif V8_TARGET_ARCH_ARM | 686 #elif V8_TARGET_ARCH_ARM |
| 687 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); | 687 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); |
| 688 #else | 688 #else |
| (...skipping 22 matching lines...) Expand all Loading... |
| 711 } | 711 } |
| 712 | 712 |
| 713 ExternalReference ExternalReference::address_of_regexp_stack_memory_address() { | 713 ExternalReference ExternalReference::address_of_regexp_stack_memory_address() { |
| 714 return ExternalReference(RegExpStack::memory_address()); | 714 return ExternalReference(RegExpStack::memory_address()); |
| 715 } | 715 } |
| 716 | 716 |
| 717 ExternalReference ExternalReference::address_of_regexp_stack_memory_size() { | 717 ExternalReference ExternalReference::address_of_regexp_stack_memory_size() { |
| 718 return ExternalReference(RegExpStack::memory_size_address()); | 718 return ExternalReference(RegExpStack::memory_size_address()); |
| 719 } | 719 } |
| 720 | 720 |
| 721 #endif | 721 #endif // V8_INTERPRETED_REGEXP |
| 722 | 722 |
| 723 | 723 |
| 724 static double add_two_doubles(double x, double y) { | 724 static double add_two_doubles(double x, double y) { |
| 725 return x + y; | 725 return x + y; |
| 726 } | 726 } |
| 727 | 727 |
| 728 | 728 |
| 729 static double sub_two_doubles(double x, double y) { | 729 static double sub_two_doubles(double x, double y) { |
| 730 return x - y; | 730 return x - y; |
| 731 } | 731 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); | 794 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); |
| 795 } | 795 } |
| 796 | 796 |
| 797 | 797 |
| 798 ExternalReference ExternalReference::debug_step_in_fp_address() { | 798 ExternalReference ExternalReference::debug_step_in_fp_address() { |
| 799 return ExternalReference(Debug::step_in_fp_addr()); | 799 return ExternalReference(Debug::step_in_fp_addr()); |
| 800 } | 800 } |
| 801 #endif | 801 #endif |
| 802 | 802 |
| 803 } } // namespace v8::internal | 803 } } // namespace v8::internal |
| OLD | NEW |