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 4079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4090 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); | 4090 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); |
4091 __ test(eax, Operand(eax)); | 4091 __ test(eax, Operand(eax)); |
4092 // The stub returns 0 for true. | 4092 // The stub returns 0 for true. |
4093 Split(zero, if_true, if_false, fall_through); | 4093 Split(zero, if_true, if_false, fall_through); |
4094 break; | 4094 break; |
4095 } | 4095 } |
4096 | 4096 |
4097 default: { | 4097 default: { |
4098 VisitForAccumulatorValue(expr->right()); | 4098 VisitForAccumulatorValue(expr->right()); |
4099 Condition cc = no_condition; | 4099 Condition cc = no_condition; |
4100 bool strict = false; | |
4101 switch (op) { | 4100 switch (op) { |
4102 case Token::EQ_STRICT: | 4101 case Token::EQ_STRICT: |
4103 strict = true; | |
4104 // Fall through | |
4105 case Token::EQ: | 4102 case Token::EQ: |
4106 cc = equal; | 4103 cc = equal; |
4107 __ pop(edx); | 4104 __ pop(edx); |
4108 break; | 4105 break; |
4109 case Token::LT: | 4106 case Token::LT: |
4110 cc = less; | 4107 cc = less; |
4111 __ pop(edx); | 4108 __ pop(edx); |
4112 break; | 4109 break; |
4113 case Token::GT: | 4110 case Token::GT: |
4114 // Reverse left and right sizes to obtain ECMA-262 conversion order. | 4111 // Reverse left and right sizes to obtain ECMA-262 conversion order. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4300 *context_length = 0; | 4297 *context_length = 0; |
4301 return previous_; | 4298 return previous_; |
4302 } | 4299 } |
4303 | 4300 |
4304 | 4301 |
4305 #undef __ | 4302 #undef __ |
4306 | 4303 |
4307 } } // namespace v8::internal | 4304 } } // namespace v8::internal |
4308 | 4305 |
4309 #endif // V8_TARGET_ARCH_IA32 | 4306 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |