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

Side by Side Diff: src/compiler/common-operator.h

Issue 2385393002: [wasm] Implement I32x4ReplaceLane, I32x4Add, I32x4Sub. (Closed)
Patch Set: Add lanes as compile time constants Created 4 years 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/common-operator.cc » ('j') | src/compiler/common-operator.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMMON_OPERATOR_H_ 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_
6 #define V8_COMPILER_COMMON_OPERATOR_H_ 6 #define V8_COMPILER_COMMON_OPERATOR_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/base/compiler-specific.h" 9 #include "src/base/compiler-specific.h"
10 #include "src/compiler/frame-states.h" 10 #include "src/compiler/frame-states.h"
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 const Operator* Call(const CallDescriptor* descriptor); 253 const Operator* Call(const CallDescriptor* descriptor);
254 const Operator* TailCall(const CallDescriptor* descriptor); 254 const Operator* TailCall(const CallDescriptor* descriptor);
255 const Operator* Projection(size_t index); 255 const Operator* Projection(size_t index);
256 const Operator* Retain(); 256 const Operator* Retain();
257 const Operator* TypeGuard(Type* type); 257 const Operator* TypeGuard(Type* type);
258 258
259 // Constructs a new merge or phi operator with the same opcode as {op}, but 259 // Constructs a new merge or phi operator with the same opcode as {op}, but
260 // with {size} inputs. 260 // with {size} inputs.
261 const Operator* ResizeMergeOrPhi(const Operator* op, int size); 261 const Operator* ResizeMergeOrPhi(const Operator* op, int size);
262 262
263 // Simd Operators
264 const Operator* Int32x4ExtractLane(int32_t);
265 const Operator* Int32x4ReplaceLane(int32_t);
266 const Operator* Float32x4ExtractLane(int32_t);
267
263 // Constructs function info for frame state construction. 268 // Constructs function info for frame state construction.
264 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( 269 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo(
265 FrameStateType type, int parameter_count, int local_count, 270 FrameStateType type, int parameter_count, int local_count,
266 Handle<SharedFunctionInfo> shared_info); 271 Handle<SharedFunctionInfo> shared_info);
267 272
268 private: 273 private:
269 Zone* zone() const { return zone_; } 274 Zone* zone() const { return zone_; }
270 275
271 const CommonOperatorGlobalCache& cache_; 276 const CommonOperatorGlobalCache& cache_;
272 Zone* const zone_; 277 Zone* const zone_;
273 278
274 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); 279 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder);
275 }; 280 };
276 281
277 } // namespace compiler 282 } // namespace compiler
278 } // namespace internal 283 } // namespace internal
279 } // namespace v8 284 } // namespace v8
280 285
281 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 286 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/common-operator.cc » ('j') | src/compiler/common-operator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698