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

Side by Side Diff: src/DartARM32/assembler_arm.h

Issue 1424863005: Handle MOV (immediate) and MOVT to load ARM global addresses. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix movw and movt Created 5 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
« no previous file with comments | « no previous file | src/DartARM32/assembler_arm.cc » ('j') | src/IceAssemblerARM32.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe 5 // This is forked from Dart revision df52deea9f25690eb8b66c5995da92b70f7ac1fe
6 // Please update the (git) revision if we merge changes from Dart. 6 // Please update the (git) revision if we merge changes from Dart.
7 // https://code.google.com/p/dart/wiki/GettingTheSource 7 // https://code.google.com/p/dart/wiki/GettingTheSource
8 8
9 #ifndef VM_ASSEMBLER_ARM_H_ 9 #ifndef VM_ASSEMBLER_ARM_H_
10 #define VM_ASSEMBLER_ARM_H_ 10 #define VM_ASSEMBLER_ARM_H_
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 } 1062 }
1063 1063
1064 private: 1064 private:
1065 AssemblerBuffer buffer_; // Contains position independent code. 1065 AssemblerBuffer buffer_; // Contains position independent code.
1066 ObjectPoolWrapper object_pool_wrapper_; 1066 ObjectPoolWrapper object_pool_wrapper_;
1067 1067
1068 int32_t prologue_offset_; 1068 int32_t prologue_offset_;
1069 1069
1070 bool use_far_branches_; 1070 bool use_far_branches_;
1071 1071
1072 #if 0
1072 // If you are thinking of using one or both of these instructions directly, 1073 // If you are thinking of using one or both of these instructions directly,
1073 // instead LoadImmediate should probably be used. 1074 // instead LoadImmediate should probably be used.
1075 // Moved to ARM::AssemblerARM32::movw
1074 void movw(Register rd, uint16_t imm16, Condition cond = AL); 1076 void movw(Register rd, uint16_t imm16, Condition cond = AL);
1077 // Moved to ARM::AssemblerARM32::movt
1075 void movt(Register rd, uint16_t imm16, Condition cond = AL); 1078 void movt(Register rd, uint16_t imm16, Condition cond = AL);
1079 #endif
1076 1080
1077 void BindARMv6(Label* label); 1081 void BindARMv6(Label* label);
1078 void BindARMv7(Label* label); 1082 void BindARMv7(Label* label);
1079 1083
1080 void LoadWordFromPoolOffset(Register rd, 1084 void LoadWordFromPoolOffset(Register rd,
1081 int32_t offset, 1085 int32_t offset,
1082 Register pp, 1086 Register pp,
1083 Condition cond); 1087 Condition cond);
1084 1088
1085 void BranchLink(const ExternalLabel* label); 1089 void BranchLink(const ExternalLabel* label);
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 Register new_value, 1250 Register new_value,
1247 FieldContent old_content); 1251 FieldContent old_content);
1248 1252
1249 DISALLOW_ALLOCATION(); 1253 DISALLOW_ALLOCATION();
1250 DISALLOW_COPY_AND_ASSIGN(Assembler); 1254 DISALLOW_COPY_AND_ASSIGN(Assembler);
1251 }; 1255 };
1252 1256
1253 } // namespace dart 1257 } // namespace dart
1254 1258
1255 #endif // VM_ASSEMBLER_ARM_H_ 1259 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/DartARM32/assembler_arm.cc » ('j') | src/IceAssemblerARM32.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698