Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 21014004: Add equality type parameter to HCompareObjectAndBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698