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

Side by Side Diff: src/interpreter/interpreter-generator.cc

Issue 2771503004: [interpreter] Print bytecode handlers name with --trace-ignition-codegen (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 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/interpreter/interpreter-generator.h" 5 #include "src/interpreter/interpreter-generator.h"
6 6
7 #include <array> 7 #include <array>
8 #include <tuple> 8 #include <tuple>
9 9
10 #include "src/builtins/builtins-arguments-gen.h" 10 #include "src/builtins/builtins-arguments-gen.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 148
149 Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state); 149 Handle<Code> code = compiler::CodeAssembler::GenerateCode(&state);
150 PROFILE(isolate, CodeCreateEvent( 150 PROFILE(isolate, CodeCreateEvent(
151 CodeEventListener::BYTECODE_HANDLER_TAG, 151 CodeEventListener::BYTECODE_HANDLER_TAG,
152 AbstractCode::cast(*code), 152 AbstractCode::cast(*code),
153 Bytecodes::ToString(bytecode, operand_scale).c_str())); 153 Bytecodes::ToString(bytecode, operand_scale).c_str()));
154 #ifdef ENABLE_DISASSEMBLER 154 #ifdef ENABLE_DISASSEMBLER
155 if (FLAG_trace_ignition_codegen) { 155 if (FLAG_trace_ignition_codegen) {
156 OFStream os(stdout); 156 OFStream os(stdout);
157 code->Disassemble(nullptr, os); 157 code->Disassemble(Bytecodes::ToString(bytecode), os);
158 os << std::flush; 158 os << std::flush;
159 } 159 }
160 #endif // ENABLE_DISASSEMBLER 160 #endif // ENABLE_DISASSEMBLER
161 return code; 161 return code;
162 } 162 }
163 163
164 #define __ assembler-> 164 #define __ assembler->
165 165
166 // LdaZero 166 // LdaZero
167 // 167 //
(...skipping 3243 matching lines...) Expand 10 before | Expand all | Expand 10 after
3411 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, 3411 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset,
3412 __ SmiTag(new_state)); 3412 __ SmiTag(new_state));
3413 __ SetAccumulator(old_state); 3413 __ SetAccumulator(old_state);
3414 3414
3415 __ Dispatch(); 3415 __ Dispatch();
3416 } 3416 }
3417 3417
3418 } // namespace interpreter 3418 } // namespace interpreter
3419 } // namespace internal 3419 } // namespace internal
3420 } // namespace v8 3420 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698