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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 9223011: Some assembler-level optimizations on ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: . Created 8 years, 10 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 mov(reg, scratch); 1142 mov(reg, scratch);
1143 } 1143 }
1144 1144
1145 void SmiUntag(Register reg, SBit s = LeaveCC) { 1145 void SmiUntag(Register reg, SBit s = LeaveCC) {
1146 mov(reg, Operand(reg, ASR, kSmiTagSize), s); 1146 mov(reg, Operand(reg, ASR, kSmiTagSize), s);
1147 } 1147 }
1148 void SmiUntag(Register dst, Register src, SBit s = LeaveCC) { 1148 void SmiUntag(Register dst, Register src, SBit s = LeaveCC) {
1149 mov(dst, Operand(src, ASR, kSmiTagSize), s); 1149 mov(dst, Operand(src, ASR, kSmiTagSize), s);
1150 } 1150 }
1151 1151
1152 // Tentatively untag and jump if the value has been a smi.
ulan 2012/01/27 15:24:35 "Tentatively" is a bit misleading, since the funct
1153 void UntagAndJumpIfSmi(Register dst, Register src, Label* smi_case);
1154
1155 // Tentatively untag and jump if the value has not been a smi.
1156 void UntagAndJumpIfNotSmi(Register dst, Register src, Label* smi_case);
1157
1152 // Jump the register contains a smi. 1158 // Jump the register contains a smi.
1153 inline void JumpIfSmi(Register value, Label* smi_label) { 1159 inline void JumpIfSmi(Register value, Label* smi_label) {
1154 tst(value, Operand(kSmiTagMask)); 1160 tst(value, Operand(kSmiTagMask));
1155 b(eq, smi_label); 1161 b(eq, smi_label);
1156 } 1162 }
1157 // Jump if either of the registers contain a non-smi. 1163 // Jump if either of the registers contain a non-smi.
1158 inline void JumpIfNotSmi(Register value, Label* not_smi_label) { 1164 inline void JumpIfNotSmi(Register value, Label* not_smi_label) {
1159 tst(value, Operand(kSmiTagMask)); 1165 tst(value, Operand(kSmiTagMask));
1160 b(ne, not_smi_label); 1166 b(ne, not_smi_label);
1161 } 1167 }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1357 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1352 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1358 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1353 #else 1359 #else
1354 #define ACCESS_MASM(masm) masm-> 1360 #define ACCESS_MASM(masm) masm->
1355 #endif 1361 #endif
1356 1362
1357 1363
1358 } } // namespace v8::internal 1364 } } // namespace v8::internal
1359 1365
1360 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 1366 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698