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

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 22853009: For trigonometric functions call to C-libraries: they are faster than x87 operations (3% on Box2D). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
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/globals.h" // Needed here to get TARGET_ARCH_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 25 matching lines...) Expand all
36 ASSERT(!block_info_[i]->jump_label()->IsLinked()); 36 ASSERT(!block_info_[i]->jump_label()->IsLinked());
37 } 37 }
38 } 38 }
39 39
40 40
41 bool FlowGraphCompiler::SupportsUnboxedMints() { 41 bool FlowGraphCompiler::SupportsUnboxedMints() {
42 return false; 42 return false;
43 } 43 }
44 44
45 45
46 // TODO(srdjan): Enable by calling C-functions.
47 bool FlowGraphCompiler::SupportsInlinedTrigonometrics() {
48 return false;
49 }
50
51
52 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, 46 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler,
53 DeoptInfoBuilder* builder) { 47 DeoptInfoBuilder* builder) {
54 if (deopt_env_ == NULL) return DeoptInfo::null(); 48 if (deopt_env_ == NULL) return DeoptInfo::null();
55 49
56 intptr_t stack_height = compiler->StackSize(); 50 intptr_t stack_height = compiler->StackSize();
57 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); 51 AllocateIncomingParametersRecursive(deopt_env_, &stack_height);
58 52
59 intptr_t slot_ix = 0; 53 intptr_t slot_ix = 0;
60 Environment* current = deopt_env_; 54 Environment* current = deopt_env_;
61 55
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1971 __ AddImmediate(SP, kDoubleSize); 1965 __ AddImmediate(SP, kDoubleSize);
1972 } 1966 }
1973 1967
1974 1968
1975 #undef __ 1969 #undef __
1976 1970
1977 1971
1978 } // namespace dart 1972 } // namespace dart
1979 1973
1980 #endif // defined TARGET_ARCH_MIPS 1974 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698