Chromium Code Reviews| 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 16 matching lines...) Expand all Loading... | |
| 27 | 27 |
| 28 #include "v8.h" | 28 #include "v8.h" |
| 29 | 29 |
| 30 #include "macro-assembler.h" | 30 #include "macro-assembler.h" |
| 31 #include "serialize.h" | 31 #include "serialize.h" |
| 32 | 32 |
| 33 namespace v8 { | 33 namespace v8 { |
| 34 namespace internal { | 34 namespace internal { |
| 35 | 35 |
| 36 // ----------------------------------------------------------------------------- | 36 // ----------------------------------------------------------------------------- |
| 37 // Implementation of Register | |
| 38 | |
| 39 Register rax = { 0 }; | |
|
Lasse Reichstein
2010/02/22 11:36:40
Are you sure we shouldn't still have a definition
William Hesse
2010/02/22 11:41:08
Yes. Those weren't class static members, they wer
| |
| 40 Register rcx = { 1 }; | |
| 41 Register rdx = { 2 }; | |
| 42 Register rbx = { 3 }; | |
| 43 Register rsp = { 4 }; | |
| 44 Register rbp = { 5 }; | |
| 45 Register rsi = { 6 }; | |
| 46 Register rdi = { 7 }; | |
| 47 Register r8 = { 8 }; | |
| 48 Register r9 = { 9 }; | |
| 49 Register r10 = { 10 }; | |
| 50 Register r11 = { 11 }; | |
| 51 Register r12 = { 12 }; | |
| 52 Register r13 = { 13 }; | |
| 53 Register r14 = { 14 }; | |
| 54 Register r15 = { 15 }; | |
| 55 | |
| 56 Register no_reg = { -1 }; | |
| 57 | |
| 58 XMMRegister xmm0 = { 0 }; | |
| 59 XMMRegister xmm1 = { 1 }; | |
| 60 XMMRegister xmm2 = { 2 }; | |
| 61 XMMRegister xmm3 = { 3 }; | |
| 62 XMMRegister xmm4 = { 4 }; | |
| 63 XMMRegister xmm5 = { 5 }; | |
| 64 XMMRegister xmm6 = { 6 }; | |
| 65 XMMRegister xmm7 = { 7 }; | |
| 66 XMMRegister xmm8 = { 8 }; | |
| 67 XMMRegister xmm9 = { 9 }; | |
| 68 XMMRegister xmm10 = { 10 }; | |
| 69 XMMRegister xmm11 = { 11 }; | |
| 70 XMMRegister xmm12 = { 12 }; | |
| 71 XMMRegister xmm13 = { 13 }; | |
| 72 XMMRegister xmm14 = { 14 }; | |
| 73 XMMRegister xmm15 = { 15 }; | |
| 74 | |
| 75 | |
| 76 // ----------------------------------------------------------------------------- | |
| 77 // Implementation of CpuFeatures | 37 // Implementation of CpuFeatures |
| 78 | 38 |
| 79 // The required user mode extensions in X64 are (from AMD64 ABI Table A.1): | 39 // The required user mode extensions in X64 are (from AMD64 ABI Table A.1): |
| 80 // fpu, tsc, cx8, cmov, mmx, sse, sse2, fxsr, syscall | 40 // fpu, tsc, cx8, cmov, mmx, sse, sse2, fxsr, syscall |
| 81 uint64_t CpuFeatures::supported_ = kDefaultCpuFeatures; | 41 uint64_t CpuFeatures::supported_ = kDefaultCpuFeatures; |
| 82 uint64_t CpuFeatures::enabled_ = 0; | 42 uint64_t CpuFeatures::enabled_ = 0; |
| 83 uint64_t CpuFeatures::found_by_runtime_probing_ = 0; | 43 uint64_t CpuFeatures::found_by_runtime_probing_ = 0; |
| 84 | 44 |
| 85 void CpuFeatures::Probe() { | 45 void CpuFeatures::Probe() { |
| 86 ASSERT(Heap::HasBeenSetup()); | 46 ASSERT(Heap::HasBeenSetup()); |
| (...skipping 2541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2628 written_position_ = current_position_; | 2588 written_position_ = current_position_; |
| 2629 } | 2589 } |
| 2630 } | 2590 } |
| 2631 | 2591 |
| 2632 | 2592 |
| 2633 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | | 2593 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | |
| 2634 1 << RelocInfo::INTERNAL_REFERENCE | | 2594 1 << RelocInfo::INTERNAL_REFERENCE | |
| 2635 1 << RelocInfo::JS_RETURN; | 2595 1 << RelocInfo::JS_RETURN; |
| 2636 | 2596 |
| 2637 } } // namespace v8::internal | 2597 } } // namespace v8::internal |
| OLD | NEW |