Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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.h" | 5 #include "src/interpreter/interpreter.h" |
| 6 | 6 |
| 7 #include <fstream> | 7 #include <fstream> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/ast/prettyprinter.h" | 10 #include "src/ast/prettyprinter.h" |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 207 info()->SetCode(info()->isolate()->builtins()->InterpreterEntryTrampoline()); | 207 info()->SetCode(info()->isolate()->builtins()->InterpreterEntryTrampoline()); |
| 208 return SUCCEEDED; | 208 return SUCCEEDED; |
| 209 } | 209 } |
| 210 | 210 |
| 211 CompilationJob* Interpreter::NewCompilationJob(CompilationInfo* info) { | 211 CompilationJob* Interpreter::NewCompilationJob(CompilationInfo* info) { |
| 212 return new InterpreterCompilationJob(info); | 212 return new InterpreterCompilationJob(info); |
| 213 } | 213 } |
| 214 | 214 |
| 215 bool Interpreter::IsDispatchTableInitialized() { | 215 bool Interpreter::IsDispatchTableInitialized() { |
| 216 if (FLAG_trace_ignition || FLAG_trace_ignition_codegen || | 216 if (FLAG_trace_ignition || FLAG_trace_ignition_codegen || |
| 217 FLAG_trace_ignition_dispatches) { | 217 FLAG_trace_ignition_dispatches || FLAG_debug_code) { |
|
rmcilroy
2016/10/24 13:46:54
While you are here, there is a bug that GetBytecod
Michael Starzinger
2016/10/25 09:46:12
Done. Actually one of the try-bots ran into this b
| |
| 218 // Regenerate table to add bytecode tracing operations, print the assembly | 218 // Regenerate table to add bytecode tracing operations, print the assembly |
| 219 // code generated by TurboFan or instrument handlers with dispatch counters. | 219 // code generated by TurboFan, instrument handlers with dispatch counters, |
| 220 // or insert debugging code into the bytecode handlers. | |
| 220 return false; | 221 return false; |
| 221 } | 222 } |
| 222 return dispatch_table_[0] != nullptr; | 223 return dispatch_table_[0] != nullptr; |
| 223 } | 224 } |
| 224 | 225 |
| 225 void Interpreter::TraceCodegen(Handle<Code> code) { | 226 void Interpreter::TraceCodegen(Handle<Code> code) { |
| 226 #ifdef ENABLE_DISASSEMBLER | 227 #ifdef ENABLE_DISASSEMBLER |
| 227 if (FLAG_trace_ignition_codegen) { | 228 if (FLAG_trace_ignition_codegen) { |
| 228 OFStream os(stdout); | 229 OFStream os(stdout); |
| 229 code->Disassemble(nullptr, os); | 230 code->Disassemble(nullptr, os); |
| (...skipping 2407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2637 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, | 2638 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, |
| 2638 __ SmiTag(new_state)); | 2639 __ SmiTag(new_state)); |
| 2639 __ SetAccumulator(old_state); | 2640 __ SetAccumulator(old_state); |
| 2640 | 2641 |
| 2641 __ Dispatch(); | 2642 __ Dispatch(); |
| 2642 } | 2643 } |
| 2643 | 2644 |
| 2644 } // namespace interpreter | 2645 } // namespace interpreter |
| 2645 } // namespace internal | 2646 } // namespace internal |
| 2646 } // namespace v8 | 2647 } // namespace v8 |
| OLD | NEW |