OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
(...skipping 11370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11381 } | 11381 } |
11382 if ((name != NULL) && (name[0] != '\0')) { | 11382 if ((name != NULL) && (name[0] != '\0')) { |
11383 os << "name = " << name << "\n"; | 11383 os << "name = " << name << "\n"; |
11384 } | 11384 } |
11385 if (kind() == OPTIMIZED_FUNCTION) { | 11385 if (kind() == OPTIMIZED_FUNCTION) { |
11386 os << "stack_slots = " << stack_slots() << "\n"; | 11386 os << "stack_slots = " << stack_slots() << "\n"; |
11387 } | 11387 } |
11388 | 11388 |
11389 os << "Instructions (size = " << instruction_size() << ")\n"; | 11389 os << "Instructions (size = " << instruction_size() << ")\n"; |
11390 // TODO(svenpanne) The Disassembler should use streams, too! | 11390 // TODO(svenpanne) The Disassembler should use streams, too! |
11391 Disassembler::Decode(stdout, this); | 11391 { |
| 11392 CodeTracer::Scope trace_scope(GetIsolate()->GetCodeTracer()); |
| 11393 Disassembler::Decode(trace_scope.file(), this); |
| 11394 } |
11392 os << "\n"; | 11395 os << "\n"; |
11393 | 11396 |
11394 if (kind() == FUNCTION) { | 11397 if (kind() == FUNCTION) { |
11395 DeoptimizationOutputData* data = | 11398 DeoptimizationOutputData* data = |
11396 DeoptimizationOutputData::cast(this->deoptimization_data()); | 11399 DeoptimizationOutputData::cast(this->deoptimization_data()); |
11397 data->DeoptimizationOutputDataPrint(os); | 11400 data->DeoptimizationOutputDataPrint(os); |
11398 } else if (kind() == OPTIMIZED_FUNCTION) { | 11401 } else if (kind() == OPTIMIZED_FUNCTION) { |
11399 DeoptimizationInputData* data = | 11402 DeoptimizationInputData* data = |
11400 DeoptimizationInputData::cast(this->deoptimization_data()); | 11403 DeoptimizationInputData::cast(this->deoptimization_data()); |
11401 data->DeoptimizationInputDataPrint(os); | 11404 data->DeoptimizationInputDataPrint(os); |
(...skipping 5496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16898 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16901 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16899 static const char* error_messages_[] = { | 16902 static const char* error_messages_[] = { |
16900 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16903 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16901 }; | 16904 }; |
16902 #undef ERROR_MESSAGES_TEXTS | 16905 #undef ERROR_MESSAGES_TEXTS |
16903 return error_messages_[reason]; | 16906 return error_messages_[reason]; |
16904 } | 16907 } |
16905 | 16908 |
16906 | 16909 |
16907 } } // namespace v8::internal | 16910 } } // namespace v8::internal |
OLD | NEW |