| OLD | NEW |
| 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 | 334 |
| 335 byte* pos_; | 335 byte* pos_; |
| 336 byte* end_; | 336 byte* end_; |
| 337 RelocInfo rinfo_; | 337 RelocInfo rinfo_; |
| 338 bool done_; | 338 bool done_; |
| 339 int mode_mask_; | 339 int mode_mask_; |
| 340 DISALLOW_COPY_AND_ASSIGN(RelocIterator); | 340 DISALLOW_COPY_AND_ASSIGN(RelocIterator); |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 | 343 |
| 344 // A stack-allocated code region logs a name for the code generated | |
| 345 // while the region is in effect. This information is used by the | |
| 346 // profiler to categorize ticks within generated code. | |
| 347 class CodeRegion BASE_EMBEDDED { | |
| 348 public: | |
| 349 inline CodeRegion(Assembler* assm, const char *name) : assm_(assm) { | |
| 350 LOG(BeginCodeRegionEvent(this, assm, name)); | |
| 351 } | |
| 352 inline ~CodeRegion() { | |
| 353 LOG(EndCodeRegionEvent(this, assm_)); | |
| 354 } | |
| 355 private: | |
| 356 Assembler* assm_; | |
| 357 }; | |
| 358 | |
| 359 | |
| 360 //------------------------------------------------------------------------------ | 344 //------------------------------------------------------------------------------ |
| 361 // External function | 345 // External function |
| 362 | 346 |
| 363 //---------------------------------------------------------------------------- | 347 //---------------------------------------------------------------------------- |
| 364 class IC_Utility; | 348 class IC_Utility; |
| 365 class Debug_Address; | 349 class Debug_Address; |
| 366 class SCTableReference; | 350 class SCTableReference; |
| 367 | 351 |
| 368 // An ExternalReference represents a C++ address called from the generated | 352 // An ExternalReference represents a C++ address called from the generated |
| 369 // code. All references to C++ functions and must be encapsulated in an | 353 // code. All references to C++ functions and must be encapsulated in an |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 static inline bool is_uint4(int x) { return is_uintn(x, 4); } | 434 static inline bool is_uint4(int x) { return is_uintn(x, 4); } |
| 451 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 435 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
| 452 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 436 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
| 453 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 437 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
| 454 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 438 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
| 455 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 439 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
| 456 | 440 |
| 457 } } // namespace v8::internal | 441 } } // namespace v8::internal |
| 458 | 442 |
| 459 #endif // V8_ASSEMBLER_H_ | 443 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |