| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2245 cmp_left = ToRegister(left); | 2245 cmp_left = ToRegister(left); |
| 2246 cmp_right = Operand(ToRegister(right)); | 2246 cmp_right = Operand(ToRegister(right)); |
| 2247 } | 2247 } |
| 2248 | 2248 |
| 2249 EmitBranch(instr, cond, cmp_left, cmp_right); | 2249 EmitBranch(instr, cond, cmp_left, cmp_right); |
| 2250 } | 2250 } |
| 2251 } | 2251 } |
| 2252 } | 2252 } |
| 2253 | 2253 |
| 2254 | 2254 |
| 2255 void LCodeGen::DoCmpObjectEqAndBranch(LCmpObjectEqAndBranch* instr) { | 2255 void LCodeGen::DoCmpObjectAndBranch(LCmpObjectAndBranch* instr) { |
| 2256 Register left = ToRegister(instr->left()); | 2256 Register left = ToRegister(instr->left()); |
| 2257 Register right = ToRegister(instr->right()); | 2257 Register right = ToRegister(instr->right()); |
| 2258 | 2258 |
| 2259 EmitBranch(instr, eq, left, Operand(right)); | 2259 EmitBranch(instr, eq, left, Operand(right)); |
| 2260 } | 2260 } |
| 2261 | 2261 |
| 2262 | 2262 |
| 2263 Condition LCodeGen::EmitIsObject(Register input, | 2263 Condition LCodeGen::EmitIsObject(Register input, |
| 2264 Register temp1, | 2264 Register temp1, |
| 2265 Register temp2, | 2265 Register temp2, |
| (...skipping 3570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5836 __ Subu(scratch, result, scratch); | 5836 __ Subu(scratch, result, scratch); |
| 5837 __ lw(result, FieldMemOperand(scratch, | 5837 __ lw(result, FieldMemOperand(scratch, |
| 5838 FixedArray::kHeaderSize - kPointerSize)); | 5838 FixedArray::kHeaderSize - kPointerSize)); |
| 5839 __ bind(&done); | 5839 __ bind(&done); |
| 5840 } | 5840 } |
| 5841 | 5841 |
| 5842 | 5842 |
| 5843 #undef __ | 5843 #undef __ |
| 5844 | 5844 |
| 5845 } } // namespace v8::internal | 5845 } } // namespace v8::internal |
| OLD | NEW |