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

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

Issue 260003006: Added a Isolate* parameter to Serializer::enabled(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Feedback. 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/v8.cc ('k') | src/x64/assembler-x64.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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/v8.cc ('k') | src/x64/assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698