OLD | NEW |
---|---|
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 15 matching lines...) Expand all Loading... | |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #include "v8.h" | 28 #include "v8.h" |
29 | 29 |
30 #include "accessors.h" | 30 #include "accessors.h" |
31 #include "allocation-site-scopes.h" | 31 #include "allocation-site-scopes.h" |
32 #include "api.h" | 32 #include "api.h" |
33 #include "arguments.h" | 33 #include "arguments.h" |
34 #include "bootstrapper.h" | 34 #include "bootstrapper.h" |
35 #include "codegen.h" | 35 #include "codegen.h" |
36 #include "code-stubs.h" | |
36 #include "cpu-profiler.h" | 37 #include "cpu-profiler.h" |
37 #include "debug.h" | 38 #include "debug.h" |
38 #include "deoptimizer.h" | 39 #include "deoptimizer.h" |
39 #include "date.h" | 40 #include "date.h" |
40 #include "elements.h" | 41 #include "elements.h" |
41 #include "execution.h" | 42 #include "execution.h" |
42 #include "full-codegen.h" | 43 #include "full-codegen.h" |
43 #include "hydrogen.h" | 44 #include "hydrogen.h" |
44 #include "isolate-inl.h" | 45 #include "isolate-inl.h" |
45 #include "log.h" | 46 #include "log.h" |
(...skipping 11082 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
11128 if (name != NULL) { | 11129 if (name != NULL) { |
11129 PrintF(out, "%s\n", name); | 11130 PrintF(out, "%s\n", name); |
11130 } else { | 11131 } else { |
11131 PrintF(out, "%d\n", extra); | 11132 PrintF(out, "%d\n", extra); |
11132 } | 11133 } |
11133 } | 11134 } |
11134 | 11135 |
11135 | 11136 |
11136 void Code::Disassemble(const char* name, FILE* out) { | 11137 void Code::Disassemble(const char* name, FILE* out) { |
11137 PrintF(out, "kind = %s\n", Kind2String(kind())); | 11138 PrintF(out, "kind = %s\n", Kind2String(kind())); |
11139 if (has_major_key()) { | |
11140 PrintF(out, "major_key = %s\n", | |
11141 CodeStub::MajorName(CodeStub::GetMajorKey(this), true)); | |
Jakob Kummerow
2013/11/21 15:52:14
nit: indentation (align 'CodeStub' with 'out')
Igor Sheludko
2013/11/21 16:54:58
Done.
| |
11142 } | |
11138 if (is_inline_cache_stub()) { | 11143 if (is_inline_cache_stub()) { |
11139 PrintF(out, "ic_state = %s\n", ICState2String(ic_state())); | 11144 PrintF(out, "ic_state = %s\n", ICState2String(ic_state())); |
11140 PrintExtraICState(out, kind(), needs_extended_extra_ic_state(kind()) ? | 11145 PrintExtraICState(out, kind(), needs_extended_extra_ic_state(kind()) ? |
11141 extended_extra_ic_state() : extra_ic_state()); | 11146 extended_extra_ic_state() : extra_ic_state()); |
11142 if (ic_state() == MONOMORPHIC) { | 11147 if (ic_state() == MONOMORPHIC) { |
11143 PrintF(out, "type = %s\n", StubType2String(type())); | 11148 PrintF(out, "type = %s\n", StubType2String(type())); |
11144 } | 11149 } |
11145 if (is_call_stub() || is_keyed_call_stub()) { | 11150 if (is_call_stub() || is_keyed_call_stub()) { |
11146 PrintF(out, "argc = %d\n", arguments_count()); | 11151 PrintF(out, "argc = %d\n", arguments_count()); |
11147 } | 11152 } |
(...skipping 5520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
16668 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16673 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16669 static const char* error_messages_[] = { | 16674 static const char* error_messages_[] = { |
16670 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16675 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16671 }; | 16676 }; |
16672 #undef ERROR_MESSAGES_TEXTS | 16677 #undef ERROR_MESSAGES_TEXTS |
16673 return error_messages_[reason]; | 16678 return error_messages_[reason]; |
16674 } | 16679 } |
16675 | 16680 |
16676 | 16681 |
16677 } } // namespace v8::internal | 16682 } } // namespace v8::internal |
OLD | NEW |