OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3423 VisitForStackValue(expr->right()); | 3423 VisitForStackValue(expr->right()); |
3424 __ InvokeBuiltin(Builtins::IN, CALL_JS); | 3424 __ InvokeBuiltin(Builtins::IN, CALL_JS); |
3425 PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL); | 3425 PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL); |
3426 __ LoadRoot(ip, Heap::kTrueValueRootIndex); | 3426 __ LoadRoot(ip, Heap::kTrueValueRootIndex); |
3427 __ cmp(r0, ip); | 3427 __ cmp(r0, ip); |
3428 Split(eq, if_true, if_false, fall_through); | 3428 Split(eq, if_true, if_false, fall_through); |
3429 break; | 3429 break; |
3430 | 3430 |
3431 case Token::INSTANCEOF: { | 3431 case Token::INSTANCEOF: { |
3432 VisitForStackValue(expr->right()); | 3432 VisitForStackValue(expr->right()); |
3433 InstanceofStub stub; | 3433 InstanceofStub stub(InstanceofStub::kNoFlags); |
3434 __ CallStub(&stub); | 3434 __ CallStub(&stub); |
3435 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); | 3435 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); |
3436 // The stub returns 0 for true. | 3436 // The stub returns 0 for true. |
3437 __ tst(r0, r0); | 3437 __ tst(r0, r0); |
3438 Split(eq, if_true, if_false, fall_through); | 3438 Split(eq, if_true, if_false, fall_through); |
3439 break; | 3439 break; |
3440 } | 3440 } |
3441 | 3441 |
3442 default: { | 3442 default: { |
3443 VisitForAccumulatorValue(expr->right()); | 3443 VisitForAccumulatorValue(expr->right()); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3596 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 3596 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
3597 __ add(pc, r1, Operand(masm_->CodeObject())); | 3597 __ add(pc, r1, Operand(masm_->CodeObject())); |
3598 } | 3598 } |
3599 | 3599 |
3600 | 3600 |
3601 #undef __ | 3601 #undef __ |
3602 | 3602 |
3603 } } // namespace v8::internal | 3603 } } // namespace v8::internal |
3604 | 3604 |
3605 #endif // V8_TARGET_ARCH_ARM | 3605 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |