OLD | NEW |
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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 if (f == CMOV && !FLAG_enable_cmov) return false; | 461 if (f == CMOV && !FLAG_enable_cmov) return false; |
462 if (f == SAHF && !FLAG_enable_sahf) return false; | 462 if (f == SAHF && !FLAG_enable_sahf) return false; |
463 return Check(f, supported_); | 463 return Check(f, supported_); |
464 } | 464 } |
465 | 465 |
466 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { | 466 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { |
467 ASSERT(initialized_); | 467 ASSERT(initialized_); |
468 return Check(f, found_by_runtime_probing_only_); | 468 return Check(f, found_by_runtime_probing_only_); |
469 } | 469 } |
470 | 470 |
471 static bool IsSafeForSnapshot(CpuFeature f) { | 471 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { |
472 return Check(f, cross_compile_) || | 472 return Check(f, cross_compile_) || |
473 (IsSupported(f) && | 473 (IsSupported(f) && |
474 (!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f))); | 474 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f))); |
475 } | 475 } |
476 | 476 |
477 static bool VerifyCrossCompiling() { | 477 static bool VerifyCrossCompiling() { |
478 return cross_compile_ == 0; | 478 return cross_compile_ == 0; |
479 } | 479 } |
480 | 480 |
481 static bool VerifyCrossCompiling(CpuFeature f) { | 481 static bool VerifyCrossCompiling(CpuFeature f) { |
482 uint64_t mask = flag2set(f); | 482 uint64_t mask = flag2set(f); |
483 return cross_compile_ == 0 || | 483 return cross_compile_ == 0 || |
484 (cross_compile_ & mask) == mask; | 484 (cross_compile_ & mask) == mask; |
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1654 private: | 1654 private: |
1655 Assembler* assembler_; | 1655 Assembler* assembler_; |
1656 #ifdef DEBUG | 1656 #ifdef DEBUG |
1657 int space_before_; | 1657 int space_before_; |
1658 #endif | 1658 #endif |
1659 }; | 1659 }; |
1660 | 1660 |
1661 } } // namespace v8::internal | 1661 } } // namespace v8::internal |
1662 | 1662 |
1663 #endif // V8_X64_ASSEMBLER_X64_H_ | 1663 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |