OLD | NEW |
1 // Copyright 2009-2010 the V8 project authors. All rights reserved. | 1 // Copyright 2009-2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 void Print(StringStream* accumulator) const; | 152 void Print(StringStream* accumulator) const; |
153 // Allows null clusters to be printed. | 153 // Allows null clusters to be printed. |
154 void DebugPrint(StringStream* accumulator) const; | 154 void DebugPrint(StringStream* accumulator) const; |
155 | 155 |
156 private: | 156 private: |
157 static String* FromSpecialCase(SpecialCase special) { | 157 static String* FromSpecialCase(SpecialCase special) { |
158 // We use symbols that are illegal JS identifiers to identify special cases. | 158 // We use symbols that are illegal JS identifiers to identify special cases. |
159 // Their actual value is irrelevant for us. | 159 // Their actual value is irrelevant for us. |
160 switch (special) { | 160 switch (special) { |
161 case ROOTS: return HEAP->result_symbol(); | 161 case ROOTS: return HEAP->result_symbol(); |
162 case GLOBAL_PROPERTY: return HEAP->code_symbol(); | 162 case GLOBAL_PROPERTY: return HEAP->catch_var_symbol(); |
163 case CODE: return HEAP->arguments_shadow_symbol(); | 163 case CODE: return HEAP->code_symbol(); |
164 case SELF: return HEAP->catch_var_symbol(); | 164 case SELF: return HEAP->this_symbol(); |
165 default: | 165 default: |
166 UNREACHABLE(); | 166 UNREACHABLE(); |
167 return NULL; | 167 return NULL; |
168 } | 168 } |
169 } | 169 } |
170 | 170 |
171 String* constructor_; | 171 String* constructor_; |
172 Object* instance_; | 172 Object* instance_; |
173 }; | 173 }; |
174 | 174 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 friend class Isolate; | 388 friend class Isolate; |
389 | 389 |
390 DISALLOW_COPY_AND_ASSIGN(ProducerHeapProfile); | 390 DISALLOW_COPY_AND_ASSIGN(ProducerHeapProfile); |
391 }; | 391 }; |
392 | 392 |
393 #endif // ENABLE_LOGGING_AND_PROFILING | 393 #endif // ENABLE_LOGGING_AND_PROFILING |
394 | 394 |
395 } } // namespace v8::internal | 395 } } // namespace v8::internal |
396 | 396 |
397 #endif // V8_HEAP_PROFILER_H_ | 397 #endif // V8_HEAP_PROFILER_H_ |
OLD | NEW |