| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 26 matching lines...) Expand all Loading... |
| 37 #include "v8.h" | 37 #include "v8.h" |
| 38 | 38 |
| 39 #include "disassembler.h" | 39 #include "disassembler.h" |
| 40 #include "macro-assembler.h" | 40 #include "macro-assembler.h" |
| 41 #include "serialize.h" | 41 #include "serialize.h" |
| 42 | 42 |
| 43 namespace v8 { | 43 namespace v8 { |
| 44 namespace internal { | 44 namespace internal { |
| 45 | 45 |
| 46 // ----------------------------------------------------------------------------- | 46 // ----------------------------------------------------------------------------- |
| 47 // Implementation of Register | |
| 48 | |
| 49 Register eax = { 0 }; | |
| 50 Register ecx = { 1 }; | |
| 51 Register edx = { 2 }; | |
| 52 Register ebx = { 3 }; | |
| 53 Register esp = { 4 }; | |
| 54 Register ebp = { 5 }; | |
| 55 Register esi = { 6 }; | |
| 56 Register edi = { 7 }; | |
| 57 Register no_reg = { -1 }; | |
| 58 | |
| 59 XMMRegister xmm0 = { 0 }; | |
| 60 XMMRegister xmm1 = { 1 }; | |
| 61 XMMRegister xmm2 = { 2 }; | |
| 62 XMMRegister xmm3 = { 3 }; | |
| 63 XMMRegister xmm4 = { 4 }; | |
| 64 XMMRegister xmm5 = { 5 }; | |
| 65 XMMRegister xmm6 = { 6 }; | |
| 66 XMMRegister xmm7 = { 7 }; | |
| 67 | |
| 68 | |
| 69 // ----------------------------------------------------------------------------- | |
| 70 // Implementation of CpuFeatures | 47 // Implementation of CpuFeatures |
| 71 | 48 |
| 72 // Safe default is no features. | 49 // Safe default is no features. |
| 73 uint64_t CpuFeatures::supported_ = 0; | 50 uint64_t CpuFeatures::supported_ = 0; |
| 74 uint64_t CpuFeatures::enabled_ = 0; | 51 uint64_t CpuFeatures::enabled_ = 0; |
| 75 | 52 |
| 76 | 53 |
| 77 // The Probe method needs executable memory, so it uses Heap::CreateCode. | 54 // The Probe method needs executable memory, so it uses Heap::CreateCode. |
| 78 // Allocation failure is silent and leads to safe default. | 55 // Allocation failure is silent and leads to safe default. |
| 79 void CpuFeatures::Probe() { | 56 void CpuFeatures::Probe() { |
| (...skipping 2138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2218 push_insn[1] = 13; // Skip over coverage insns. | 2195 push_insn[1] = 13; // Skip over coverage insns. |
| 2219 if (coverage_log != NULL) { | 2196 if (coverage_log != NULL) { |
| 2220 fprintf(coverage_log, "%s\n", file_line); | 2197 fprintf(coverage_log, "%s\n", file_line); |
| 2221 fflush(coverage_log); | 2198 fflush(coverage_log); |
| 2222 } | 2199 } |
| 2223 } | 2200 } |
| 2224 | 2201 |
| 2225 #endif | 2202 #endif |
| 2226 | 2203 |
| 2227 } } // namespace v8::internal | 2204 } } // namespace v8::internal |
| OLD | NEW |