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

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

Issue 70333002: Merged r17441 into 3.20 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.20
Patch Set: Created 7 years, 1 month 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-uint32-analysis.cc ('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 4888 matching lines...) Expand 10 before | Expand all | Expand 10 after
4899 LOperand* input = instr->value(); 4899 LOperand* input = instr->value();
4900 LOperand* output = instr->result(); 4900 LOperand* output = instr->result();
4901 LOperand* temp = instr->temp(); 4901 LOperand* temp = instr->temp();
4902 4902
4903 __ LoadUint32(ToDoubleRegister(output), 4903 __ LoadUint32(ToDoubleRegister(output),
4904 ToRegister(input), 4904 ToRegister(input),
4905 ToDoubleRegister(temp)); 4905 ToDoubleRegister(temp));
4906 } 4906 }
4907 4907
4908 4908
4909 void LCodeGen::DoUint32ToSmi(LUint32ToSmi* instr) {
4910 Register input = ToRegister(instr->value());
4911 if (!instr->hydrogen()->value()->HasRange() ||
4912 !instr->hydrogen()->value()->range()->IsInSmiRange()) {
4913 __ test(input, Immediate(0xc0000000));
4914 DeoptimizeIf(not_zero, instr->environment());
4915 }
4916 __ SmiTag(input);
4917 }
4918
4919
4909 void LCodeGen::DoNumberTagI(LNumberTagI* instr) { 4920 void LCodeGen::DoNumberTagI(LNumberTagI* instr) {
4910 class DeferredNumberTagI: public LDeferredCode { 4921 class DeferredNumberTagI: public LDeferredCode {
4911 public: 4922 public:
4912 DeferredNumberTagI(LCodeGen* codegen, LNumberTagI* instr) 4923 DeferredNumberTagI(LCodeGen* codegen, LNumberTagI* instr)
4913 : LDeferredCode(codegen), instr_(instr) { } 4924 : LDeferredCode(codegen), instr_(instr) { }
4914 virtual void Generate() { 4925 virtual void Generate() {
4915 codegen()->DoDeferredNumberTagI(instr_, instr_->value(), SIGNED_INT32); 4926 codegen()->DoDeferredNumberTagI(instr_, instr_->value(), SIGNED_INT32);
4916 } 4927 }
4917 virtual LInstruction* instr() { return instr_; } 4928 virtual LInstruction* instr() { return instr_; }
4918 private: 4929 private:
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
6453 FixedArray::kHeaderSize - kPointerSize)); 6464 FixedArray::kHeaderSize - kPointerSize));
6454 __ bind(&done); 6465 __ bind(&done);
6455 } 6466 }
6456 6467
6457 6468
6458 #undef __ 6469 #undef __
6459 6470
6460 } } // namespace v8::internal 6471 } } // namespace v8::internal
6461 6472
6462 #endif // V8_TARGET_ARCH_IA32 6473 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-uint32-analysis.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698