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

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

Issue 1376233011: Partially revert r26703 and omit regular code generation for implicit accessors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.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_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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 } else { 1023 } else {
1024 ASSERT(StackSize() >= 0); 1024 ASSERT(StackSize() >= 0);
1025 __ EnterDartFrame(StackSize() * kWordSize); 1025 __ EnterDartFrame(StackSize() * kWordSize);
1026 } 1026 }
1027 } 1027 }
1028 1028
1029 1029
1030 void FlowGraphCompiler::CompileGraph() { 1030 void FlowGraphCompiler::CompileGraph() {
1031 InitCompiler(); 1031 InitCompiler();
1032 1032
1033 TryIntrinsify(); 1033 if (TryIntrinsify()) {
1034 // Skip regular code generation.
1035 return;
1036 }
1034 1037
1035 EmitFrameEntry(); 1038 EmitFrameEntry();
1036 1039
1037 const Function& function = parsed_function().function(); 1040 const Function& function = parsed_function().function();
1038 1041
1039 const int num_fixed_params = function.num_fixed_parameters(); 1042 const int num_fixed_params = function.num_fixed_parameters();
1040 const int num_copied_params = parsed_function().num_copied_params(); 1043 const int num_copied_params = parsed_function().num_copied_params();
1041 const int num_locals = parsed_function().num_stack_locals(); 1044 const int num_locals = parsed_function().num_stack_locals();
1042 1045
1043 // We check the number of passed arguments when we have to copy them due to 1046 // We check the number of passed arguments when we have to copy them due to
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 __ movups(reg, Address(ESP, 0)); 1830 __ movups(reg, Address(ESP, 0));
1828 __ addl(ESP, Immediate(kFpuRegisterSize)); 1831 __ addl(ESP, Immediate(kFpuRegisterSize));
1829 } 1832 }
1830 1833
1831 1834
1832 #undef __ 1835 #undef __
1833 1836
1834 } // namespace dart 1837 } // namespace dart
1835 1838
1836 #endif // defined TARGET_ARCH_IA32 1839 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698