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 7174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7185 | 7185 |
7186 void Code::Disassemble(const char* name, FILE* out) { | 7186 void Code::Disassemble(const char* name, FILE* out) { |
7187 PrintF(out, "kind = %s\n", Kind2String(kind())); | 7187 PrintF(out, "kind = %s\n", Kind2String(kind())); |
7188 if (is_inline_cache_stub()) { | 7188 if (is_inline_cache_stub()) { |
7189 PrintF(out, "ic_state = %s\n", ICState2String(ic_state())); | 7189 PrintF(out, "ic_state = %s\n", ICState2String(ic_state())); |
7190 PrintExtraICState(out, kind(), extra_ic_state()); | 7190 PrintExtraICState(out, kind(), extra_ic_state()); |
7191 PrintF(out, "ic_in_loop = %d\n", ic_in_loop() == IN_LOOP); | 7191 PrintF(out, "ic_in_loop = %d\n", ic_in_loop() == IN_LOOP); |
7192 if (ic_state() == MONOMORPHIC) { | 7192 if (ic_state() == MONOMORPHIC) { |
7193 PrintF(out, "type = %s\n", PropertyType2String(type())); | 7193 PrintF(out, "type = %s\n", PropertyType2String(type())); |
7194 } | 7194 } |
| 7195 if (is_call_stub() || is_keyed_call_stub()) { |
| 7196 PrintF(out, "argc = %d\n", arguments_count()); |
| 7197 } |
7195 } | 7198 } |
7196 if ((name != NULL) && (name[0] != '\0')) { | 7199 if ((name != NULL) && (name[0] != '\0')) { |
7197 PrintF(out, "name = %s\n", name); | 7200 PrintF(out, "name = %s\n", name); |
7198 } | 7201 } |
7199 if (kind() == OPTIMIZED_FUNCTION) { | 7202 if (kind() == OPTIMIZED_FUNCTION) { |
7200 PrintF(out, "stack_slots = %d\n", stack_slots()); | 7203 PrintF(out, "stack_slots = %d\n", stack_slots()); |
7201 } | 7204 } |
7202 | 7205 |
7203 PrintF(out, "Instructions (size = %d)\n", instruction_size()); | 7206 PrintF(out, "Instructions (size = %d)\n", instruction_size()); |
7204 Disassembler::Decode(out, this); | 7207 Disassembler::Decode(out, this); |
(...skipping 4445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11650 if (break_point_objects()->IsUndefined()) return 0; | 11653 if (break_point_objects()->IsUndefined()) return 0; |
11651 // Single beak point. | 11654 // Single beak point. |
11652 if (!break_point_objects()->IsFixedArray()) return 1; | 11655 if (!break_point_objects()->IsFixedArray()) return 1; |
11653 // Multiple break points. | 11656 // Multiple break points. |
11654 return FixedArray::cast(break_point_objects())->length(); | 11657 return FixedArray::cast(break_point_objects())->length(); |
11655 } | 11658 } |
11656 #endif | 11659 #endif |
11657 | 11660 |
11658 | 11661 |
11659 } } // namespace v8::internal | 11662 } } // namespace v8::internal |
OLD | NEW |