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

Side by Side Diff: src/assembler.cc

Issue 2645063002: includes: move Label out of assembler.h. (Closed)
Patch Set: oops Created 3 years, 11 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/assembler.h ('k') | src/ast/ast.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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 228 }
229 #endif 229 #endif
230 230
231 231
232 bool CpuFeatures::initialized_ = false; 232 bool CpuFeatures::initialized_ = false;
233 unsigned CpuFeatures::supported_ = 0; 233 unsigned CpuFeatures::supported_ = 0;
234 unsigned CpuFeatures::icache_line_size_ = 0; 234 unsigned CpuFeatures::icache_line_size_ = 0;
235 unsigned CpuFeatures::dcache_line_size_ = 0; 235 unsigned CpuFeatures::dcache_line_size_ = 0;
236 236
237 // ----------------------------------------------------------------------------- 237 // -----------------------------------------------------------------------------
238 // Implementation of Label
239
240 int Label::pos() const {
241 if (pos_ < 0) return -pos_ - 1;
242 if (pos_ > 0) return pos_ - 1;
243 UNREACHABLE();
244 return 0;
245 }
246
247
248 // -----------------------------------------------------------------------------
249 // Implementation of RelocInfoWriter and RelocIterator 238 // Implementation of RelocInfoWriter and RelocIterator
250 // 239 //
251 // Relocation information is written backwards in memory, from high addresses 240 // Relocation information is written backwards in memory, from high addresses
252 // towards low addresses, byte by byte. Therefore, in the encodings listed 241 // towards low addresses, byte by byte. Therefore, in the encodings listed
253 // below, the first byte listed it at the highest address, and successive 242 // below, the first byte listed it at the highest address, and successive
254 // bytes in the record are at progressively lower addresses. 243 // bytes in the record are at progressively lower addresses.
255 // 244 //
256 // Encoding 245 // Encoding
257 // 246 //
258 // The most common modes are given single-byte encodings. Also, it is 247 // The most common modes are given single-byte encodings. Also, it is
(...skipping 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 1925
1937 1926
1938 void Assembler::DataAlign(int m) { 1927 void Assembler::DataAlign(int m) {
1939 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1928 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1940 while ((pc_offset() & (m - 1)) != 0) { 1929 while ((pc_offset() & (m - 1)) != 0) {
1941 db(0); 1930 db(0);
1942 } 1931 }
1943 } 1932 }
1944 } // namespace internal 1933 } // namespace internal
1945 } // namespace v8 1934 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698