OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 7129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7140 PrintF(out, "extra_ic_state = %d\n", extra); | 7140 PrintF(out, "extra_ic_state = %d\n", extra); |
7141 } | 7141 } |
7142 } | 7142 } |
7143 | 7143 |
7144 | 7144 |
7145 void Code::Disassemble(const char* name, FILE* out) { | 7145 void Code::Disassemble(const char* name, FILE* out) { |
7146 PrintF(out, "kind = %s\n", Kind2String(kind())); | 7146 PrintF(out, "kind = %s\n", Kind2String(kind())); |
7147 if (is_inline_cache_stub()) { | 7147 if (is_inline_cache_stub()) { |
7148 PrintF(out, "ic_state = %s\n", ICState2String(ic_state())); | 7148 PrintF(out, "ic_state = %s\n", ICState2String(ic_state())); |
7149 PrintExtraICState(out, kind(), extra_ic_state()); | 7149 PrintExtraICState(out, kind(), extra_ic_state()); |
7150 PrintF(out, "ic_in_loop = %d\n", ic_in_loop() == IN_LOOP); | |
7151 if (ic_state() == MONOMORPHIC) { | 7150 if (ic_state() == MONOMORPHIC) { |
7152 PrintF(out, "type = %s\n", PropertyType2String(type())); | 7151 PrintF(out, "type = %s\n", PropertyType2String(type())); |
7153 } | 7152 } |
7154 if (is_call_stub() || is_keyed_call_stub()) { | 7153 if (is_call_stub() || is_keyed_call_stub()) { |
7155 PrintF(out, "argc = %d\n", arguments_count()); | 7154 PrintF(out, "argc = %d\n", arguments_count()); |
7156 } | 7155 } |
7157 } | 7156 } |
7158 if ((name != NULL) && (name[0] != '\0')) { | 7157 if ((name != NULL) && (name[0] != '\0')) { |
7159 PrintF(out, "name = %s\n", name); | 7158 PrintF(out, "name = %s\n", name); |
7160 } | 7159 } |
(...skipping 4412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11573 if (break_point_objects()->IsUndefined()) return 0; | 11572 if (break_point_objects()->IsUndefined()) return 0; |
11574 // Single break point. | 11573 // Single break point. |
11575 if (!break_point_objects()->IsFixedArray()) return 1; | 11574 if (!break_point_objects()->IsFixedArray()) return 1; |
11576 // Multiple break points. | 11575 // Multiple break points. |
11577 return FixedArray::cast(break_point_objects())->length(); | 11576 return FixedArray::cast(break_point_objects())->length(); |
11578 } | 11577 } |
11579 #endif | 11578 #endif |
11580 | 11579 |
11581 | 11580 |
11582 } } // namespace v8::internal | 11581 } } // namespace v8::internal |
OLD | NEW |