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

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 29 matching lines...) Expand all
40 } 40 }
41 } 41 }
42 42
43 43
44 bool FlowGraphCompiler::SupportsUnboxedMints() { 44 bool FlowGraphCompiler::SupportsUnboxedMints() {
45 // Support unboxed mints when SSE 4.1 is available. 45 // Support unboxed mints when SSE 4.1 is available.
46 return FLAG_unbox_mints && CPUFeatures::sse4_1_supported(); 46 return FLAG_unbox_mints && CPUFeatures::sse4_1_supported();
47 } 47 }
48 48
49 49
50 bool FlowGraphCompiler::SupportsInlinedTrigonometrics() {
51 return true;
52 }
53
54
55 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, 50 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler,
56 DeoptInfoBuilder* builder) { 51 DeoptInfoBuilder* builder) {
57 if (deopt_env_ == NULL) return DeoptInfo::null(); 52 if (deopt_env_ == NULL) return DeoptInfo::null();
58 53
59 intptr_t stack_height = compiler->StackSize(); 54 intptr_t stack_height = compiler->StackSize();
60 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); 55 AllocateIncomingParametersRecursive(deopt_env_, &stack_height);
61 56
62 intptr_t slot_ix = 0; 57 intptr_t slot_ix = 0;
63 Environment* current = deopt_env_; 58 Environment* current = deopt_env_;
64 59
(...skipping 1819 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 __ movups(reg, Address(ESP, 0)); 1879 __ movups(reg, Address(ESP, 0));
1885 __ addl(ESP, Immediate(kFpuRegisterSize)); 1880 __ addl(ESP, Immediate(kFpuRegisterSize));
1886 } 1881 }
1887 1882
1888 1883
1889 #undef __ 1884 #undef __
1890 1885
1891 } // namespace dart 1886 } // namespace dart
1892 1887
1893 #endif // defined TARGET_ARCH_IA32 1888 #endif // defined TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698