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

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

Issue 1319833004: [Interpreter] Add support for property store operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_implicit_ret
Patch Set: Add DCHECK Created 5 years, 3 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_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_INTERPRETER_ASSEMBLER_H_
6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 6 #define V8_COMPILER_INTERPRETER_ASSEMBLER_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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Load |slot_index| from the current context. 77 // Load |slot_index| from the current context.
78 Node* LoadContextSlot(int slot_index); 78 Node* LoadContextSlot(int slot_index);
79 79
80 // Load the TypeFeedbackVector for the current function. 80 // Load the TypeFeedbackVector for the current function.
81 Node* LoadTypeFeedbackVector(); 81 Node* LoadTypeFeedbackVector();
82 82
83 // Call an IC code stub. 83 // Call an IC code stub.
84 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1, 84 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1,
85 Node* arg2, Node* arg3, Node* arg4); 85 Node* arg2, Node* arg3, Node* arg4);
86 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node* arg1,
87 Node* arg2, Node* arg3, Node* arg4, Node* arg5);
86 88
87 // Call JS builtin. 89 // Call JS builtin.
88 Node* CallJSBuiltin(int context_index, Node* receiver); 90 Node* CallJSBuiltin(int context_index, Node* receiver);
89 Node* CallJSBuiltin(int context_index, Node* receiver, Node* arg1); 91 Node* CallJSBuiltin(int context_index, Node* receiver, Node* arg1);
90 92
91 // Returns from the function. 93 // Returns from the function.
92 void Return(); 94 void Return();
93 95
94 // Dispatch to the bytecode. 96 // Dispatch to the bytecode.
95 void Dispatch(); 97 void Dispatch();
(...skipping 18 matching lines...) Expand all
114 // Returns a tagged pointer to the current context. 116 // Returns a tagged pointer to the current context.
115 Node* ContextTaggedPointer(); 117 Node* ContextTaggedPointer();
116 118
117 // Returns the offset of register |index| relative to RegisterFilePointer(). 119 // Returns the offset of register |index| relative to RegisterFilePointer().
118 Node* RegisterFrameOffset(Node* index); 120 Node* RegisterFrameOffset(Node* index);
119 121
120 Node* SmiShiftBitsConstant(); 122 Node* SmiShiftBitsConstant();
121 Node* BytecodeOperand(int operand_index); 123 Node* BytecodeOperand(int operand_index);
122 Node* BytecodeOperandSignExtended(int operand_index); 124 Node* BytecodeOperandSignExtended(int operand_index);
123 125
126 Node* CallIC(CallInterfaceDescriptor descriptor, Node* target, Node** args);
124 Node* CallJSBuiltin(int context_index, Node* receiver, Node** js_args, 127 Node* CallJSBuiltin(int context_index, Node* receiver, Node** js_args,
125 int js_arg_count); 128 int js_arg_count);
126 129
127 // Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not 130 // Returns BytecodeOffset() advanced by delta bytecodes. Note: this does not
128 // update BytecodeOffset() itself. 131 // update BytecodeOffset() itself.
129 Node* Advance(int delta); 132 Node* Advance(int delta);
130 133
131 // Sets the end node of the graph. 134 // Sets the end node of the graph.
132 void SetEndInput(Node* input); 135 void SetEndInput(Node* input);
133 136
134 // Private helpers which delegate to RawMachineAssembler. 137 // Private helpers which delegate to RawMachineAssembler.
135 Isolate* isolate(); 138 Isolate* isolate();
136 Schedule* schedule(); 139 Schedule* schedule();
137 Zone* zone(); 140 Zone* zone();
138 141
139 interpreter::Bytecode bytecode_; 142 interpreter::Bytecode bytecode_;
140 base::SmartPointer<RawMachineAssembler> raw_assembler_; 143 base::SmartPointer<RawMachineAssembler> raw_assembler_;
141 Node* end_node_; 144 Node* end_node_;
142 Node* accumulator_; 145 Node* accumulator_;
143 bool code_generated_; 146 bool code_generated_;
144 147
145 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler); 148 DISALLOW_COPY_AND_ASSIGN(InterpreterAssembler);
146 }; 149 };
147 150
148 } // namespace interpreter 151 } // namespace interpreter
149 } // namespace internal 152 } // namespace internal
150 } // namespace v8 153 } // namespace v8
151 154
152 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_H_ 155 #endif // V8_COMPILER_INTERPRETER_ASSEMBLER_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