| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #if defined(__thumb__) && !defined(USE_THUMB_INTERWORK) | 49 #if defined(__thumb__) && !defined(USE_THUMB_INTERWORK) |
| 50 #error "flag -mthumb-interwork missing" | 50 #error "flag -mthumb-interwork missing" |
| 51 #endif | 51 #endif |
| 52 | 52 |
| 53 | 53 |
| 54 // We do not support thumb inter-working with an arm architecture not supporting | 54 // We do not support thumb inter-working with an arm architecture not supporting |
| 55 // the blx instruction (below v5t) | 55 // the blx instruction (below v5t) |
| 56 #if defined(USE_THUMB_INTERWORK) | 56 #if defined(USE_THUMB_INTERWORK) |
| 57 #if !defined(__ARM_ARCH_5T__) && \ | 57 #if !defined(__ARM_ARCH_5T__) && \ |
| 58 !defined(__ARM_ARCH_5TE__) && \ | 58 !defined(__ARM_ARCH_5TE__) && \ |
| 59 !defined(__ARM_ARCH_6__) && \ |
| 59 !defined(__ARM_ARCH_7A__) && \ | 60 !defined(__ARM_ARCH_7A__) && \ |
| 60 !defined(__ARM_ARCH_7__) | 61 !defined(__ARM_ARCH_7__) |
| 61 // add tests for other versions above v5t as required | 62 // add tests for other versions above v5t as required |
| 62 #error "for thumb inter-working we require architecture v5t or above" | 63 #error "for thumb inter-working we require architecture v5t or above" |
| 63 #endif | 64 #endif |
| 64 #endif | 65 #endif |
| 65 | 66 |
| 66 | 67 |
| 67 // Using blx may yield better code, so use it when required or when available | 68 // Using blx may yield better code, so use it when required or when available |
| 68 #if defined(USE_THUMB_INTERWORK) || defined(__ARM_ARCH_5__) | 69 #if defined(USE_THUMB_INTERWORK) || defined(__ARM_ARCH_5__) |
| (...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1146 mov(r0, Operand(p0)); | 1147 mov(r0, Operand(p0)); |
| 1147 push(r0); | 1148 push(r0); |
| 1148 mov(r0, Operand(Smi::FromInt(p1 - p0))); | 1149 mov(r0, Operand(Smi::FromInt(p1 - p0))); |
| 1149 push(r0); | 1150 push(r0); |
| 1150 CallRuntime(Runtime::kAbort, 2); | 1151 CallRuntime(Runtime::kAbort, 2); |
| 1151 // will not return here | 1152 // will not return here |
| 1152 } | 1153 } |
| 1153 | 1154 |
| 1154 | 1155 |
| 1155 } } // namespace v8::internal | 1156 } } // namespace v8::internal |
| OLD | NEW |