| 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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 | 328 |
| 329 byte* pos_; | 329 byte* pos_; |
| 330 byte* end_; | 330 byte* end_; |
| 331 RelocInfo rinfo_; | 331 RelocInfo rinfo_; |
| 332 bool done_; | 332 bool done_; |
| 333 int mode_mask_; | 333 int mode_mask_; |
| 334 DISALLOW_COPY_AND_ASSIGN(RelocIterator); | 334 DISALLOW_COPY_AND_ASSIGN(RelocIterator); |
| 335 }; | 335 }; |
| 336 | 336 |
| 337 | 337 |
| 338 // A stack-allocated code region logs a name for the code generated |
| 339 // while the region is in effect. This information is used by the |
| 340 // profiler to categorize ticks within generated code. |
| 341 class CodeRegion BASE_EMBEDDED { |
| 342 public: |
| 343 inline CodeRegion(Assembler* assm, const char *name) : assm_(assm) { |
| 344 LOG(BeginCodeRegionEvent(this, assm, name)); |
| 345 } |
| 346 inline ~CodeRegion() { |
| 347 LOG(EndCodeRegionEvent(this, assm_)); |
| 348 } |
| 349 private: |
| 350 Assembler* assm_; |
| 351 }; |
| 352 |
| 353 |
| 338 //------------------------------------------------------------------------------ | 354 //------------------------------------------------------------------------------ |
| 339 // External function | 355 // External function |
| 340 | 356 |
| 341 //---------------------------------------------------------------------------- | 357 //---------------------------------------------------------------------------- |
| 342 class IC_Utility; | 358 class IC_Utility; |
| 343 class Debug_Address; | 359 class Debug_Address; |
| 344 class SCTableReference; | 360 class SCTableReference; |
| 345 | 361 |
| 346 // An ExternalReference represents a C++ address called from the generated | 362 // An ExternalReference represents a C++ address called from the generated |
| 347 // code. All references to C++ functions and must be encapsulated in an | 363 // code. All references to C++ functions and must be encapsulated in an |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 static inline bool is_uint4(int x) { return is_uintn(x, 4); } | 439 static inline bool is_uint4(int x) { return is_uintn(x, 4); } |
| 424 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 440 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
| 425 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 441 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
| 426 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 442 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
| 427 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 443 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
| 428 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 444 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
| 429 | 445 |
| 430 } } // namespace v8::internal | 446 } } // namespace v8::internal |
| 431 | 447 |
| 432 #endif // V8_ASSEMBLER_H_ | 448 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |