| 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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 static bool IsSupported(CpuFeature f) { | 434 static bool IsSupported(CpuFeature f) { |
| 435 ASSERT(initialized_); | 435 ASSERT(initialized_); |
| 436 return Check(f, supported_); | 436 return Check(f, supported_); |
| 437 } | 437 } |
| 438 | 438 |
| 439 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { | 439 static bool IsFoundByRuntimeProbingOnly(CpuFeature f) { |
| 440 ASSERT(initialized_); | 440 ASSERT(initialized_); |
| 441 return Check(f, found_by_runtime_probing_only_); | 441 return Check(f, found_by_runtime_probing_only_); |
| 442 } | 442 } |
| 443 | 443 |
| 444 static bool IsSafeForSnapshot(CpuFeature f) { | 444 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { |
| 445 return Check(f, cross_compile_) || | 445 return Check(f, cross_compile_) || |
| 446 (IsSupported(f) && | 446 (IsSupported(f) && |
| 447 (!Serializer::enabled() || !IsFoundByRuntimeProbingOnly(f))); | 447 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f))); |
| 448 } | 448 } |
| 449 | 449 |
| 450 static bool VerifyCrossCompiling() { | 450 static bool VerifyCrossCompiling() { |
| 451 return cross_compile_ == 0; | 451 return cross_compile_ == 0; |
| 452 } | 452 } |
| 453 | 453 |
| 454 static bool VerifyCrossCompiling(CpuFeature f) { | 454 static bool VerifyCrossCompiling(CpuFeature f) { |
| 455 unsigned mask = flag2set(f); | 455 unsigned mask = flag2set(f); |
| 456 return cross_compile_ == 0 || | 456 return cross_compile_ == 0 || |
| 457 (cross_compile_ & mask) == mask; | 457 (cross_compile_ & mask) == mask; |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 class EnsureSpace BASE_EMBEDDED { | 1290 class EnsureSpace BASE_EMBEDDED { |
| 1291 public: | 1291 public: |
| 1292 explicit EnsureSpace(Assembler* assembler) { | 1292 explicit EnsureSpace(Assembler* assembler) { |
| 1293 assembler->CheckBuffer(); | 1293 assembler->CheckBuffer(); |
| 1294 } | 1294 } |
| 1295 }; | 1295 }; |
| 1296 | 1296 |
| 1297 } } // namespace v8::internal | 1297 } } // namespace v8::internal |
| 1298 | 1298 |
| 1299 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1299 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |