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

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

Issue 10665038: Remove old code generator. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 __ Bind(&smi_to_double); 863 __ Bind(&smi_to_double);
864 __ SmiUntag(RAX); 864 __ SmiUntag(RAX);
865 __ cvtsi2sd(XMM1, RAX); 865 __ cvtsi2sd(XMM1, RAX);
866 __ jmp(&double_op); 866 __ jmp(&double_op);
867 __ Bind(&call_method); 867 __ Bind(&call_method);
868 } 868 }
869 869
870 870
871 void FlowGraphCompiler::CompileGraph() { 871 void FlowGraphCompiler::CompileGraph() {
872 InitCompiler(); 872 InitCompiler();
873 if (TryIntrinsify()) { 873 if (CanOptimize() && TryIntrinsify()) {
874 // Although this intrinsified code will never be patched, it must satisfy 874 // Although this intrinsified code will never be patched, it must satisfy
875 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum 875 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum
876 // code size, and nop(2) increases the minimum code size appropriately. 876 // code size, and nop(2) increases the minimum code size appropriately.
877 __ nop(2); 877 __ nop(2);
878 __ int3(); 878 __ int3();
879 __ jmp(&StubCode::FixCallersTargetLabel()); 879 __ jmp(&StubCode::FixCallersTargetLabel());
880 return; 880 return;
881 } 881 }
882 // Specialized version of entry code from CodeGenerator::GenerateEntryCode. 882 // Specialized version of entry code from CodeGenerator::GenerateEntryCode.
883 const Function& function = parsed_function().function(); 883 const Function& function = parsed_function().function();
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 __ cvtsi2sd(result, temp); 1057 __ cvtsi2sd(result, temp);
1058 __ Bind(&done); 1058 __ Bind(&done);
1059 } 1059 }
1060 1060
1061 1061
1062 #undef __ 1062 #undef __
1063 1063
1064 } // namespace dart 1064 } // namespace dart
1065 1065
1066 #endif // defined TARGET_ARCH_X64 1066 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698