OLD | NEW |
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 "lib/error.h" | 10 #include "lib/error.h" |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 Immediate(FLAG_optimization_counter_threshold)); | 917 Immediate(FLAG_optimization_counter_threshold)); |
918 ASSERT(function_reg == EDI); | 918 ASSERT(function_reg == EDI); |
919 __ j(GREATER_EQUAL, &StubCode::OptimizeFunctionLabel()); | 919 __ j(GREATER_EQUAL, &StubCode::OptimizeFunctionLabel()); |
920 } | 920 } |
921 } else { | 921 } else { |
922 AddCurrentDescriptor(PcDescriptors::kEntryPatch, | 922 AddCurrentDescriptor(PcDescriptors::kEntryPatch, |
923 Isolate::kNoDeoptId, | 923 Isolate::kNoDeoptId, |
924 0); // No token position. | 924 0); // No token position. |
925 } | 925 } |
926 __ Comment("Enter frame"); | 926 __ Comment("Enter frame"); |
927 AssemblerMacros::EnterDartFrame(assembler(), (StackSize() * kWordSize)); | 927 __ EnterDartFrame((StackSize() * kWordSize)); |
928 } | 928 } |
929 | 929 |
930 | 930 |
931 void FlowGraphCompiler::CompileGraph() { | 931 void FlowGraphCompiler::CompileGraph() { |
932 InitCompiler(); | 932 InitCompiler(); |
933 if (TryIntrinsify()) { | 933 if (TryIntrinsify()) { |
934 // Although this intrinsified code will never be patched, it must satisfy | 934 // Although this intrinsified code will never be patched, it must satisfy |
935 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum | 935 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum |
936 // code size. | 936 // code size. |
937 __ int3(); | 937 __ int3(); |
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 __ popl(ECX); | 1721 __ popl(ECX); |
1722 __ popl(EAX); | 1722 __ popl(EAX); |
1723 } | 1723 } |
1724 | 1724 |
1725 | 1725 |
1726 #undef __ | 1726 #undef __ |
1727 | 1727 |
1728 } // namespace dart | 1728 } // namespace dart |
1729 | 1729 |
1730 #endif // defined TARGET_ARCH_IA32 | 1730 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |