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

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

Issue 1245133002: [interpreter] Add Interpreter{Entry,Exit}Trampoline builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@oth_bytecode_array
Patch Set: Adding MIPS based on https://codereview.chromium.org/1257953002/ Created 5 years, 4 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 | « src/ia32/builtins-ia32.cc ('k') | src/mips/assembler-mips.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 "src/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/interpreter-assembler.h" 8 #include "src/compiler/interpreter-assembler.h"
9 #include "src/factory.h" 9 #include "src/factory.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // argument. 52 // argument.
53 void Interpreter::DoLoadLiteral0(compiler::InterpreterAssembler* assembler) { 53 void Interpreter::DoLoadLiteral0(compiler::InterpreterAssembler* assembler) {
54 Node* register_index = __ BytecodeArg(0); 54 Node* register_index = __ BytecodeArg(0);
55 __ StoreRegister(__ NumberConstant(0), register_index); 55 __ StoreRegister(__ NumberConstant(0), register_index);
56 __ Dispatch(); 56 __ Dispatch();
57 } 57 }
58 58
59 59
60 // Return the value in register 0. 60 // Return the value in register 0.
61 void Interpreter::DoReturn(compiler::InterpreterAssembler* assembler) { 61 void Interpreter::DoReturn(compiler::InterpreterAssembler* assembler) {
62 // TODO(rmcilroy) Jump to exit trampoline. 62 __ Return();
63 } 63 }
64 64
65 65
66 } // namespace interpreter 66 } // namespace interpreter
67 } // namespace internal 67 } // namespace internal
68 } // namespace v8 68 } // namespace v8
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698