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

Side by Side Diff: src/ia32/assembler-ia32.h

Issue 277963002: Require CMOV support for the ia32 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | « no previous file | src/ia32/assembler-ia32.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 class NextField: public BitField<int, 2, 32-2> {}; 474 class NextField: public BitField<int, 2, 32-2> {};
475 475
476 void init(Label* L, Type type); 476 void init(Label* L, Type type);
477 }; 477 };
478 478
479 479
480 480
481 // CpuFeatures keeps track of which features are supported by the target CPU. 481 // CpuFeatures keeps track of which features are supported by the target CPU.
482 // Supported features must be enabled by a CpuFeatureScope before use. 482 // Supported features must be enabled by a CpuFeatureScope before use.
483 // Example: 483 // Example:
484 // if (assembler->IsSupported(CMOV)) { 484 // if (assembler->IsSupported(SSE3)) {
485 // CpuFeatureScope fscope(assembler, CMOV); 485 // CpuFeatureScope fscope(assembler, SSE3);
486 // // Generate code containing cmov. 486 // // Generate code containing SSE3 instruction.
487 // } else { 487 // } else {
488 // // Generate alternative code. 488 // // Generate alternative code.
489 // } 489 // }
490 class CpuFeatures : public AllStatic { 490 class CpuFeatures : public AllStatic {
491 public: 491 public:
492 // Detect features of the target CPU. Set safe defaults if the serializer 492 // Detect features of the target CPU. Set safe defaults if the serializer
493 // is enabled (snapshots must be portable). 493 // is enabled (snapshots must be portable).
494 static void Probe(bool serializer_enabled); 494 static void Probe(bool serializer_enabled);
495 495
496 // Check whether a feature is supported by the target CPU. 496 // Check whether a feature is supported by the target CPU.
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 private: 1248 private:
1249 Assembler* assembler_; 1249 Assembler* assembler_;
1250 #ifdef DEBUG 1250 #ifdef DEBUG
1251 int space_before_; 1251 int space_before_;
1252 #endif 1252 #endif
1253 }; 1253 };
1254 1254
1255 } } // namespace v8::internal 1255 } } // namespace v8::internal
1256 1256
1257 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1257 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698