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

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

Issue 57383004: Improve implementation of HSeqStringSetChar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Increase GVNFlags to 64bit. Add StringChars flag. Created 7 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 | 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 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 if (!src.is_byte_register()) { 1350 if (!src.is_byte_register()) {
1351 emit_rex_32(src, dst); 1351 emit_rex_32(src, dst);
1352 } else { 1352 } else {
1353 emit_optional_rex_32(src, dst); 1353 emit_optional_rex_32(src, dst);
1354 } 1354 }
1355 emit(0x88); 1355 emit(0x88);
1356 emit_operand(src, dst); 1356 emit_operand(src, dst);
1357 } 1357 }
1358 1358
1359 1359
1360 void Assembler::movb(const Operand& dst, Immediate imm) {
1361 EnsureSpace ensure_space(this);
1362 emit_optional_rex_32(dst);
1363 emit(0xC6);
1364 emit_operand(0x0, dst);
1365 emit(static_cast<byte>(imm.value_));
1366 }
1367
1368
1360 void Assembler::movw(const Operand& dst, Register src) { 1369 void Assembler::movw(const Operand& dst, Register src) {
1361 EnsureSpace ensure_space(this); 1370 EnsureSpace ensure_space(this);
1362 emit(0x66); 1371 emit(0x66);
1363 emit_optional_rex_32(src, dst); 1372 emit_optional_rex_32(src, dst);
1364 emit(0x89); 1373 emit(0x89);
1365 emit_operand(src, dst); 1374 emit_operand(src, dst);
1366 } 1375 }
1367 1376
1368 1377
1378 void Assembler::movw(const Operand& dst, Immediate imm) {
1379 EnsureSpace ensure_space(this);
1380 emit(0x66);
1381 emit_optional_rex_32(dst);
1382 emit(0xC7);
1383 emit_operand(0x0, dst);
1384 emit(static_cast<byte>(imm.value_ & 0xff));
1385 emit(static_cast<byte>(imm.value_ >> 8));
1386 }
1387
1388
1369 void Assembler::movl(Register dst, const Operand& src) { 1389 void Assembler::movl(Register dst, const Operand& src) {
1370 EnsureSpace ensure_space(this); 1390 EnsureSpace ensure_space(this);
1371 emit_optional_rex_32(dst, src); 1391 emit_optional_rex_32(dst, src);
1372 emit(0x8B); 1392 emit(0x8B);
1373 emit_operand(dst, src); 1393 emit_operand(dst, src);
1374 } 1394 }
1375 1395
1376 1396
1377 void Assembler::movl(Register dst, Register src) { 1397 void Assembler::movl(Register dst, Register src) {
1378 EnsureSpace ensure_space(this); 1398 EnsureSpace ensure_space(this);
(...skipping 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
3089 bool RelocInfo::IsCodedSpecially() { 3109 bool RelocInfo::IsCodedSpecially() {
3090 // The deserializer needs to know whether a pointer is specially coded. Being 3110 // The deserializer needs to know whether a pointer is specially coded. Being
3091 // specially coded on x64 means that it is a relative 32 bit address, as used 3111 // specially coded on x64 means that it is a relative 32 bit address, as used
3092 // by branch instructions. 3112 // by branch instructions.
3093 return (1 << rmode_) & kApplyMask; 3113 return (1 << rmode_) & kApplyMask;
3094 } 3114 }
3095 3115
3096 } } // namespace v8::internal 3116 } } // namespace v8::internal
3097 3117
3098 #endif // V8_TARGET_ARCH_X64 3118 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698