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 4125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4136 __ CallStub(&stub); | 4136 __ CallStub(&stub); |
4137 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); | 4137 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); |
4138 // The stub returns 0 for true. | 4138 // The stub returns 0 for true. |
4139 Split(eq, v0, Operand(zero_reg), if_true, if_false, fall_through); | 4139 Split(eq, v0, Operand(zero_reg), if_true, if_false, fall_through); |
4140 break; | 4140 break; |
4141 } | 4141 } |
4142 | 4142 |
4143 default: { | 4143 default: { |
4144 VisitForAccumulatorValue(expr->right()); | 4144 VisitForAccumulatorValue(expr->right()); |
4145 Condition cc = eq; | 4145 Condition cc = eq; |
4146 bool strict = false; | |
4147 switch (op) { | 4146 switch (op) { |
4148 case Token::EQ_STRICT: | 4147 case Token::EQ_STRICT: |
4149 strict = true; | |
4150 // Fall through. | |
4151 case Token::EQ: | 4148 case Token::EQ: |
4152 cc = eq; | 4149 cc = eq; |
4153 __ mov(a0, result_register()); | 4150 __ mov(a0, result_register()); |
4154 __ pop(a1); | 4151 __ pop(a1); |
4155 break; | 4152 break; |
4156 case Token::LT: | 4153 case Token::LT: |
4157 cc = lt; | 4154 cc = lt; |
4158 __ mov(a0, result_register()); | 4155 __ mov(a0, result_register()); |
4159 __ pop(a1); | 4156 __ pop(a1); |
4160 break; | 4157 break; |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4312 __ Addu(at, a1, Operand(masm_->CodeObject())); | 4309 __ Addu(at, a1, Operand(masm_->CodeObject())); |
4313 __ Jump(at); | 4310 __ Jump(at); |
4314 } | 4311 } |
4315 | 4312 |
4316 | 4313 |
4317 #undef __ | 4314 #undef __ |
4318 | 4315 |
4319 } } // namespace v8::internal | 4316 } } // namespace v8::internal |
4320 | 4317 |
4321 #endif // V8_TARGET_ARCH_MIPS | 4318 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |