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

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

Issue 19691005: Remove HCompareConstantEqAndBranch (never used), and its corresponding Lithium instructions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.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 2354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 2365
2366 void LCodeGen::DoCmpObjectEqAndBranch(LCmpObjectEqAndBranch* instr) { 2366 void LCodeGen::DoCmpObjectEqAndBranch(LCmpObjectEqAndBranch* instr) {
2367 Register left = ToRegister(instr->left()); 2367 Register left = ToRegister(instr->left());
2368 Register right = ToRegister(instr->right()); 2368 Register right = ToRegister(instr->right());
2369 2369
2370 __ cmp(left, Operand(right)); 2370 __ cmp(left, Operand(right));
2371 EmitBranch(instr, eq); 2371 EmitBranch(instr, eq);
2372 } 2372 }
2373 2373
2374 2374
2375 void LCodeGen::DoCmpConstantEqAndBranch(LCmpConstantEqAndBranch* instr) {
2376 Register left = ToRegister(instr->left());
2377
2378 __ cmp(left, Operand(instr->hydrogen()->right()));
2379 EmitBranch(instr, eq);
2380 }
2381
2382
2383 Condition LCodeGen::EmitIsObject(Register input, 2375 Condition LCodeGen::EmitIsObject(Register input,
2384 Register temp1, 2376 Register temp1,
2385 Label* is_not_object, 2377 Label* is_not_object,
2386 Label* is_object) { 2378 Label* is_object) {
2387 Register temp2 = scratch0(); 2379 Register temp2 = scratch0();
2388 __ JumpIfSmi(input, is_not_object); 2380 __ JumpIfSmi(input, is_not_object);
2389 2381
2390 __ LoadRoot(temp2, Heap::kNullValueRootIndex); 2382 __ LoadRoot(temp2, Heap::kNullValueRootIndex);
2391 __ cmp(input, temp2); 2383 __ cmp(input, temp2);
2392 __ b(eq, is_object); 2384 __ b(eq, is_object);
(...skipping 3433 matching lines...) Expand 10 before | Expand all | Expand 10 after
5826 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5827 __ ldr(result, FieldMemOperand(scratch, 5819 __ ldr(result, FieldMemOperand(scratch,
5828 FixedArray::kHeaderSize - kPointerSize)); 5820 FixedArray::kHeaderSize - kPointerSize));
5829 __ bind(&done); 5821 __ bind(&done);
5830 } 5822 }
5831 5823
5832 5824
5833 #undef __ 5825 #undef __
5834 5826
5835 } } // namespace v8::internal 5827 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698