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

Side by Side Diff: test/cctest/test-disasm-x64.cc

Issue 426233002: Land the Fan (disabled) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 __ cmovq(greater, rax, Operand(rdx, 3)); 413 __ cmovq(greater, rax, Operand(rdx, 3));
414 } 414 }
415 415
416 { 416 {
417 if (CpuFeatures::IsSupported(SSE4_1)) { 417 if (CpuFeatures::IsSupported(SSE4_1)) {
418 CpuFeatureScope scope(&assm, SSE4_1); 418 CpuFeatureScope scope(&assm, SSE4_1);
419 __ extractps(rax, xmm1, 0); 419 __ extractps(rax, xmm1, 0);
420 } 420 }
421 } 421 }
422 422
423 // xchg.
424 {
425 __ xchgq(rax, rax);
426 __ xchgq(rax, rbx);
427 __ xchgq(rbx, rbx);
428 __ xchgq(rbx, Operand(rsp, 12));
429 }
430
423 // Nop instructions 431 // Nop instructions
424 for (int i = 0; i < 16; i++) { 432 for (int i = 0; i < 16; i++) {
425 __ Nop(i); 433 __ Nop(i);
426 } 434 }
427 435
428 __ ret(0); 436 __ ret(0);
429 437
430 CodeDesc desc; 438 CodeDesc desc;
431 assm.GetCode(&desc); 439 assm.GetCode(&desc);
432 Handle<Code> code = isolate->factory()->NewCode( 440 Handle<Code> code = isolate->factory()->NewCode(
433 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); 441 desc, Code::ComputeFlags(Code::STUB), Handle<Code>());
434 USE(code); 442 USE(code);
435 #ifdef OBJECT_PRINT 443 #ifdef OBJECT_PRINT
436 OFStream os(stdout); 444 OFStream os(stdout);
437 code->Print(os); 445 code->Print(os);
438 byte* begin = code->instruction_start(); 446 byte* begin = code->instruction_start();
439 byte* end = begin + code->instruction_size(); 447 byte* end = begin + code->instruction_size();
440 disasm::Disassembler::Disassemble(stdout, begin, end); 448 disasm::Disassembler::Disassemble(stdout, begin, end);
441 #endif 449 #endif
442 } 450 }
443 451
444 #undef __ 452 #undef __
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698