| OLD | NEW |
| 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 const Operator* Call(const CallDescriptor* descriptor); | 379 const Operator* Call(const CallDescriptor* descriptor); |
| 380 const Operator* TailCall(const CallDescriptor* descriptor); | 380 const Operator* TailCall(const CallDescriptor* descriptor); |
| 381 const Operator* Projection(size_t index); | 381 const Operator* Projection(size_t index); |
| 382 const Operator* Retain(); | 382 const Operator* Retain(); |
| 383 const Operator* TypeGuard(Type* type); | 383 const Operator* TypeGuard(Type* type); |
| 384 | 384 |
| 385 // Constructs a new merge or phi operator with the same opcode as {op}, but | 385 // Constructs a new merge or phi operator with the same opcode as {op}, but |
| 386 // with {size} inputs. | 386 // with {size} inputs. |
| 387 const Operator* ResizeMergeOrPhi(const Operator* op, int size); | 387 const Operator* ResizeMergeOrPhi(const Operator* op, int size); |
| 388 | 388 |
| 389 // Simd Operators | |
| 390 const Operator* Int32x4ExtractLane(int32_t); | |
| 391 const Operator* Int32x4ReplaceLane(int32_t); | |
| 392 const Operator* Float32x4ExtractLane(int32_t); | |
| 393 const Operator* Float32x4ReplaceLane(int32_t); | |
| 394 | |
| 395 // Constructs function info for frame state construction. | 389 // Constructs function info for frame state construction. |
| 396 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( | 390 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( |
| 397 FrameStateType type, int parameter_count, int local_count, | 391 FrameStateType type, int parameter_count, int local_count, |
| 398 Handle<SharedFunctionInfo> shared_info); | 392 Handle<SharedFunctionInfo> shared_info); |
| 399 | 393 |
| 400 private: | 394 private: |
| 401 Zone* zone() const { return zone_; } | 395 Zone* zone() const { return zone_; } |
| 402 | 396 |
| 403 const CommonOperatorGlobalCache& cache_; | 397 const CommonOperatorGlobalCache& cache_; |
| 404 Zone* const zone_; | 398 Zone* const zone_; |
| 405 | 399 |
| 406 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 400 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
| 407 }; | 401 }; |
| 408 | 402 |
| 409 } // namespace compiler | 403 } // namespace compiler |
| 410 } // namespace internal | 404 } // namespace internal |
| 411 } // namespace v8 | 405 } // namespace v8 |
| 412 | 406 |
| 413 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 407 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
| OLD | NEW |