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

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

Issue 6577036: [Isolates] Merge from bleeding_edge to isolates, revisions 6100-6300. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
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-debug.cc ('k') | test/cctest/test-parsing.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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 __ cmov(not_sign, eax, Operand(ecx, 1)); 410 __ cmov(not_sign, eax, Operand(ecx, 1));
411 __ cmov(parity_even, eax, Operand(ecx, 2)); 411 __ cmov(parity_even, eax, Operand(ecx, 2));
412 __ cmov(parity_odd, eax, Operand(ecx, 3)); 412 __ cmov(parity_odd, eax, Operand(ecx, 3));
413 __ cmov(less, eax, Operand(edx, 0)); 413 __ cmov(less, eax, Operand(edx, 0));
414 __ cmov(greater_equal, eax, Operand(edx, 1)); 414 __ cmov(greater_equal, eax, Operand(edx, 1));
415 __ cmov(less_equal, eax, Operand(edx, 2)); 415 __ cmov(less_equal, eax, Operand(edx, 2));
416 __ cmov(greater, eax, Operand(edx, 3)); 416 __ cmov(greater, eax, Operand(edx, 3));
417 } 417 }
418 } 418 }
419 419
420 // andpd, cmpltsd, movaps, psllq. 420 // andpd, cmpltsd, movaps, psllq, psrlq, por.
421 { 421 {
422 if (Isolate::Current()->cpu_features()->IsSupported(SSE2)) { 422 if (Isolate::Current()->cpu_features()->IsSupported(SSE2)) {
423 CpuFeatures::Scope fscope(SSE2); 423 CpuFeatures::Scope fscope(SSE2);
424 __ andpd(xmm0, xmm1); 424 __ andpd(xmm0, xmm1);
425 __ andpd(xmm1, xmm2); 425 __ andpd(xmm1, xmm2);
426 426
427 __ cmpltsd(xmm0, xmm1); 427 __ cmpltsd(xmm0, xmm1);
428 __ cmpltsd(xmm1, xmm2); 428 __ cmpltsd(xmm1, xmm2);
429 429
430 __ movaps(xmm0, xmm1); 430 __ movaps(xmm0, xmm1);
431 __ movaps(xmm1, xmm2); 431 __ movaps(xmm1, xmm2);
432 432
433 __ psllq(xmm0, 17); 433 __ psllq(xmm0, 17);
434 __ psllq(xmm1, 42); 434 __ psllq(xmm1, 42);
435
436 __ psllq(xmm0, xmm1);
437 __ psllq(xmm1, xmm2);
438
439 __ psrlq(xmm0, 17);
440 __ psrlq(xmm1, 42);
441
442 __ psrlq(xmm0, xmm1);
443 __ psrlq(xmm1, xmm2);
444
445 __ por(xmm0, xmm1);
446 __ por(xmm1, xmm2);
435 } 447 }
436 } 448 }
437 449
438 __ ret(0); 450 __ ret(0);
439 451
440 CodeDesc desc; 452 CodeDesc desc;
441 assm.GetCode(&desc); 453 assm.GetCode(&desc);
442 Object* code = HEAP->CreateCode( 454 Object* code = HEAP->CreateCode(
443 desc, 455 desc,
444 Code::ComputeFlags(Code::STUB), 456 Code::ComputeFlags(Code::STUB),
445 Handle<Object>(HEAP->undefined_value()))->ToObjectChecked(); 457 Handle<Object>(HEAP->undefined_value()))->ToObjectChecked();
446 CHECK(code->IsCode()); 458 CHECK(code->IsCode());
447 #ifdef DEBUG 459 #ifdef OBJECT_PRINT
448 Code::cast(code)->Print(); 460 Code::cast(code)->Print();
449 byte* begin = Code::cast(code)->instruction_start(); 461 byte* begin = Code::cast(code)->instruction_start();
450 byte* end = begin + Code::cast(code)->instruction_size(); 462 byte* end = begin + Code::cast(code)->instruction_size();
451 disasm::Disassembler::Disassemble(stdout, begin, end); 463 disasm::Disassembler::Disassemble(stdout, begin, end);
452 #endif 464 #endif
453 } 465 }
454 466
455 #undef __ 467 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-debug.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698