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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 164135: X64: Implement fast charCodeAt. (Closed)
Patch Set: Created 11 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 void Assembler::movzxbq(Register dst, const Operand& src) { 1237 void Assembler::movzxbq(Register dst, const Operand& src) {
1238 EnsureSpace ensure_space(this); 1238 EnsureSpace ensure_space(this);
1239 last_pc_ = pc_; 1239 last_pc_ = pc_;
1240 emit_rex_64(dst, src); 1240 emit_rex_64(dst, src);
1241 emit(0x0F); 1241 emit(0x0F);
1242 emit(0xB6); 1242 emit(0xB6);
1243 emit_operand(dst, src); 1243 emit_operand(dst, src);
1244 } 1244 }
1245 1245
1246 1246
1247 void Assembler::movzxbl(Register dst, const Operand& src) {
1248 EnsureSpace ensure_space(this);
1249 last_pc_ = pc_;
1250 emit_optional_rex_32(dst, src);
1251 emit(0x0F);
1252 emit(0xB6);
1253 emit_operand(dst, src);
1254 }
1255
1256
1257 void Assembler::movzxwl(Register dst, const Operand& src) {
1258 EnsureSpace ensure_space(this);
1259 last_pc_ = pc_;
1260 emit_optional_rex_32(dst, src);
1261 emit(0x0F);
1262 emit(0xB7);
1263 emit_operand(dst, src);
1264 }
1265
1266
1247 void Assembler::mul(Register src) { 1267 void Assembler::mul(Register src) {
1248 EnsureSpace ensure_space(this); 1268 EnsureSpace ensure_space(this);
1249 last_pc_ = pc_; 1269 last_pc_ = pc_;
1250 emit_rex_64(src); 1270 emit_rex_64(src);
1251 emit(0xF7); 1271 emit(0xF7);
1252 emit_modrm(0x4, src); 1272 emit_modrm(0x4, src);
1253 } 1273 }
1254 1274
1255 1275
1256 void Assembler::neg(Register dst) { 1276 void Assembler::neg(Register dst) {
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2204 RecordRelocInfo(RelocInfo::POSITION, current_position_); 2224 RecordRelocInfo(RelocInfo::POSITION, current_position_);
2205 written_position_ = current_position_; 2225 written_position_ = current_position_;
2206 } 2226 }
2207 } 2227 }
2208 2228
2209 2229
2210 const int RelocInfo::kApplyMask = 1 << RelocInfo::INTERNAL_REFERENCE; 2230 const int RelocInfo::kApplyMask = 1 << RelocInfo::INTERNAL_REFERENCE;
2211 2231
2212 2232
2213 } } // namespace v8::internal 2233 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/codegen-x64.cc » ('j') | src/x64/codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698