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

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

Issue 6460038: Version 3.1.3.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 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
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-strtod.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 __ psrlq(xmm1, 42); 439 __ psrlq(xmm1, 42);
440 440
441 __ psrlq(xmm0, xmm1); 441 __ psrlq(xmm0, xmm1);
442 __ psrlq(xmm1, xmm2); 442 __ psrlq(xmm1, xmm2);
443 443
444 __ por(xmm0, xmm1); 444 __ por(xmm0, xmm1);
445 __ por(xmm1, xmm2); 445 __ por(xmm1, xmm2);
446 } 446 }
447 } 447 }
448 448
449 {
450 if (CpuFeatures::IsSupported(SSE4_1)) {
451 CpuFeatures::Scope scope(SSE4_1);
452 __ pextrd(Operand(eax), xmm0, 1);
453 __ pinsrd(xmm1, Operand(eax), 0);
454 }
455 }
456
449 __ ret(0); 457 __ ret(0);
450 458
451 CodeDesc desc; 459 CodeDesc desc;
452 assm.GetCode(&desc); 460 assm.GetCode(&desc);
453 Object* code = Heap::CreateCode( 461 Object* code = Heap::CreateCode(
454 desc, 462 desc,
455 Code::ComputeFlags(Code::STUB), 463 Code::ComputeFlags(Code::STUB),
456 Handle<Object>(Heap::undefined_value()))->ToObjectChecked(); 464 Handle<Object>(Heap::undefined_value()))->ToObjectChecked();
457 CHECK(code->IsCode()); 465 CHECK(code->IsCode());
458 #ifdef OBJECT_PRINT 466 #ifdef OBJECT_PRINT
459 Code::cast(code)->Print(); 467 Code::cast(code)->Print();
460 byte* begin = Code::cast(code)->instruction_start(); 468 byte* begin = Code::cast(code)->instruction_start();
461 byte* end = begin + Code::cast(code)->instruction_size(); 469 byte* end = begin + Code::cast(code)->instruction_size();
462 disasm::Disassembler::Disassemble(stdout, begin, end); 470 disasm::Disassembler::Disassemble(stdout, begin, end);
463 #endif 471 #endif
464 } 472 }
465 473
466 #undef __ 474 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-strtod.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698