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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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, 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/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.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 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after
2419 Handle<Object> right = ToHandle(LConstantOperand::cast(instr->right())); 2419 Handle<Object> right = ToHandle(LConstantOperand::cast(instr->right()));
2420 __ CmpObject(left, right); 2420 __ CmpObject(left, right);
2421 } else { 2421 } else {
2422 Operand right = ToOperand(instr->right()); 2422 Operand right = ToOperand(instr->right());
2423 __ cmp(left, right); 2423 __ cmp(left, right);
2424 } 2424 }
2425 EmitBranch(instr, equal); 2425 EmitBranch(instr, equal);
2426 } 2426 }
2427 2427
2428 2428
2429 void LCodeGen::DoCmpConstantEqAndBranch(LCmpConstantEqAndBranch* instr) {
2430 Register left = ToRegister(instr->left());
2431
2432 __ cmp(left, instr->hydrogen()->right());
2433 EmitBranch(instr, equal);
2434 }
2435
2436
2437 Condition LCodeGen::EmitIsObject(Register input, 2429 Condition LCodeGen::EmitIsObject(Register input,
2438 Register temp1, 2430 Register temp1,
2439 Label* is_not_object, 2431 Label* is_not_object,
2440 Label* is_object) { 2432 Label* is_object) {
2441 __ JumpIfSmi(input, is_not_object); 2433 __ JumpIfSmi(input, is_not_object);
2442 2434
2443 __ cmp(input, isolate()->factory()->null_value()); 2435 __ cmp(input, isolate()->factory()->null_value());
2444 __ j(equal, is_object); 2436 __ j(equal, is_object);
2445 2437
2446 __ mov(temp1, FieldOperand(input, HeapObject::kMapOffset)); 2438 __ mov(temp1, FieldOperand(input, HeapObject::kMapOffset));
(...skipping 4054 matching lines...) Expand 10 before | Expand all | Expand 10 after
6501 FixedArray::kHeaderSize - kPointerSize)); 6493 FixedArray::kHeaderSize - kPointerSize));
6502 __ bind(&done); 6494 __ bind(&done);
6503 } 6495 }
6504 6496
6505 6497
6506 #undef __ 6498 #undef __
6507 6499
6508 } } // namespace v8::internal 6500 } } // namespace v8::internal
6509 6501
6510 #endif // V8_TARGET_ARCH_IA32 6502 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698