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 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 void AdvanceReadData(); | 412 void AdvanceReadData(); |
413 void AdvanceReadVariableLengthPCJump(); | 413 void AdvanceReadVariableLengthPCJump(); |
414 int GetPositionTypeTag(); | 414 int GetPositionTypeTag(); |
415 void ReadTaggedData(); | 415 void ReadTaggedData(); |
416 | 416 |
417 static RelocInfo::Mode DebugInfoModeFromTag(int tag); | 417 static RelocInfo::Mode DebugInfoModeFromTag(int tag); |
418 | 418 |
419 // If the given mode is wanted, set it in rinfo_ and return true. | 419 // If the given mode is wanted, set it in rinfo_ and return true. |
420 // Else return false. Used for efficiently skipping unwanted modes. | 420 // Else return false. Used for efficiently skipping unwanted modes. |
421 bool SetMode(RelocInfo::Mode mode) { | 421 bool SetMode(RelocInfo::Mode mode) { |
422 return (mode_mask_ & 1 << mode) ? (rinfo_.rmode_ = mode, true) : false; | 422 return (mode_mask_ & (1 << mode)) ? (rinfo_.rmode_ = mode, true) : false; |
423 } | 423 } |
424 | 424 |
425 byte* pos_; | 425 byte* pos_; |
426 byte* end_; | 426 byte* end_; |
427 RelocInfo rinfo_; | 427 RelocInfo rinfo_; |
428 bool done_; | 428 bool done_; |
429 int mode_mask_; | 429 int mode_mask_; |
430 DISALLOW_COPY_AND_ASSIGN(RelocIterator); | 430 DISALLOW_COPY_AND_ASSIGN(RelocIterator); |
431 }; | 431 }; |
432 | 432 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 unsigned int num_bits_set; | 678 unsigned int num_bits_set; |
679 for (num_bits_set = 0; x; x >>= 1) { | 679 for (num_bits_set = 0; x; x >>= 1) { |
680 num_bits_set += x & 1; | 680 num_bits_set += x & 1; |
681 } | 681 } |
682 return num_bits_set; | 682 return num_bits_set; |
683 } | 683 } |
684 | 684 |
685 } } // namespace v8::internal | 685 } } // namespace v8::internal |
686 | 686 |
687 #endif // V8_ASSEMBLER_H_ | 687 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |