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

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

Issue 23401002: Fix the CPU feature detection. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Improve cpuinfo parsing. Created 7 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
« no previous file with comments | « test/cctest/test-cpu-x64.cc ('k') | tools/gyp/v8.gyp » ('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 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 __ cmp(edx, 3); 92 __ cmp(edx, 3);
93 __ cmp(edx, Operand(esp, 4)); 93 __ cmp(edx, Operand(esp, 4));
94 __ cmp(Operand(ebp, ecx, times_4, 0), Immediate(1000)); 94 __ cmp(Operand(ebp, ecx, times_4, 0), Immediate(1000));
95 Handle<FixedArray> foo2 = isolate->factory()->NewFixedArray(10, TENURED); 95 Handle<FixedArray> foo2 = isolate->factory()->NewFixedArray(10, TENURED);
96 __ cmp(ebx, foo2); 96 __ cmp(ebx, foo2);
97 __ cmpb(ebx, Operand(ebp, ecx, times_2, 0)); 97 __ cmpb(ebx, Operand(ebp, ecx, times_2, 0));
98 __ cmpb(Operand(ebp, ecx, times_2, 0), ebx); 98 __ cmpb(Operand(ebp, ecx, times_2, 0), ebx);
99 __ or_(edx, 3); 99 __ or_(edx, 3);
100 __ xor_(edx, 3); 100 __ xor_(edx, 3);
101 __ nop(); 101 __ nop();
102 { 102 __ cpuid();
103 CHECK(CpuFeatures::IsSupported(CPUID));
104 CpuFeatureScope fscope(&assm, CPUID);
105 __ cpuid();
106 }
107 __ movsx_b(edx, ecx); 103 __ movsx_b(edx, ecx);
108 __ movsx_w(edx, ecx); 104 __ movsx_w(edx, ecx);
109 __ movzx_b(edx, ecx); 105 __ movzx_b(edx, ecx);
110 __ movzx_w(edx, ecx); 106 __ movzx_w(edx, ecx);
111 107
112 __ nop(); 108 __ nop();
113 __ imul(edx, ecx); 109 __ imul(edx, ecx);
114 __ shld(edx, ecx); 110 __ shld(edx, ecx);
115 __ shrd(edx, ecx); 111 __ shrd(edx, ecx);
116 __ bts(edx, ecx); 112 __ bts(edx, ecx);
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 CHECK(code->IsCode()); 448 CHECK(code->IsCode());
453 #ifdef OBJECT_PRINT 449 #ifdef OBJECT_PRINT
454 Code::cast(code)->Print(); 450 Code::cast(code)->Print();
455 byte* begin = Code::cast(code)->instruction_start(); 451 byte* begin = Code::cast(code)->instruction_start();
456 byte* end = begin + Code::cast(code)->instruction_size(); 452 byte* end = begin + Code::cast(code)->instruction_size();
457 disasm::Disassembler::Disassemble(stdout, begin, end); 453 disasm::Disassembler::Disassemble(stdout, begin, end);
458 #endif 454 #endif
459 } 455 }
460 456
461 #undef __ 457 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-cpu-x64.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698