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

Side by Side Diff: src/compiler/bytecode-graph-builder.h

Issue 1459543003: [Interpreter] Add support for unary operators to bytecode graph builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/bytecode-graph-builder.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_BYTECODE_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
7 7
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/interpreter/bytecode-array-iterator.h" 10 #include "src/interpreter/bytecode-array-iterator.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 interpreter::Register callee, 90 interpreter::Register callee,
91 interpreter::Register receiver, size_t arity); 91 interpreter::Register receiver, size_t arity);
92 92
93 void BuildLoadGlobal(const interpreter::BytecodeArrayIterator& iterator, 93 void BuildLoadGlobal(const interpreter::BytecodeArrayIterator& iterator,
94 TypeofMode typeof_mode); 94 TypeofMode typeof_mode);
95 void BuildStoreGlobal(const interpreter::BytecodeArrayIterator& iterator); 95 void BuildStoreGlobal(const interpreter::BytecodeArrayIterator& iterator);
96 void BuildNamedLoad(const interpreter::BytecodeArrayIterator& iterator); 96 void BuildNamedLoad(const interpreter::BytecodeArrayIterator& iterator);
97 void BuildCall(const interpreter::BytecodeArrayIterator& iterator); 97 void BuildCall(const interpreter::BytecodeArrayIterator& iterator);
98 void BuildBinaryOp(const Operator* op, 98 void BuildBinaryOp(const Operator* op,
99 const interpreter::BytecodeArrayIterator& iterator); 99 const interpreter::BytecodeArrayIterator& iterator);
100 void BuildDelete(const interpreter::BytecodeArrayIterator& iterator);
100 101
101 // Growth increment for the temporary buffer used to construct input lists to 102 // Growth increment for the temporary buffer used to construct input lists to
102 // new nodes. 103 // new nodes.
103 static const int kInputBufferSizeIncrement = 64; 104 static const int kInputBufferSizeIncrement = 64;
104 105
105 // Field accessors 106 // Field accessors
106 CommonOperatorBuilder* common() const { return jsgraph_->common(); } 107 CommonOperatorBuilder* common() const { return jsgraph_->common(); }
107 Zone* graph_zone() const { return graph()->zone(); } 108 Zone* graph_zone() const { return graph()->zone(); }
108 CompilationInfo* info() const { return info_; } 109 CompilationInfo* info() const { return info_; }
109 JSGraph* jsgraph() const { return jsgraph_; } 110 JSGraph* jsgraph() const { return jsgraph_; }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 NodeVector values_; 201 NodeVector values_;
201 int register_base_; 202 int register_base_;
202 }; 203 };
203 204
204 205
205 } // namespace compiler 206 } // namespace compiler
206 } // namespace internal 207 } // namespace internal
207 } // namespace v8 208 } // namespace v8
208 209
209 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 210 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698