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

Side by Side Diff: src/x64/lithium-x64.cc

Issue 7132002: Remove RESTORE_CONTEXT flag from ia32 crankshaft codegen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: last linting changes Created 9 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/ia32/lithium-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 ASSERT(instr->left()->representation().IsTagged()); 824 ASSERT(instr->left()->representation().IsTagged());
825 ASSERT(instr->right()->representation().IsTagged()); 825 ASSERT(instr->right()->representation().IsTagged());
826 826
827 LOperand* left = UseFixed(instr->left(), rdx); 827 LOperand* left = UseFixed(instr->left(), rdx);
828 LOperand* right = UseFixed(instr->right(), rax); 828 LOperand* right = UseFixed(instr->right(), rax);
829 LArithmeticT* result = new LArithmeticT(op, left, right); 829 LArithmeticT* result = new LArithmeticT(op, left, right);
830 return MarkAsCall(DefineFixed(result, rax), instr); 830 return MarkAsCall(DefineFixed(result, rax), instr);
831 } 831 }
832 832
833 ASSERT(instr->representation().IsInteger32()); 833 ASSERT(instr->representation().IsInteger32());
834 ASSERT(instr->OperandAt(0)->representation().IsInteger32()); 834 ASSERT(instr->left()->representation().IsInteger32());
835 ASSERT(instr->OperandAt(1)->representation().IsInteger32()); 835 ASSERT(instr->right()->representation().IsInteger32());
836 LOperand* left = UseRegisterAtStart(instr->OperandAt(0)); 836 LOperand* left = UseRegisterAtStart(instr->left());
837 837
838 HValue* right_value = instr->OperandAt(1); 838 HValue* right_value = instr->right();
839 LOperand* right = NULL; 839 LOperand* right = NULL;
840 int constant_value = 0; 840 int constant_value = 0;
841 if (right_value->IsConstant()) { 841 if (right_value->IsConstant()) {
842 HConstant* constant = HConstant::cast(right_value); 842 HConstant* constant = HConstant::cast(right_value);
843 right = chunk_->DefineConstantOperand(constant); 843 right = chunk_->DefineConstantOperand(constant);
844 constant_value = constant->Integer32Value() & 0x1f; 844 constant_value = constant->Integer32Value() & 0x1f;
845 } else { 845 } else {
846 right = UseFixed(right_value, rcx); 846 right = UseFixed(right_value, rcx);
847 } 847 }
848 848
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 LOperand* left = UseFixed(instr->left(), rax); 1052 LOperand* left = UseFixed(instr->left(), rax);
1053 LOperand* right = UseFixed(instr->right(), rdx); 1053 LOperand* right = UseFixed(instr->right(), rdx);
1054 LInstanceOf* result = new LInstanceOf(left, right); 1054 LInstanceOf* result = new LInstanceOf(left, right);
1055 return MarkAsCall(DefineFixed(result, rax), instr); 1055 return MarkAsCall(DefineFixed(result, rax), instr);
1056 } 1056 }
1057 1057
1058 1058
1059 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal( 1059 LInstruction* LChunkBuilder::DoInstanceOfKnownGlobal(
1060 HInstanceOfKnownGlobal* instr) { 1060 HInstanceOfKnownGlobal* instr) {
1061 LInstanceOfKnownGlobal* result = 1061 LInstanceOfKnownGlobal* result =
1062 new LInstanceOfKnownGlobal(UseFixed(instr->value(), rax), 1062 new LInstanceOfKnownGlobal(UseFixed(instr->left(), rax),
1063 FixedTemp(rdi)); 1063 FixedTemp(rdi));
1064 return MarkAsCall(DefineFixed(result, rax), instr); 1064 return MarkAsCall(DefineFixed(result, rax), instr);
1065 } 1065 }
1066 1066
1067 1067
1068 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) { 1068 LInstruction* LChunkBuilder::DoApplyArguments(HApplyArguments* instr) {
1069 LOperand* function = UseFixed(instr->function(), rdi); 1069 LOperand* function = UseFixed(instr->function(), rdi);
1070 LOperand* receiver = UseFixed(instr->receiver(), rax); 1070 LOperand* receiver = UseFixed(instr->receiver(), rax);
1071 LOperand* length = UseFixed(instr->length(), rbx); 1071 LOperand* length = UseFixed(instr->length(), rbx);
1072 LOperand* elements = UseFixed(instr->elements(), rcx); 1072 LOperand* elements = UseFixed(instr->elements(), rcx);
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
2138 LOperand* key = UseOrConstantAtStart(instr->key()); 2138 LOperand* key = UseOrConstantAtStart(instr->key());
2139 LOperand* object = UseOrConstantAtStart(instr->object()); 2139 LOperand* object = UseOrConstantAtStart(instr->object());
2140 LIn* result = new LIn(key, object); 2140 LIn* result = new LIn(key, object);
2141 return MarkAsCall(DefineFixed(result, rax), instr); 2141 return MarkAsCall(DefineFixed(result, rax), instr);
2142 } 2142 }
2143 2143
2144 2144
2145 } } // namespace v8::internal 2145 } } // namespace v8::internal
2146 2146
2147 #endif // V8_TARGET_ARCH_X64 2147 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698