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 4042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4053 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); | 4053 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); |
4054 __ testq(rax, rax); | 4054 __ testq(rax, rax); |
4055 // The stub returns 0 for true. | 4055 // The stub returns 0 for true. |
4056 Split(zero, if_true, if_false, fall_through); | 4056 Split(zero, if_true, if_false, fall_through); |
4057 break; | 4057 break; |
4058 } | 4058 } |
4059 | 4059 |
4060 default: { | 4060 default: { |
4061 VisitForAccumulatorValue(expr->right()); | 4061 VisitForAccumulatorValue(expr->right()); |
4062 Condition cc = no_condition; | 4062 Condition cc = no_condition; |
4063 bool strict = false; | |
4064 switch (op) { | 4063 switch (op) { |
4065 case Token::EQ_STRICT: | 4064 case Token::EQ_STRICT: |
4066 strict = true; | |
4067 // Fall through. | 4065 // Fall through. |
4068 case Token::EQ: | 4066 case Token::EQ: |
4069 cc = equal; | 4067 cc = equal; |
4070 __ pop(rdx); | 4068 __ pop(rdx); |
4071 break; | 4069 break; |
4072 case Token::LT: | 4070 case Token::LT: |
4073 cc = less; | 4071 cc = less; |
4074 __ pop(rdx); | 4072 __ pop(rdx); |
4075 break; | 4073 break; |
4076 case Token::GT: | 4074 case Token::GT: |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4231 __ jmp(rdx); | 4229 __ jmp(rdx); |
4232 } | 4230 } |
4233 | 4231 |
4234 | 4232 |
4235 #undef __ | 4233 #undef __ |
4236 | 4234 |
4237 | 4235 |
4238 } } // namespace v8::internal | 4236 } } // namespace v8::internal |
4239 | 4237 |
4240 #endif // V8_TARGET_ARCH_X64 | 4238 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |