Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: src/objects.cc

Issue 458533002: Fix disassembly redirection from stdout into a file. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: switch to reversible escaping Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | src/ostreams.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10911 matching lines...) Expand 10 before | Expand all | Expand 10 after
10922 } 10922 }
10923 if ((name != NULL) && (name[0] != '\0')) { 10923 if ((name != NULL) && (name[0] != '\0')) {
10924 os << "name = " << name << "\n"; 10924 os << "name = " << name << "\n";
10925 } 10925 }
10926 if (kind() == OPTIMIZED_FUNCTION) { 10926 if (kind() == OPTIMIZED_FUNCTION) {
10927 os << "stack_slots = " << stack_slots() << "\n"; 10927 os << "stack_slots = " << stack_slots() << "\n";
10928 } 10928 }
10929 10929
10930 os << "Instructions (size = " << instruction_size() << ")\n"; 10930 os << "Instructions (size = " << instruction_size() << ")\n";
10931 // TODO(svenpanne) The Disassembler should use streams, too! 10931 // TODO(svenpanne) The Disassembler should use streams, too!
10932 Disassembler::Decode(stdout, this); 10932 {
10933 CodeTracer::Scope trace_scope(GetIsolate()->GetCodeTracer());
10934 Disassembler::Decode(trace_scope.file(), this);
10935 }
10933 os << "\n"; 10936 os << "\n";
10934 10937
10935 if (kind() == FUNCTION) { 10938 if (kind() == FUNCTION) {
10936 DeoptimizationOutputData* data = 10939 DeoptimizationOutputData* data =
10937 DeoptimizationOutputData::cast(this->deoptimization_data()); 10940 DeoptimizationOutputData::cast(this->deoptimization_data());
10938 data->DeoptimizationOutputDataPrint(os); 10941 data->DeoptimizationOutputDataPrint(os);
10939 } else if (kind() == OPTIMIZED_FUNCTION) { 10942 } else if (kind() == OPTIMIZED_FUNCTION) {
10940 DeoptimizationInputData* data = 10943 DeoptimizationInputData* data =
10941 DeoptimizationInputData::cast(this->deoptimization_data()); 10944 DeoptimizationInputData::cast(this->deoptimization_data());
10942 data->DeoptimizationInputDataPrint(os); 10945 data->DeoptimizationInputDataPrint(os);
(...skipping 5485 matching lines...) Expand 10 before | Expand all | Expand 10 after
16428 #define ERROR_MESSAGES_TEXTS(C, T) T, 16431 #define ERROR_MESSAGES_TEXTS(C, T) T,
16429 static const char* error_messages_[] = { 16432 static const char* error_messages_[] = {
16430 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16433 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16431 }; 16434 };
16432 #undef ERROR_MESSAGES_TEXTS 16435 #undef ERROR_MESSAGES_TEXTS
16433 return error_messages_[reason]; 16436 return error_messages_[reason];
16434 } 16437 }
16435 16438
16436 16439
16437 } } // namespace v8::internal 16440 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ostreams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698