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 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 if (f == SSE4_1 && !FLAG_enable_sse4_1) return false; | 541 if (f == SSE4_1 && !FLAG_enable_sse4_1) return false; |
542 if (f == CMOV && !FLAG_enable_cmov) return false; | 542 if (f == CMOV && !FLAG_enable_cmov) return false; |
543 return Check(f, supported_); | 543 return Check(f, supported_); |
544 } | 544 } |
545 | 545 |
546 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { | 546 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { |
547 ASSERT(initialized_); | 547 ASSERT(initialized_); |
548 return Check(f, found_by_runtime_probing_only_); | 548 return Check(f, found_by_runtime_probing_only_); |
549 } | 549 } |
550 | 550 |
551 static bool IsSafeForSnapshot(CpuFeature f) { | 551 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { |
552 return Check(f, cross_compile_) || | 552 return Check(f, cross_compile_) || |
553 (IsSupported(f) && | 553 (IsSupported(f) && |
554 (!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f))); | 554 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f))); |
555 } | 555 } |
556 | 556 |
557 static bool VerifyCrossCompiling() { | 557 static bool VerifyCrossCompiling() { |
558 return cross_compile_ == 0; | 558 return cross_compile_ == 0; |
559 } | 559 } |
560 | 560 |
561 static bool VerifyCrossCompiling(CpuFeature f) { | 561 static bool VerifyCrossCompiling(CpuFeature f) { |
562 uint64_t mask = flag2set(f); | 562 uint64_t mask = flag2set(f); |
563 return cross_compile_ == 0 || | 563 return cross_compile_ == 0 || |
564 (cross_compile_ & mask) == mask; | 564 (cross_compile_ & mask) == mask; |
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1292 private: | 1292 private: |
1293 Assembler* assembler_; | 1293 Assembler* assembler_; |
1294 #ifdef DEBUG | 1294 #ifdef DEBUG |
1295 int space_before_; | 1295 int space_before_; |
1296 #endif | 1296 #endif |
1297 }; | 1297 }; |
1298 | 1298 |
1299 } } // namespace v8::internal | 1299 } } // namespace v8::internal |
1300 | 1300 |
1301 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1301 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |