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

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

Issue 13818006: Unboxed load/store indexed of Float32x4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 static ScaleFactor ToScaleFactor(intptr_t index_scale) { 1522 static ScaleFactor ToScaleFactor(intptr_t index_scale) {
1523 // Note that index is expected smi-tagged, (i.e, times 2) for all arrays with 1523 // Note that index is expected smi-tagged, (i.e, times 2) for all arrays with
1524 // index scale factor > 1. E.g., for Uint8Array and OneByteString the index is 1524 // index scale factor > 1. E.g., for Uint8Array and OneByteString the index is
1525 // expected to be untagged before accessing. 1525 // expected to be untagged before accessing.
1526 ASSERT(kSmiTagShift == 1); 1526 ASSERT(kSmiTagShift == 1);
1527 switch (index_scale) { 1527 switch (index_scale) {
1528 case 1: return TIMES_1; 1528 case 1: return TIMES_1;
1529 case 2: return TIMES_1; 1529 case 2: return TIMES_1;
1530 case 4: return TIMES_2; 1530 case 4: return TIMES_2;
1531 case 8: return TIMES_4; 1531 case 8: return TIMES_4;
1532 case 16: return TIMES_8;
1532 default: 1533 default:
1533 UNREACHABLE(); 1534 UNREACHABLE();
1534 return TIMES_1; 1535 return TIMES_1;
1535 } 1536 }
1536 } 1537 }
1537 1538
1538 1539
1539 FieldAddress FlowGraphCompiler::ElementAddressForRegIndex(intptr_t cid, 1540 FieldAddress FlowGraphCompiler::ElementAddressForRegIndex(intptr_t cid,
1540 intptr_t index_scale, 1541 intptr_t index_scale,
1541 Register array, 1542 Register array,
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 __ movups(reg, Address(ESP, 0)); 1771 __ movups(reg, Address(ESP, 0));
1771 __ addl(ESP, Immediate(kFpuRegisterSize)); 1772 __ addl(ESP, Immediate(kFpuRegisterSize));
1772 } 1773 }
1773 1774
1774 1775
1775 #undef __ 1776 #undef __
1776 1777
1777 } // namespace dart 1778 } // namespace dart
1778 1779
1779 #endif // defined TARGET_ARCH_IA32 1780 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698