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

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

Issue 265243004: Inlined IsFoundByRuntimeProbingOnly. (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 | « src/ia32/assembler-ia32.h ('k') | src/x64/assembler-x64.h » ('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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 429
430 // A special case for printing target and features, which we want to do 430 // A special case for printing target and features, which we want to do
431 // before initializing the isolate 431 // before initializing the isolate
432 432
433 // Check whether a feature is supported by the target CPU. 433 // Check whether a feature is supported by the target CPU.
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) {
440 ASSERT(initialized_);
441 return Check(f, found_by_runtime_probing_only_);
442 }
443
444 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) { 439 static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
445 return Check(f, cross_compile_) || 440 return Check(f, cross_compile_) ||
446 (IsSupported(f) && 441 (IsSupported(f) &&
447 (!Serializer::enabled(isolate) || !IsFoundByRuntimeProbingOnly(f))); 442 !(Serializer::enabled(isolate) &&
443 Check(f, found_by_runtime_probing_only_)));
448 } 444 }
449 445
450 static bool VerifyCrossCompiling() { 446 static bool VerifyCrossCompiling() {
451 return cross_compile_ == 0; 447 return cross_compile_ == 0;
452 } 448 }
453 449
454 static bool VerifyCrossCompiling(CpuFeature f) { 450 static bool VerifyCrossCompiling(CpuFeature f) {
455 unsigned mask = flag2set(f); 451 unsigned mask = flag2set(f);
456 return cross_compile_ == 0 || 452 return cross_compile_ == 0 ||
457 (cross_compile_ & mask) == mask; 453 (cross_compile_ & mask) == mask;
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 class EnsureSpace BASE_EMBEDDED { 1286 class EnsureSpace BASE_EMBEDDED {
1291 public: 1287 public:
1292 explicit EnsureSpace(Assembler* assembler) { 1288 explicit EnsureSpace(Assembler* assembler) {
1293 assembler->CheckBuffer(); 1289 assembler->CheckBuffer();
1294 } 1290 }
1295 }; 1291 };
1296 1292
1297 } } // namespace v8::internal 1293 } } // namespace v8::internal
1298 1294
1299 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 1295 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/x64/assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698