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

Side by Side Diff: runtime/vm/intermediate_language_x64.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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 3710 matching lines...) Expand 10 before | Expand all | Expand 10 after
3721 break; 3721 break;
3722 } 3722 }
3723 case Token::kBIT_OR: { 3723 case Token::kBIT_OR: {
3724 __ orps(left, right); 3724 __ orps(left, right);
3725 break; 3725 break;
3726 } 3726 }
3727 case Token::kBIT_XOR: { 3727 case Token::kBIT_XOR: {
3728 __ xorps(left, right); 3728 __ xorps(left, right);
3729 break; 3729 break;
3730 } 3730 }
3731 case Token::kADD:
3732 __ addpl(left, right);
3733 break;
3734 case Token::kSUB:
3735 __ subpl(left, right);
3736 break;
3731 default: UNREACHABLE(); 3737 default: UNREACHABLE();
3732 } 3738 }
3733 } 3739 }
3734 3740
3735 3741
3736 LocationSummary* MathUnaryInstr::MakeLocationSummary() const { 3742 LocationSummary* MathUnaryInstr::MakeLocationSummary() const {
3737 const intptr_t kNumInputs = 1; 3743 const intptr_t kNumInputs = 1;
3738 const intptr_t kNumTemps = 0; 3744 const intptr_t kNumTemps = 0;
3739 LocationSummary* summary = 3745 LocationSummary* summary =
3740 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); 3746 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
4608 PcDescriptors::kOther, 4614 PcDescriptors::kOther,
4609 locs()); 4615 locs());
4610 __ Drop(2); // Discard type arguments and receiver. 4616 __ Drop(2); // Discard type arguments and receiver.
4611 } 4617 }
4612 4618
4613 } // namespace dart 4619 } // namespace dart
4614 4620
4615 #undef __ 4621 #undef __
4616 4622
4617 #endif // defined TARGET_ARCH_X64 4623 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | sdk/lib/typed_data/dart2js/typed_data_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698