OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 4064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4075 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); | 4075 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); |
4076 __ test(eax, Operand(eax)); | 4076 __ test(eax, Operand(eax)); |
4077 // The stub returns 0 for true. | 4077 // The stub returns 0 for true. |
4078 Split(zero, if_true, if_false, fall_through); | 4078 Split(zero, if_true, if_false, fall_through); |
4079 break; | 4079 break; |
4080 } | 4080 } |
4081 | 4081 |
4082 default: { | 4082 default: { |
4083 VisitForAccumulatorValue(expr->right()); | 4083 VisitForAccumulatorValue(expr->right()); |
4084 Condition cc = no_condition; | 4084 Condition cc = no_condition; |
4085 bool strict = false; | |
4086 switch (op) { | 4085 switch (op) { |
4087 case Token::EQ_STRICT: | 4086 case Token::EQ_STRICT: |
4088 strict = true; | |
4089 // Fall through | |
4090 case Token::EQ: | 4087 case Token::EQ: |
4091 cc = equal; | 4088 cc = equal; |
4092 __ pop(edx); | 4089 __ pop(edx); |
4093 break; | 4090 break; |
4094 case Token::LT: | 4091 case Token::LT: |
4095 cc = less; | 4092 cc = less; |
4096 __ pop(edx); | 4093 __ pop(edx); |
4097 break; | 4094 break; |
4098 case Token::GT: | 4095 case Token::GT: |
4099 // Reverse left and right sizes to obtain ECMA-262 conversion order. | 4096 // Reverse left and right sizes to obtain ECMA-262 conversion order. |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4249 __ add(Operand(edx), Immediate(masm_->CodeObject())); | 4246 __ add(Operand(edx), Immediate(masm_->CodeObject())); |
4250 __ jmp(Operand(edx)); | 4247 __ jmp(Operand(edx)); |
4251 } | 4248 } |
4252 | 4249 |
4253 | 4250 |
4254 #undef __ | 4251 #undef __ |
4255 | 4252 |
4256 } } // namespace v8::internal | 4253 } } // namespace v8::internal |
4257 | 4254 |
4258 #endif // V8_TARGET_ARCH_IA32 | 4255 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |