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

Side by Side Diff: src/compiler/interpreter-assembler.h

Issue 1257543003: [Interpreter] Add more bytecode definitions and add operand types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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 | « no previous file | src/compiler/interpreter-assembler.cc » ('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 #ifndef V8_COMPILER_INTERPRETER_CODEGEN_H_ 5 #ifndef V8_COMPILER_INTERPRETER_CODEGEN_H_
6 #define V8_COMPILER_INTERPRETER_CODEGEN_H_ 6 #define V8_COMPILER_INTERPRETER_CODEGEN_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 25 matching lines...) Expand all
36 interpreter::Bytecode bytecode); 36 interpreter::Bytecode bytecode);
37 virtual ~InterpreterAssembler(); 37 virtual ~InterpreterAssembler();
38 38
39 Handle<Code> GenerateCode(); 39 Handle<Code> GenerateCode();
40 40
41 // Constants. 41 // Constants.
42 Node* Int32Constant(int value); 42 Node* Int32Constant(int value);
43 Node* NumberConstant(double value); 43 Node* NumberConstant(double value);
44 Node* HeapConstant(Unique<HeapObject> object); 44 Node* HeapConstant(Unique<HeapObject> object);
45 45
46 // Returns the bytecode argument |index| for the current bytecode. 46 // Returns the bytecode operand |index| for the current bytecode.
47 Node* BytecodeArg(int index); 47 Node* BytecodeOperand(int index);
48 48
49 // Loads from and stores to the interpreter register file. 49 // Loads from and stores to the interpreter register file.
50 Node* LoadRegister(int index); 50 Node* LoadRegister(int index);
51 Node* LoadRegister(Node* index); 51 Node* LoadRegister(Node* index);
52 Node* StoreRegister(Node* value, int index); 52 Node* StoreRegister(Node* value, int index);
53 Node* StoreRegister(Node* value, Node* index); 53 Node* StoreRegister(Node* value, Node* index);
54 54
55 // Returns from the function. 55 // Returns from the function.
56 void Return(); 56 void Return();
57 57
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool code_generated_; 105 bool code_generated_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 107 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
108 }; 108 };
109 109
110 } // namespace interpreter 110 } // namespace interpreter
111 } // namespace internal 111 } // namespace internal
112 } // namespace v8 112 } // namespace v8
113 113
114 #endif // V8_COMPILER_INTERPRETER_CODEGEN_H_ 114 #endif // V8_COMPILER_INTERPRETER_CODEGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/interpreter-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698