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

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

Issue 22266005: Inline fsin/fcos. Huge speedup on Box2D. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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_compiler_mips.cc ('k') | runtime/vm/flow_graph_optimizer.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/globals.h" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 26 matching lines...) Expand all
37 ASSERT(!block_info_[i]->jump_label()->HasNear()); 37 ASSERT(!block_info_[i]->jump_label()->HasNear());
38 } 38 }
39 } 39 }
40 40
41 41
42 bool FlowGraphCompiler::SupportsUnboxedMints() { 42 bool FlowGraphCompiler::SupportsUnboxedMints() {
43 return false; 43 return false;
44 } 44 }
45 45
46 46
47 bool FlowGraphCompiler::SupportsInlinedTrigonometrics() {
48 return true;
49 }
50
51
47 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, 52 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler,
48 DeoptInfoBuilder* builder) { 53 DeoptInfoBuilder* builder) {
49 if (deopt_env_ == NULL) return DeoptInfo::null(); 54 if (deopt_env_ == NULL) return DeoptInfo::null();
50 55
51 intptr_t stack_height = compiler->StackSize(); 56 intptr_t stack_height = compiler->StackSize();
52 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); 57 AllocateIncomingParametersRecursive(deopt_env_, &stack_height);
53 58
54 intptr_t slot_ix = 0; 59 intptr_t slot_ix = 0;
55 Environment* current = deopt_env_; 60 Environment* current = deopt_env_;
56 61
(...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 __ movups(reg, Address(RSP, 0)); 1890 __ movups(reg, Address(RSP, 0));
1886 __ addq(RSP, Immediate(kFpuRegisterSize)); 1891 __ addq(RSP, Immediate(kFpuRegisterSize));
1887 } 1892 }
1888 1893
1889 1894
1890 #undef __ 1895 #undef __
1891 1896
1892 } // namespace dart 1897 } // namespace dart
1893 1898
1894 #endif // defined TARGET_ARCH_X64 1899 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698