Lines Matching refs:right
3772 HBinaryOperation(HValue* context, HValue* left, HValue* right,
3776 DCHECK(left != NULL && right != NULL);
3779 SetOperandAt(2, right);
3786 HValue* right() const { return OperandAt(2); }
3788 // True if switching left and right operands likely generates better code.
3792 // Constant operands are better off on the right, they can be inlined in
3795 if (right()->IsConstant()) return false;
3797 // Otherwise, if there is only one use of the right operand, it would be
3800 return right()->HasOneUse();
3804 return AreOperandsBetterSwitched() ? right() : left();
3808 return AreOperandsBetterSwitched() ? left() : right();
3856 if (!right()->IsInteger32Constant()) return false;
3857 int32_t value = right()->GetInteger32Constant();
4142 right,
4144 : HBinaryOperation(context, left, right, type) {
4153 (left()->ToNumberCanBeObserved() || right()->ToNumberCanBeObserved())) {
4201 HMathFloorOfDiv(HValue* context, HValue* left, HValue* right)
4202 : HBinaryOperation(context, left, right) {
4221 HArithmeticBinaryOperation(HValue* context, HValue* left, HValue* right)
4222 : HBinaryOperation(context, left, right, HType::TaggedNumber()) {
4230 (left()->ToNumberCanBeObserved() || right()->ToNumberCanBeObserved())) {
4266 HValue* right,
4268 : HBinaryOperation(context, left, right, HType::Boolean()),
4288 HValue* right() const { return OperandAt(1); }
4292 Representation right) {
4294 observed_input_representation_[1] = right;
4322 HValue* right,
4330 SetOperandAt(1, right);
4403 HValue* right() const { return OperandAt(1); }
4419 HValue* right,
4424 SetOperandAt(1, right);
4546 HValue* right() { return OperandAt(2); }
4564 HValue* right,
4570 SetOperandAt(2, right);
4729 HInstanceOf(HValue* context, HValue* left, HValue* right)
4730 : HBinaryOperation(context, left, right, HType::Boolean()) {
4756 Handle<JSFunction> right)
4757 : HTemplateInstruction<2>(HType::Boolean()), function_(right) {
4773 HValue* right);
4776 HValue* right() const { return OperandAt(1); }
4793 HPower(HValue* left, HValue* right) {
4795 SetOperandAt(1, right);
4802 return !right()->representation().IsTagged();
4812 HValue* right);
4825 decomposition->Apply(right(), left()->GetInteger32Constant());
4827 } else if (right()->IsInteger32Constant()) {
4828 decomposition->Apply(left(), right()->GetInteger32Constant());
4837 (left()->ToNumberCanBeObserved() || right()->ToNumberCanBeObserved() ||
4838 left()->ToStringCanBeObserved() || right()->ToStringCanBeObserved())) {
4863 HAdd(HValue* context, HValue* left, HValue* right)
4864 : HArithmeticBinaryOperation(context, left, right) {
4875 HValue* right);
4880 if (right()->IsInteger32Constant()) {
4881 decomposition->Apply(left(), -right()->GetInteger32Constant());
4896 HSub(HValue* context, HValue* left, HValue* right)
4897 : HArithmeticBinaryOperation(context, left, right) {
4908 HValue* right);
4913 HValue* right) {
4914 HInstruction* instr = HMul::New(zone, context, left, right);
4946 HMul(HValue* context, HValue* left, HValue* right)
4947 : HArithmeticBinaryOperation(context, left, right) {
4958 HValue* right);
4979 HValue* right) : HArithmeticBinaryOperation(context, left, right) {
4992 HValue* right);
5011 HDiv(HValue* context, HValue* left, HValue* right)
5012 : HArithmeticBinaryOperation(context, left, right) {
5026 HValue* right,
5038 Representation right_rep = right()->representation();
5061 HMathMinMax(HValue* context, HValue* left, HValue* right, Operation op)
5062 : HArithmeticBinaryOperation(context, left, right),
5075 HValue* right);
5098 HValue* right)
5099 : HBitwiseBinaryOperation(context, left, right),
5108 (right->IsConstant() &&
5109 right->representation().IsSmi() &&
5110 HConstant::cast(right)->Integer32Value() >= 0))) {
5119 (right->IsConstant() &&
5120 right->representation().IsSmi() &&
5121 HConstant::cast(right)->Integer32Value() < 0))) {
5136 HValue* right);
5144 !(right()->IsInteger32Constant() &&
5145 right()->GetInteger32Constant() >= 0)) {
5157 HShl(HValue* context, HValue* left, HValue* right)
5158 : HBitwiseBinaryOperation(context, left, right) { }
5167 HValue* right);
5170 if (right()->IsInteger32Constant()) {
5171 if (decomposition->Apply(left(), 0, right()->GetInteger32Constant())) {
5196 HShr(HValue* context, HValue* left, HValue* right)
5197 : HBitwiseBinaryOperation(context, left, right) { }
5206 HValue* right);
5209 if (right()->IsInteger32Constant()) {
5210 if (decomposition->Apply(left(), 0, right()->GetInteger32Constant())) {
5235 HSar(HValue* context, HValue* left, HValue* right)
5236 : HBitwiseBinaryOperation(context, left, right) { }
5245 HValue* right) {
5246 return new(zone) HRor(context, left, right);
5262 HRor(HValue* context, HValue* left, HValue* right)
5263 : HBitwiseBinaryOperation(context, left, right) {
7269 HValue* right,
7295 HValue* right,
7299 : HBinaryOperation(context, left, right, HType::String()),