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

Side by Side Diff: src/mips/assembler-mips.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/lithium-allocator.cc ('k') | src/mips/assembler-mips.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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/lithium-allocator.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698