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

Side by Side Diff: src/x64/lithium-codegen-x64.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/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after
2080 Handle<Object> right = ToHandle(LConstantOperand::cast(instr->right())); 2080 Handle<Object> right = ToHandle(LConstantOperand::cast(instr->right()));
2081 __ CmpObject(left, right); 2081 __ CmpObject(left, right);
2082 } else { 2082 } else {
2083 Register right = ToRegister(instr->right()); 2083 Register right = ToRegister(instr->right());
2084 __ cmpq(left, right); 2084 __ cmpq(left, right);
2085 } 2085 }
2086 EmitBranch(instr, equal); 2086 EmitBranch(instr, equal);
2087 } 2087 }
2088 2088
2089 2089
2090 void LCodeGen::DoCmpConstantEqAndBranch(LCmpConstantEqAndBranch* instr) {
2091 Register left = ToRegister(instr->left());
2092
2093 __ cmpq(left, Immediate(instr->hydrogen()->right()));
2094 EmitBranch(instr, equal);
2095 }
2096
2097
2098 Condition LCodeGen::EmitIsObject(Register input, 2090 Condition LCodeGen::EmitIsObject(Register input,
2099 Label* is_not_object, 2091 Label* is_not_object,
2100 Label* is_object) { 2092 Label* is_object) {
2101 ASSERT(!input.is(kScratchRegister)); 2093 ASSERT(!input.is(kScratchRegister));
2102 2094
2103 __ JumpIfSmi(input, is_not_object); 2095 __ JumpIfSmi(input, is_not_object);
2104 2096
2105 __ CompareRoot(input, Heap::kNullValueRootIndex); 2097 __ CompareRoot(input, Heap::kNullValueRootIndex);
2106 __ j(equal, is_object); 2098 __ j(equal, is_object);
2107 2099
(...skipping 3430 matching lines...) Expand 10 before | Expand all | Expand 10 after
5538 FixedArray::kHeaderSize - kPointerSize)); 5530 FixedArray::kHeaderSize - kPointerSize));
5539 __ bind(&done); 5531 __ bind(&done);
5540 } 5532 }
5541 5533
5542 5534
5543 #undef __ 5535 #undef __
5544 5536
5545 } } // namespace v8::internal 5537 } } // namespace v8::internal
5546 5538
5547 #endif // V8_TARGET_ARCH_X64 5539 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698