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

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 284503002: Simplify DoubleRegister for the ia32 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment 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/ia32/code-stubs-ia32.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 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0; 55 uint64_t CpuFeatures::found_by_runtime_probing_only_ = 0;
56 uint64_t CpuFeatures::cross_compile_ = 0; 56 uint64_t CpuFeatures::cross_compile_ = 0;
57 57
58 58
59 ExternalReference ExternalReference::cpu_features() { 59 ExternalReference ExternalReference::cpu_features() {
60 ASSERT(CpuFeatures::initialized_); 60 ASSERT(CpuFeatures::initialized_);
61 return ExternalReference(&CpuFeatures::supported_); 61 return ExternalReference(&CpuFeatures::supported_);
62 } 62 }
63 63
64 64
65 int DoubleRegister::NumAllocatableRegisters() {
66 return XMMRegister::kNumAllocatableRegisters;
67 }
68
69
70 int DoubleRegister::NumRegisters() {
71 return XMMRegister::kNumRegisters;
72 }
73
74
75 const char* DoubleRegister::AllocationIndexToString(int index) {
76 return XMMRegister::AllocationIndexToString(index);
77 }
78
79
80 void CpuFeatures::Probe(bool serializer_enabled) { 65 void CpuFeatures::Probe(bool serializer_enabled) {
81 ASSERT(!initialized_); 66 ASSERT(!initialized_);
82 ASSERT(supported_ == 0); 67 ASSERT(supported_ == 0);
83 #ifdef DEBUG 68 #ifdef DEBUG
84 initialized_ = true; 69 initialized_ = true;
85 #endif 70 #endif
86 if (serializer_enabled) { 71 if (serializer_enabled) {
87 supported_ |= OS::CpuFeaturesImpliedByPlatform(); 72 supported_ |= OS::CpuFeaturesImpliedByPlatform();
88 return; // No features if we might serialize. 73 return; // No features if we might serialize.
89 } 74 }
(...skipping 2583 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 fprintf(coverage_log, "%s\n", file_line); 2658 fprintf(coverage_log, "%s\n", file_line);
2674 fflush(coverage_log); 2659 fflush(coverage_log);
2675 } 2660 }
2676 } 2661 }
2677 2662
2678 #endif 2663 #endif
2679 2664
2680 } } // namespace v8::internal 2665 } } // namespace v8::internal
2681 2666
2682 #endif // V8_TARGET_ARCH_IA32 2667 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/code-stubs-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698