Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: src/x64/assembler-x64.cc

Issue 650136: Declare register names as constants in assembler-x64.h. Fix for issue 615. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698