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 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2233 | 2233 |
2234 | 2234 |
2235 void LCodeGen::DoCmpObjectEqAndBranch(LCmpObjectEqAndBranch* instr) { | 2235 void LCodeGen::DoCmpObjectEqAndBranch(LCmpObjectEqAndBranch* instr) { |
2236 Register left = ToRegister(instr->left()); | 2236 Register left = ToRegister(instr->left()); |
2237 Register right = ToRegister(instr->right()); | 2237 Register right = ToRegister(instr->right()); |
2238 | 2238 |
2239 EmitBranch(instr, eq, left, Operand(right)); | 2239 EmitBranch(instr, eq, left, Operand(right)); |
2240 } | 2240 } |
2241 | 2241 |
2242 | 2242 |
2243 void LCodeGen::DoCmpConstantEqAndBranch(LCmpConstantEqAndBranch* instr) { | |
2244 Register left = ToRegister(instr->left()); | |
2245 | |
2246 EmitBranch(instr, eq, left, Operand(instr->hydrogen()->right())); | |
2247 } | |
2248 | |
2249 | |
2250 Condition LCodeGen::EmitIsObject(Register input, | 2243 Condition LCodeGen::EmitIsObject(Register input, |
2251 Register temp1, | 2244 Register temp1, |
2252 Register temp2, | 2245 Register temp2, |
2253 Label* is_not_object, | 2246 Label* is_not_object, |
2254 Label* is_object) { | 2247 Label* is_object) { |
2255 __ JumpIfSmi(input, is_not_object); | 2248 __ JumpIfSmi(input, is_not_object); |
2256 | 2249 |
2257 __ LoadRoot(temp2, Heap::kNullValueRootIndex); | 2250 __ LoadRoot(temp2, Heap::kNullValueRootIndex); |
2258 __ Branch(is_object, eq, input, Operand(temp2)); | 2251 __ Branch(is_object, eq, input, Operand(temp2)); |
2259 | 2252 |
(...skipping 3564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5824 __ Subu(scratch, result, scratch); | 5817 __ Subu(scratch, result, scratch); |
5825 __ lw(result, FieldMemOperand(scratch, | 5818 __ lw(result, FieldMemOperand(scratch, |
5826 FixedArray::kHeaderSize - kPointerSize)); | 5819 FixedArray::kHeaderSize - kPointerSize)); |
5827 __ bind(&done); | 5820 __ bind(&done); |
5828 } | 5821 } |
5829 | 5822 |
5830 | 5823 |
5831 #undef __ | 5824 #undef __ |
5832 | 5825 |
5833 } } // namespace v8::internal | 5826 } } // namespace v8::internal |
OLD | NEW |