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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 391051: Allow a platform to indicate that some CPU features are always... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 312 }
313 313
314 314
315 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { 315 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) {
316 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), 316 cmpb(FieldOperand(map, Map::kInstanceTypeOffset),
317 static_cast<int8_t>(type)); 317 static_cast<int8_t>(type));
318 } 318 }
319 319
320 320
321 void MacroAssembler::FCmp() { 321 void MacroAssembler::FCmp() {
322 if (CpuFeatures::IsSupported(CpuFeatures::CMOV)) { 322 if (CpuFeatures::IsSupported(CMOV)) {
323 fucomip(); 323 fucomip();
324 ffree(0); 324 ffree(0);
325 fincstp(); 325 fincstp();
326 } else { 326 } else {
327 fucompp(); 327 fucompp();
328 push(eax); 328 push(eax);
329 fnstsw_ax(); 329 fnstsw_ax();
330 sahf(); 330 sahf();
331 pop(eax); 331 pop(eax);
332 } 332 }
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 // Indicate that code has changed. 1273 // Indicate that code has changed.
1274 CPU::FlushICache(address_, size_); 1274 CPU::FlushICache(address_, size_);
1275 1275
1276 // Check that the code was patched as expected. 1276 // Check that the code was patched as expected.
1277 ASSERT(masm_.pc_ == address_ + size_); 1277 ASSERT(masm_.pc_ == address_ + size_);
1278 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 1278 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
1279 } 1279 }
1280 1280
1281 1281
1282 } } // namespace v8::internal 1282 } } // namespace v8::internal
OLDNEW
« src/arm/assembler-arm.h ('K') | « src/ia32/codegen-ia32.cc ('k') | src/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698