Chromium Code Reviews| 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 375 | 375 |
| 376 byte* pos_; | 376 byte* pos_; |
| 377 byte* end_; | 377 byte* end_; |
| 378 RelocInfo rinfo_; | 378 RelocInfo rinfo_; |
| 379 bool done_; | 379 bool done_; |
| 380 int mode_mask_; | 380 int mode_mask_; |
| 381 DISALLOW_COPY_AND_ASSIGN(RelocIterator); | 381 DISALLOW_COPY_AND_ASSIGN(RelocIterator); |
| 382 }; | 382 }; |
| 383 | 383 |
| 384 | 384 |
| 385 // A stack-allocated code region logs a name for the code generated | |
| 386 // while the region is in effect. This information is used by the | |
| 387 // profiler to categorize ticks within generated code. | |
| 388 class CodeRegion BASE_EMBEDDED { | |
| 389 public: | |
| 390 inline CodeRegion(Assembler* assm, const char *name) : assm_(assm) { | |
|
Mads Ager (chromium)
2008/12/19 12:44:01
Nit: I think we have used asm as the abbreviation
Christian Plesner Hansen
2008/12/19 13:22:06
I doubt is: 'asm' is a keyword.
| |
| 391 LOG(BeginCodeRegionEvent(this, assm, name)); | |
| 392 } | |
| 393 inline ~CodeRegion() { | |
| 394 LOG(EndCodeRegionEvent(this, assm_)); | |
| 395 } | |
| 396 private: | |
| 397 Assembler* assm_; | |
| 398 }; | |
| 399 | |
| 400 | |
| 385 //------------------------------------------------------------------------------ | 401 //------------------------------------------------------------------------------ |
| 386 // External function | 402 // External function |
| 387 | 403 |
| 388 //---------------------------------------------------------------------------- | 404 //---------------------------------------------------------------------------- |
| 389 class IC_Utility; | 405 class IC_Utility; |
| 390 class Debug_Address; | 406 class Debug_Address; |
| 391 class SCTableReference; | 407 class SCTableReference; |
| 392 | 408 |
| 393 // An ExternalReference represents a C++ address called from the generated | 409 // An ExternalReference represents a C++ address called from the generated |
| 394 // code. All references to C++ functions and must be encapsulated in an | 410 // 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... | |
| 470 static inline bool is_uint4(int x) { return is_uintn(x, 4); } | 486 static inline bool is_uint4(int x) { return is_uintn(x, 4); } |
| 471 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 487 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
| 472 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 488 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
| 473 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 489 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
| 474 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 490 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
| 475 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 491 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
| 476 | 492 |
| 477 } } // namespace v8::internal | 493 } } // namespace v8::internal |
| 478 | 494 |
| 479 #endif // V8_ASSEMBLER_H_ | 495 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |