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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // location of a stack frame as close as possible. The "statement position" is | 112 // location of a stack frame as close as possible. The "statement position" is |
113 // collected at the beginning at each statement, and is used to indicate | 113 // collected at the beginning at each statement, and is used to indicate |
114 // possible break locations. kNoPosition is used to indicate an | 114 // possible break locations. kNoPosition is used to indicate an |
115 // invalid/uninitialized position value. | 115 // invalid/uninitialized position value. |
116 static const int kNoPosition = -1; | 116 static const int kNoPosition = -1; |
117 | 117 |
118 enum Mode { | 118 enum Mode { |
119 // Please note the order is important (see IsCodeTarget, IsGCRelocMode). | 119 // Please note the order is important (see IsCodeTarget, IsGCRelocMode). |
120 CONSTRUCT_CALL, // code target that is a call to a JavaScript constructor. | 120 CONSTRUCT_CALL, // code target that is a call to a JavaScript constructor. |
121 CODE_TARGET_CONTEXT, // code target used for contextual loads. | 121 CODE_TARGET_CONTEXT, // code target used for contextual loads. |
| 122 DEBUG_BREAK, |
122 CODE_TARGET, // code target which is not any of the above. | 123 CODE_TARGET, // code target which is not any of the above. |
123 EMBEDDED_OBJECT, | 124 EMBEDDED_OBJECT, |
124 EMBEDDED_STRING, | 125 EMBEDDED_STRING, |
125 | 126 |
126 // Everything after runtime_entry (inclusive) is not GC'ed. | 127 // Everything after runtime_entry (inclusive) is not GC'ed. |
127 RUNTIME_ENTRY, | 128 RUNTIME_ENTRY, |
128 JS_RETURN, // Marks start of the ExitJSFrame code. | 129 JS_RETURN, // Marks start of the ExitJSFrame code. |
129 COMMENT, | 130 COMMENT, |
130 POSITION, // See comment for kNoPosition above. | 131 POSITION, // See comment for kNoPosition above. |
131 STATEMENT_POSITION, // See comment for kNoPosition above. | 132 STATEMENT_POSITION, // See comment for kNoPosition above. |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 unsigned int num_bits_set; | 533 unsigned int num_bits_set; |
533 for (num_bits_set = 0; x; x >>= 1) { | 534 for (num_bits_set = 0; x; x >>= 1) { |
534 num_bits_set += x & 1; | 535 num_bits_set += x & 1; |
535 } | 536 } |
536 return num_bits_set; | 537 return num_bits_set; |
537 } | 538 } |
538 | 539 |
539 } } // namespace v8::internal | 540 } } // namespace v8::internal |
540 | 541 |
541 #endif // V8_ASSEMBLER_H_ | 542 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |