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

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

Issue 11414262: Revert 13105: "Enable stub generation using Hydrogen/Lithium." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/arm/assembler-arm.h ('k') | src/arm/assembler-arm-inl.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // && !defined(__SOFTFP__) 78 // && !defined(__SOFTFP__)
79 #endif // _arm__ 79 #endif // _arm__
80 if (answer & (1u << ARMv7)) { 80 if (answer & (1u << ARMv7)) {
81 answer |= 1u << UNALIGNED_ACCESSES; 81 answer |= 1u << UNALIGNED_ACCESSES;
82 } 82 }
83 83
84 return answer; 84 return answer;
85 } 85 }
86 86
87 87
88 int Register::NumAllocatableRegisters() {
89 if (CpuFeatures::IsSupported(VFP2)) {
90 return kMaxNumAllocatableRegisters;
91 } else {
92 return kMaxNumAllocatableRegisters - kGPRsPerNonVFP2Double;
93 }
94 }
95
96
97 int DoubleRegister::NumAllocatableRegisters() {
98 if (CpuFeatures::IsSupported(VFP2)) {
99 return DwVfpRegister::kMaxNumAllocatableRegisters;
100 } else {
101 return SoftFloatRegister::kMaxNumAllocatableRegisters;
102 }
103 }
104
105
106 const char* DoubleRegister::AllocationIndexToString(int index) {
107 if (CpuFeatures::IsSupported(VFP2)) {
108 return DwVfpRegister::AllocationIndexToString(index);
109 } else {
110 return SoftFloatRegister::AllocationIndexToString(index);
111 }
112 }
113
114
115 void CpuFeatures::Probe() { 88 void CpuFeatures::Probe() {
116 unsigned standard_features = static_cast<unsigned>( 89 unsigned standard_features = static_cast<unsigned>(
117 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler(); 90 OS::CpuFeaturesImpliedByPlatform()) | CpuFeaturesImpliedByCompiler();
118 ASSERT(supported_ == 0 || supported_ == standard_features); 91 ASSERT(supported_ == 0 || supported_ == standard_features);
119 #ifdef DEBUG 92 #ifdef DEBUG
120 initialized_ = true; 93 initialized_ = true;
121 #endif 94 #endif
122 95
123 // Get the features implied by the OS and the compiler settings. This is the 96 // Get the features implied by the OS and the compiler settings. This is the
124 // minimal set of features which is also alowed for generated code in the 97 // minimal set of features which is also alowed for generated code in the
(...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after
2770 2743
2771 // Since a constant pool was just emitted, move the check offset forward by 2744 // Since a constant pool was just emitted, move the check offset forward by
2772 // the standard interval. 2745 // the standard interval.
2773 next_buffer_check_ = pc_offset() + kCheckPoolInterval; 2746 next_buffer_check_ = pc_offset() + kCheckPoolInterval;
2774 } 2747 }
2775 2748
2776 2749
2777 } } // namespace v8::internal 2750 } } // namespace v8::internal
2778 2751
2779 #endif // V8_TARGET_ARCH_ARM 2752 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/assembler-arm-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698