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: runtime/vm/intermediate_language.cc

Issue 12334080: For Doubl erounding call C-function instead of attempting to inline it. Fixes issue 8760. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/intermediate_language.h" 5 #include "vm/intermediate_language.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/flow_graph_allocator.h" 9 #include "vm/flow_graph_allocator.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 2179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2190 (*inputs)[i]->set_use_index(i); 2190 (*inputs)[i]->set_use_index(i);
2191 } 2191 }
2192 deopt_id_ = instance_call->deopt_id(); 2192 deopt_id_ = instance_call->deopt_id();
2193 } 2193 }
2194 2194
2195 2195
2196 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor( 2196 intptr_t InvokeMathCFunctionInstr::ArgumentCountFor(
2197 MethodRecognizer::Kind kind) { 2197 MethodRecognizer::Kind kind) {
2198 switch (kind) { 2198 switch (kind) {
2199 case MethodRecognizer::kDoubleTruncate: 2199 case MethodRecognizer::kDoubleTruncate:
2200 case MethodRecognizer::kDoubleRound:
2201 case MethodRecognizer::kDoubleFloor: 2200 case MethodRecognizer::kDoubleFloor:
2202 case MethodRecognizer::kDoubleCeil: { 2201 case MethodRecognizer::kDoubleCeil: {
2203 ASSERT(!CPUFeatures::double_truncate_round_supported()); 2202 ASSERT(!CPUFeatures::double_truncate_round_supported());
2204 return 1; 2203 return 1;
2205 } 2204 }
2205 case MethodRecognizer::kDoubleRound:
2206 return 1;
2206 case MethodRecognizer::kDoubleMod: 2207 case MethodRecognizer::kDoubleMod:
2207 case MethodRecognizer::kDoublePow: 2208 case MethodRecognizer::kDoublePow:
2208 return 2; 2209 return 2;
2209 default: 2210 default:
2210 UNREACHABLE(); 2211 UNREACHABLE();
2211 } 2212 }
2212 return 0; 2213 return 0;
2213 } 2214 }
2214 2215
2215 // Use expected function signatures to help MSVC compiler resolve overloading. 2216 // Use expected function signatures to help MSVC compiler resolve overloading.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2258 default: 2259 default:
2259 UNREACHABLE(); 2260 UNREACHABLE();
2260 } 2261 }
2261 return kPowRuntimeEntry; 2262 return kPowRuntimeEntry;
2262 } 2263 }
2263 2264
2264 2265
2265 #undef __ 2266 #undef __
2266 2267
2267 } // namespace dart 2268 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698