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

Side by Side Diff: src/ia32/assembler-ia32.h

Issue 2101473002: [Turbofan] Allow compiler to elide complex aliasing code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 5 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
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Unfortunately we can't make this private in a struct. 143 // Unfortunately we can't make this private in a struct.
144 int reg_code; 144 int reg_code;
145 }; 145 };
146 146
147 147
148 #define DECLARE_REGISTER(R) const Register R = {Register::kCode_##R}; 148 #define DECLARE_REGISTER(R) const Register R = {Register::kCode_##R};
149 GENERAL_REGISTERS(DECLARE_REGISTER) 149 GENERAL_REGISTERS(DECLARE_REGISTER)
150 #undef DECLARE_REGISTER 150 #undef DECLARE_REGISTER
151 const Register no_reg = {Register::kCode_no_reg}; 151 const Register no_reg = {Register::kCode_no_reg};
152 152
153 static const bool kSimpleFPAliasing = true;
154
153 struct XMMRegister { 155 struct XMMRegister {
154 enum Code { 156 enum Code {
155 #define REGISTER_CODE(R) kCode_##R, 157 #define REGISTER_CODE(R) kCode_##R,
156 DOUBLE_REGISTERS(REGISTER_CODE) 158 DOUBLE_REGISTERS(REGISTER_CODE)
157 #undef REGISTER_CODE 159 #undef REGISTER_CODE
158 kAfterLast, 160 kAfterLast,
159 kCode_no_reg = -1 161 kCode_no_reg = -1
160 }; 162 };
161 163
162 static const int kMaxNumRegisters = Code::kAfterLast; 164 static const int kMaxNumRegisters = Code::kAfterLast;
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 Assembler* assembler_; 1611 Assembler* assembler_;
1610 #ifdef DEBUG 1612 #ifdef DEBUG
1611 int space_before_; 1613 int space_before_;
1612 #endif 1614 #endif
1613 }; 1615 };
1614 1616
1615 } // namespace internal 1617 } // namespace internal
1616 } // namespace v8 1618 } // namespace v8
1617 1619
1618 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1620 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698