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 4024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4035 case Token::IN: | 4035 case Token::IN: |
4036 VisitForStackValue(expr->right()); | 4036 VisitForStackValue(expr->right()); |
4037 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION); | 4037 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION); |
4038 PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL); | 4038 PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL); |
4039 __ cmp(eax, Factory::true_value()); | 4039 __ cmp(eax, Factory::true_value()); |
4040 Split(equal, if_true, if_false, fall_through); | 4040 Split(equal, if_true, if_false, fall_through); |
4041 break; | 4041 break; |
4042 | 4042 |
4043 case Token::INSTANCEOF: { | 4043 case Token::INSTANCEOF: { |
4044 VisitForStackValue(expr->right()); | 4044 VisitForStackValue(expr->right()); |
4045 __ IncrementCounter(&Counters::instance_of_full, 1); | |
4046 InstanceofStub stub(InstanceofStub::kNoFlags); | 4045 InstanceofStub stub(InstanceofStub::kNoFlags); |
4047 __ CallStub(&stub); | 4046 __ CallStub(&stub); |
4048 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); | 4047 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); |
4049 __ test(eax, Operand(eax)); | 4048 __ test(eax, Operand(eax)); |
4050 // The stub returns 0 for true. | 4049 // The stub returns 0 for true. |
4051 Split(zero, if_true, if_false, fall_through); | 4050 Split(zero, if_true, if_false, fall_through); |
4052 break; | 4051 break; |
4053 } | 4052 } |
4054 | 4053 |
4055 default: { | 4054 default: { |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4260 // And return. | 4259 // And return. |
4261 __ ret(0); | 4260 __ ret(0); |
4262 } | 4261 } |
4263 | 4262 |
4264 | 4263 |
4265 #undef __ | 4264 #undef __ |
4266 | 4265 |
4267 } } // namespace v8::internal | 4266 } } // namespace v8::internal |
4268 | 4267 |
4269 #endif // V8_TARGET_ARCH_IA32 | 4268 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |