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

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
« no previous file with comments | « no previous file | src/interpreter/interpreter-intrinsics.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 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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1836 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, 1835 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset,
1837 __ SmiTag(new_state)); 1836 __ SmiTag(new_state));
1838 __ SetAccumulator(old_state); 1837 __ SetAccumulator(old_state);
1839 1838
1840 __ Dispatch(); 1839 __ Dispatch();
1841 } 1840 }
1842 1841
1843 } // namespace interpreter 1842 } // namespace interpreter
1844 } // namespace internal 1843 } // namespace internal
1845 } // namespace v8 1844 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/interpreter-intrinsics.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698