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 14 matching lines...) Expand all Loading... |
25 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 25 // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
26 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | 26 // PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF |
27 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | 27 // LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
28 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 28 // NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
29 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
30 | 30 |
31 // The original source code covered by the above license above has been | 31 // The original source code covered by the above license above has been |
32 // modified significantly by Google Inc. | 32 // modified significantly by Google Inc. |
33 // Copyright 2012 the V8 project authors. All rights reserved. | 33 // Copyright 2012 the V8 project authors. All rights reserved. |
34 | 34 |
35 #include "assembler.h" | 35 #include "src/assembler.h" |
36 | 36 |
37 #include <cmath> | 37 #include <cmath> |
38 #include "api.h" | 38 #include "src/api.h" |
39 #include "builtins.h" | 39 #include "src/builtins.h" |
40 #include "counters.h" | 40 #include "src/counters.h" |
41 #include "cpu.h" | 41 #include "src/cpu.h" |
42 #include "cpu-profiler.h" | 42 #include "src/cpu-profiler.h" |
43 #include "debug.h" | 43 #include "src/debug.h" |
44 #include "deoptimizer.h" | 44 #include "src/deoptimizer.h" |
45 #include "execution.h" | 45 #include "src/execution.h" |
46 #include "ic.h" | 46 #include "src/ic.h" |
47 #include "isolate-inl.h" | 47 #include "src/isolate-inl.h" |
48 #include "jsregexp.h" | 48 #include "src/jsregexp.h" |
49 #include "lazy-instance.h" | 49 #include "src/lazy-instance.h" |
50 #include "platform.h" | 50 #include "src/platform.h" |
51 #include "regexp-macro-assembler.h" | 51 #include "src/regexp-macro-assembler.h" |
52 #include "regexp-stack.h" | 52 #include "src/regexp-stack.h" |
53 #include "runtime.h" | 53 #include "src/runtime.h" |
54 #include "serialize.h" | 54 #include "src/serialize.h" |
55 #include "store-buffer-inl.h" | 55 #include "src/store-buffer-inl.h" |
56 #include "stub-cache.h" | 56 #include "src/stub-cache.h" |
57 #include "token.h" | 57 #include "src/token.h" |
58 | 58 |
59 #if V8_TARGET_ARCH_IA32 | 59 #if V8_TARGET_ARCH_IA32 |
60 #include "ia32/assembler-ia32-inl.h" | 60 #include "src/ia32/assembler-ia32-inl.h" |
61 #elif V8_TARGET_ARCH_X64 | 61 #elif V8_TARGET_ARCH_X64 |
62 #include "x64/assembler-x64-inl.h" | 62 #include "src/x64/assembler-x64-inl.h" |
63 #elif V8_TARGET_ARCH_ARM64 | 63 #elif V8_TARGET_ARCH_ARM64 |
64 #include "arm64/assembler-arm64-inl.h" | 64 #include "src/arm64/assembler-arm64-inl.h" |
65 #elif V8_TARGET_ARCH_ARM | 65 #elif V8_TARGET_ARCH_ARM |
66 #include "arm/assembler-arm-inl.h" | 66 #include "src/arm/assembler-arm-inl.h" |
67 #elif V8_TARGET_ARCH_MIPS | 67 #elif V8_TARGET_ARCH_MIPS |
68 #include "mips/assembler-mips-inl.h" | 68 #include "src/mips/assembler-mips-inl.h" |
69 #elif V8_TARGET_ARCH_X87 | 69 #elif V8_TARGET_ARCH_X87 |
70 #include "x87/assembler-x87-inl.h" | 70 #include "src/x87/assembler-x87-inl.h" |
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 "ia32/regexp-macro-assembler-ia32.h" | 78 #include "src/ia32/regexp-macro-assembler-ia32.h" |
79 #elif V8_TARGET_ARCH_X64 | 79 #elif V8_TARGET_ARCH_X64 |
80 #include "x64/regexp-macro-assembler-x64.h" | 80 #include "src/x64/regexp-macro-assembler-x64.h" |
81 #elif V8_TARGET_ARCH_ARM64 | 81 #elif V8_TARGET_ARCH_ARM64 |
82 #include "arm64/regexp-macro-assembler-arm64.h" | 82 #include "src/arm64/regexp-macro-assembler-arm64.h" |
83 #elif V8_TARGET_ARCH_ARM | 83 #elif V8_TARGET_ARCH_ARM |
84 #include "arm/regexp-macro-assembler-arm.h" | 84 #include "src/arm/regexp-macro-assembler-arm.h" |
85 #elif V8_TARGET_ARCH_MIPS | 85 #elif V8_TARGET_ARCH_MIPS |
86 #include "mips/regexp-macro-assembler-mips.h" | 86 #include "src/mips/regexp-macro-assembler-mips.h" |
87 #elif V8_TARGET_ARCH_X87 | 87 #elif V8_TARGET_ARCH_X87 |
88 #include "x87/regexp-macro-assembler-x87.h" | 88 #include "src/x87/regexp-macro-assembler-x87.h" |
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 |