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

Side by Side Diff: src/arm/codegen-arm.h

Issue 2843010: ARM: Load the heap number map into a register and keep it... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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 | « no previous file | src/arm/codegen-arm.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 (lhs_.is(r1) && rhs_.is(r0))); 662 (lhs_.is(r1) && rhs_.is(r0)));
663 // Encode the parameters in a unique 18 bit value. 663 // Encode the parameters in a unique 18 bit value.
664 return OpBits::encode(op_) 664 return OpBits::encode(op_)
665 | ModeBits::encode(mode_) 665 | ModeBits::encode(mode_)
666 | KnownIntBits::encode(MinorKeyForKnownInt()) 666 | KnownIntBits::encode(MinorKeyForKnownInt())
667 | TypeInfoBits::encode(runtime_operands_type_) 667 | TypeInfoBits::encode(runtime_operands_type_)
668 | RegisterBits::encode(lhs_.is(r0)); 668 | RegisterBits::encode(lhs_.is(r0));
669 } 669 }
670 670
671 void Generate(MacroAssembler* masm); 671 void Generate(MacroAssembler* masm);
672 void HandleNonSmiBitwiseOp(MacroAssembler* masm, Register lhs, Register rhs); 672 void HandleNonSmiBitwiseOp(MacroAssembler* masm,
673 Register lhs,
674 Register rhs);
673 void HandleBinaryOpSlowCases(MacroAssembler* masm, 675 void HandleBinaryOpSlowCases(MacroAssembler* masm,
674 Label* not_smi, 676 Label* not_smi,
675 Register lhs, 677 Register lhs,
676 Register rhs, 678 Register rhs,
677 const Builtins::JavaScript& builtin); 679 const Builtins::JavaScript& builtin);
678 void GenerateTypeTransition(MacroAssembler* masm); 680 void GenerateTypeTransition(MacroAssembler* masm);
679 681
680 static bool RhsIsOneWeWantToOptimizeFor(Token::Value op, int constant_rhs) { 682 static bool RhsIsOneWeWantToOptimizeFor(Token::Value op, int constant_rhs) {
681 if (constant_rhs == CodeGenerator::kUnknownIntValue) return false; 683 if (constant_rhs == CodeGenerator::kUnknownIntValue) return false;
682 if (op == Token::DIV) return constant_rhs >= 2 && constant_rhs <= 3; 684 if (op == Token::DIV) return constant_rhs >= 2 && constant_rhs <= 3;
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 return ObjectBits::encode(object_.code()) | 986 return ObjectBits::encode(object_.code()) |
985 OffsetBits::encode(offset_.code()) | 987 OffsetBits::encode(offset_.code()) |
986 ScratchBits::encode(scratch_.code()); 988 ScratchBits::encode(scratch_.code());
987 } 989 }
988 }; 990 };
989 991
990 992
991 } } // namespace v8::internal 993 } } // namespace v8::internal
992 994
993 #endif // V8_ARM_CODEGEN_ARM_H_ 995 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698