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

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

Issue 1645763003: [Interpreter] TurboFan implementation of intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/interpreter-assembler.h" 9 #include "src/compiler/interpreter-assembler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 // in the accumulator. 1854 // in the accumulator.
1855 void Interpreter::DoForInStep(compiler::InterpreterAssembler* assembler) { 1855 void Interpreter::DoForInStep(compiler::InterpreterAssembler* assembler) {
1856 // TODO(oth): Implement directly rather than making a runtime call. 1856 // TODO(oth): Implement directly rather than making a runtime call.
1857 Node* index_reg = __ BytecodeOperandReg(0); 1857 Node* index_reg = __ BytecodeOperandReg(0);
1858 Node* index = __ LoadRegister(index_reg); 1858 Node* index = __ LoadRegister(index_reg);
1859 Node* result = __ CallRuntime(Runtime::kForInStep, index); 1859 Node* result = __ CallRuntime(Runtime::kForInStep, index);
1860 __ SetAccumulator(result); 1860 __ SetAccumulator(result);
1861 __ Dispatch(); 1861 __ Dispatch();
1862 } 1862 }
1863 1863
1864 void Interpreter::DoIntrinsicOneArg(compiler::InterpreterAssembler* assembler) {
1865 Node* function_id = __ BytecodeOperandIdx(0);
1866 Node* first_arg_reg = __ BytecodeOperandReg(1);
1867 Node* first_arg = __ RegisterLocation(first_arg_reg);
1868 Node* result = __ IntrinsicOneArg(function_id, first_arg);
1869 __ SetAccumulator(result);
1870 __ Dispatch();
1871 }
1872
1864 } // namespace interpreter 1873 } // namespace interpreter
1865 } // namespace internal 1874 } // namespace internal
1866 } // namespace v8 1875 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698