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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "src/platform.h" | 50 #include "src/platform.h" |
51 #include "src/regexp-macro-assembler.h" | 51 #include "src/regexp-macro-assembler.h" |
52 #include "src/regexp-stack.h" | 52 #include "src/regexp-stack.h" |
53 #include "src/runtime.h" | 53 #include "src/runtime.h" |
54 #include "src/serialize.h" | 54 #include "src/serialize.h" |
55 #include "src/store-buffer-inl.h" | 55 #include "src/store-buffer-inl.h" |
56 #include "src/stub-cache.h" | 56 #include "src/stub-cache.h" |
57 #include "src/token.h" | 57 #include "src/token.h" |
58 | 58 |
59 #if V8_TARGET_ARCH_IA32 | 59 #if V8_TARGET_ARCH_IA32 |
60 #include "src/ia32/assembler-ia32-inl.h" | 60 #include "src/ia32/assembler-ia32-inl.h" // NOLINT |
61 #elif V8_TARGET_ARCH_X64 | 61 #elif V8_TARGET_ARCH_X64 |
62 #include "src/x64/assembler-x64-inl.h" | 62 #include "src/x64/assembler-x64-inl.h" // NOLINT |
63 #elif V8_TARGET_ARCH_ARM64 | 63 #elif V8_TARGET_ARCH_ARM64 |
64 #include "src/arm64/assembler-arm64-inl.h" | 64 #include "src/arm64/assembler-arm64-inl.h" // NOLINT |
65 #elif V8_TARGET_ARCH_ARM | 65 #elif V8_TARGET_ARCH_ARM |
66 #include "src/arm/assembler-arm-inl.h" | 66 #include "src/arm/assembler-arm-inl.h" // NOLINT |
67 #elif V8_TARGET_ARCH_MIPS | 67 #elif V8_TARGET_ARCH_MIPS |
68 #include "src/mips/assembler-mips-inl.h" | 68 #include "src/mips/assembler-mips-inl.h" // NOLINT |
69 #elif V8_TARGET_ARCH_X87 | 69 #elif V8_TARGET_ARCH_X87 |
70 #include "src/x87/assembler-x87-inl.h" | 70 #include "src/x87/assembler-x87-inl.h" // NOLINT |
71 #else | 71 #else |
72 #error "Unknown architecture." | 72 #error "Unknown architecture." |
73 #endif | 73 #endif |
74 | 74 |
75 // Include native regexp-macro-assembler. | 75 // Include native regexp-macro-assembler. |
76 #ifndef V8_INTERPRETED_REGEXP | 76 #ifndef V8_INTERPRETED_REGEXP |
77 #if V8_TARGET_ARCH_IA32 | 77 #if V8_TARGET_ARCH_IA32 |
78 #include "src/ia32/regexp-macro-assembler-ia32.h" | 78 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT |
79 #elif V8_TARGET_ARCH_X64 | 79 #elif V8_TARGET_ARCH_X64 |
80 #include "src/x64/regexp-macro-assembler-x64.h" | 80 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT |
81 #elif V8_TARGET_ARCH_ARM64 | 81 #elif V8_TARGET_ARCH_ARM64 |
82 #include "src/arm64/regexp-macro-assembler-arm64.h" | 82 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT |
83 #elif V8_TARGET_ARCH_ARM | 83 #elif V8_TARGET_ARCH_ARM |
84 #include "src/arm/regexp-macro-assembler-arm.h" | 84 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT |
85 #elif V8_TARGET_ARCH_MIPS | 85 #elif V8_TARGET_ARCH_MIPS |
86 #include "src/mips/regexp-macro-assembler-mips.h" | 86 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT |
87 #elif V8_TARGET_ARCH_X87 | 87 #elif V8_TARGET_ARCH_X87 |
88 #include "src/x87/regexp-macro-assembler-x87.h" | 88 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT |
89 #else // Unknown architecture. | 89 #else // Unknown architecture. |
90 #error "Unknown architecture." | 90 #error "Unknown architecture." |
91 #endif // Target architecture. | 91 #endif // Target architecture. |
92 #endif // V8_INTERPRETED_REGEXP | 92 #endif // V8_INTERPRETED_REGEXP |
93 | 93 |
94 namespace v8 { | 94 namespace v8 { |
95 namespace internal { | 95 namespace internal { |
96 | 96 |
97 // ----------------------------------------------------------------------------- | 97 // ----------------------------------------------------------------------------- |
98 // Common double constants. | 98 // Common double constants. |
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1646 r2 = r2 - ad; | 1646 r2 = r2 - ad; |
1647 } | 1647 } |
1648 delta = ad - r2; | 1648 delta = ad - r2; |
1649 } while (q1 < delta || (q1 == delta && r1 == 0)); | 1649 } while (q1 < delta || (q1 == delta && r1 == 0)); |
1650 int32_t mul = static_cast<int32_t>(q2 + 1); | 1650 int32_t mul = static_cast<int32_t>(q2 + 1); |
1651 multiplier_ = (d < 0) ? -mul : mul; | 1651 multiplier_ = (d < 0) ? -mul : mul; |
1652 shift_ = p - 32; | 1652 shift_ = p - 32; |
1653 } | 1653 } |
1654 | 1654 |
1655 } } // namespace v8::internal | 1655 } } // namespace v8::internal |
OLD | NEW |