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

Side by Side Diff: src/arm/constants-arm.h

Issue 500095: As a first step towards implementing thumb2, add code for... Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 // reference to an instruction is to convert a pointer. There is no way 304 // reference to an instruction is to convert a pointer. There is no way
305 // to allocate or create instances of class Instr. 305 // to allocate or create instances of class Instr.
306 // Use the At(pc) function to create references to Instr. 306 // Use the At(pc) function to create references to Instr.
307 static Instr* At(byte* pc) { return reinterpret_cast<Instr*>(pc); } 307 static Instr* At(byte* pc) { return reinterpret_cast<Instr*>(pc); }
308 308
309 private: 309 private:
310 // We need to prevent the creation of instances of class Instr. 310 // We need to prevent the creation of instances of class Instr.
311 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr); 311 DISALLOW_IMPLICIT_CONSTRUCTORS(Instr);
312 }; 312 };
313 313
314 class ThumbInstr {
315 };
314 316
315 // Helper functions for converting between register numbers and names. 317 // Helper functions for converting between register numbers and names.
316 class Registers { 318 class Registers {
317 public: 319 public:
318 // Return the name of the register. 320 // Return the name of the register.
319 static const char* Name(int reg); 321 static const char* Name(int reg);
320 322
321 // Lookup the register number for the name provided. 323 // Lookup the register number for the name provided.
322 static int Number(const char* name); 324 static int Number(const char* name);
323 325
(...skipping 14 matching lines...) Expand all
338 static const char* Name(int reg); 340 static const char* Name(int reg);
339 341
340 private: 342 private:
341 static const char* names_[kNumVFPRegisters]; 343 static const char* names_[kNumVFPRegisters];
342 }; 344 };
343 345
344 346
345 } } // namespace assembler::arm 347 } } // namespace assembler::arm
346 348
347 #endif // V8_ARM_CONSTANTS_ARM_H_ 349 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698