| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 14 matching lines...) Expand all Loading... |
| 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | 27 |
| 28 #include "v8.h" | 28 #include "v8.h" |
| 29 | 29 |
| 30 #include "macro-assembler.h" | 30 #include "macro-assembler.h" |
| 31 | 31 |
| 32 namespace v8 { | 32 namespace v8 { |
| 33 namespace internal { | 33 namespace internal { |
| 34 | 34 |
| 35 Register no_reg = { -1 }; | 35 // ----------------------------------------------------------------------------- |
| 36 // Implementation of Register |
| 37 |
| 36 Register rax = { 0 }; | 38 Register rax = { 0 }; |
| 37 Register rcx = { 1 }; | 39 Register rcx = { 1 }; |
| 38 Register rsi = { 7 }; | 40 Register rdx = { 2 }; |
| 41 Register rbx = { 3 }; |
| 42 Register rsp = { 4 }; |
| 43 Register rbp = { 5 }; |
| 44 Register rsi = { 6 }; |
| 45 Register rdi = { 7 }; |
| 46 Register r8 = { 8 }; |
| 47 Register r9 = { 9 }; |
| 48 Register r10 = { 10 }; |
| 49 Register r11 = { 11 }; |
| 50 Register r12 = { 12 }; |
| 51 Register r13 = { 13 }; |
| 52 Register r14 = { 14 }; |
| 53 Register r15 = { 15 }; |
| 39 | 54 |
| 55 Register no_reg = { -1 }; |
| 56 |
| 57 XMMRegister xmm0 = { 0 }; |
| 58 XMMRegister xmm1 = { 1 }; |
| 59 XMMRegister xmm2 = { 2 }; |
| 60 XMMRegister xmm3 = { 3 }; |
| 61 XMMRegister xmm4 = { 4 }; |
| 62 XMMRegister xmm5 = { 5 }; |
| 63 XMMRegister xmm6 = { 6 }; |
| 64 XMMRegister xmm7 = { 7 }; |
| 65 XMMRegister xmm8 = { 8 }; |
| 66 XMMRegister xmm9 = { 9 }; |
| 67 XMMRegister xmm10 = { 10 }; |
| 68 XMMRegister xmm11 = { 11 }; |
| 69 XMMRegister xmm12 = { 12 }; |
| 70 XMMRegister xmm13 = { 13 }; |
| 71 XMMRegister xmm14 = { 14 }; |
| 72 XMMRegister xmm15 = { 15 }; |
| 40 | 73 |
| 41 // Safe default is no features. | 74 // Safe default is no features. |
| 42 uint64_t CpuFeatures::supported_ = 0; | 75 uint64_t CpuFeatures::supported_ = 0; |
| 43 uint64_t CpuFeatures::enabled_ = 0; | 76 uint64_t CpuFeatures::enabled_ = 0; |
| 44 | 77 |
| 45 void CpuFeatures::Probe() { | 78 void CpuFeatures::Probe() { |
| 46 // TODO(X64): UNIMPLEMENTED | 79 // TODO(X64): UNIMPLEMENTED |
| 47 } | 80 } |
| 48 | 81 |
| 49 // ----------------------------------------------------------------------------- | 82 // ----------------------------------------------------------------------------- |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 669 UNIMPLEMENTED(); | 702 UNIMPLEMENTED(); |
| 670 return NULL; | 703 return NULL; |
| 671 } | 704 } |
| 672 | 705 |
| 673 byte* JavaScriptFrame::GetCallerStackPointer() const { | 706 byte* JavaScriptFrame::GetCallerStackPointer() const { |
| 674 UNIMPLEMENTED(); | 707 UNIMPLEMENTED(); |
| 675 return NULL; | 708 return NULL; |
| 676 } | 709 } |
| 677 | 710 |
| 678 } } // namespace v8::internal | 711 } } // namespace v8::internal |
| OLD | NEW |