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

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

Issue 2019433003: [Interpreter] Add intrinsic for Runtime::kInlineCall. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 6 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
OLDNEW
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 8
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 174
175 info->SetBytecodeArray(bytecodes); 175 info->SetBytecodeArray(bytecodes);
176 info->SetCode(info->isolate()->builtins()->InterpreterEntryTrampoline()); 176 info->SetCode(info->isolate()->builtins()->InterpreterEntryTrampoline());
177 return true; 177 return true;
178 } 178 }
179 179
180 bool Interpreter::IsDispatchTableInitialized() { 180 bool Interpreter::IsDispatchTableInitialized() {
181 if (FLAG_trace_ignition || FLAG_trace_ignition_codegen || 181 if (FLAG_trace_ignition || FLAG_trace_ignition_codegen ||
182 FLAG_trace_ignition_dispatches) { 182 FLAG_trace_ignition_dispatches) {
183 // Regenerate table to add bytecode tracing operations, 183 // Regenerate table to add bytecode tracing operations, print the assembly
184 // print the assembly code generated by TurboFan, 184 // code generated by TurboFan or instrument handlers with dispatch counters.
185 // or instrument handlers with dispatch counters.
186 return false; 185 return false;
187 } 186 }
188 return dispatch_table_[0] != nullptr; 187 return dispatch_table_[0] != nullptr;
189 } 188 }
190 189
191 void Interpreter::TraceCodegen(Handle<Code> code) { 190 void Interpreter::TraceCodegen(Handle<Code> code) {
192 #ifdef ENABLE_DISASSEMBLER 191 #ifdef ENABLE_DISASSEMBLER
193 if (FLAG_trace_ignition_codegen) { 192 if (FLAG_trace_ignition_codegen) {
194 OFStream os(stdout); 193 OFStream os(stdout);
195 code->Disassemble(nullptr, os); 194 code->Disassemble(nullptr, os);
(...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1850 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, 1849 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset,
1851 __ SmiTag(new_state)); 1850 __ SmiTag(new_state));
1852 __ SetAccumulator(old_state); 1851 __ SetAccumulator(old_state);
1853 1852
1854 __ Dispatch(); 1853 __ Dispatch();
1855 } 1854 }
1856 1855
1857 } // namespace interpreter 1856 } // namespace interpreter
1858 } // namespace internal 1857 } // namespace internal
1859 } // namespace v8 1858 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/interpreter-intrinsics.h » ('j') | src/interpreter/interpreter-intrinsics.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698