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

Side by Side Diff: runtime/vm/intermediate_language_ia32.cc

Issue 23018009: Add add and subtract operations to Uint32x4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 3669 matching lines...) Expand 10 before | Expand all | Expand 10 after
3680 break; 3680 break;
3681 } 3681 }
3682 case Token::kBIT_OR: { 3682 case Token::kBIT_OR: {
3683 __ orps(left, right); 3683 __ orps(left, right);
3684 break; 3684 break;
3685 } 3685 }
3686 case Token::kBIT_XOR: { 3686 case Token::kBIT_XOR: {
3687 __ xorps(left, right); 3687 __ xorps(left, right);
3688 break; 3688 break;
3689 } 3689 }
3690 case Token::kADD:
3691 __ addpl(left, right);
3692 break;
srdjan 2013/08/19 21:45:23 ditto
Cutch 2013/08/19 21:58:25 Done.
3693 case Token::kSUB:
3694 __ subpl(left, right);
3695 break;
3690 default: UNREACHABLE(); 3696 default: UNREACHABLE();
3691 } 3697 }
3692 } 3698 }
3693 3699
3694 3700
3695 LocationSummary* MathUnaryInstr::MakeLocationSummary() const { 3701 LocationSummary* MathUnaryInstr::MakeLocationSummary() const {
3696 const intptr_t kNumInputs = 1; 3702 const intptr_t kNumInputs = 1;
3697 const intptr_t kNumTemps = 0; 3703 const intptr_t kNumTemps = 0;
3698 LocationSummary* summary = 3704 LocationSummary* summary =
3699 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); 3705 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
(...skipping 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
4978 PcDescriptors::kOther, 4984 PcDescriptors::kOther,
4979 locs()); 4985 locs());
4980 __ Drop(2); // Discard type arguments and receiver. 4986 __ Drop(2); // Discard type arguments and receiver.
4981 } 4987 }
4982 4988
4983 } // namespace dart 4989 } // namespace dart
4984 4990
4985 #undef __ 4991 #undef __
4986 4992
4987 #endif // defined TARGET_ARCH_IA32 4993 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698