| Index: src/compiler/opcodes.h
|
| diff --git a/src/compiler/opcodes.h b/src/compiler/opcodes.h
|
| index d94c60d468d4ee2646a60f98d106e81e12d1195a..b943c22aa82ef36c010a513c95704fc580edf5a1 100644
|
| --- a/src/compiler/opcodes.h
|
| +++ b/src/compiler/opcodes.h
|
| @@ -372,6 +372,11 @@ class IrOpcode {
|
| return kIfTrue <= value && value <= kIfDefault;
|
| }
|
|
|
| + // Returns true if opcode can be inlined.
|
| + static bool IsInlineeOpcode(Value value) {
|
| + return value == kJSCallConstruct || value == kJSCallFunction;
|
| + }
|
| +
|
| // Returns true if opcode for comparison operator.
|
| static bool IsComparisonOpcode(Value value) {
|
| return (kJSEqual <= value && value <= kJSGreaterThanOrEqual) ||
|
|
|