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

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

Issue 14308009: Detect leaf optimized methods and skip stack check overflow test in those, unless it is in a loop (… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 __ pushl(value.ToStackSlotAddress()); 57 __ pushl(value.ToStackSlotAddress());
58 } 58 }
59 } 59 }
60 } 60 }
61 61
62 62
63 LocationSummary* ReturnInstr::MakeLocationSummary() const { 63 LocationSummary* ReturnInstr::MakeLocationSummary() const {
64 const intptr_t kNumInputs = 1; 64 const intptr_t kNumInputs = 1;
65 const intptr_t kNumTemps = 0; 65 const intptr_t kNumTemps = 0;
66 LocationSummary* locs = 66 LocationSummary* locs =
67 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall); 67 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
68 locs->set_in(0, Location::RegisterLocation(EAX)); 68 locs->set_in(0, Location::RegisterLocation(EAX));
69 return locs; 69 return locs;
70 } 70 }
71 71
72 72
73 // Attempt optimized compilation at return instruction instead of at the entry. 73 // Attempt optimized compilation at return instruction instead of at the entry.
74 // The entry needs to be patchable, no inlined objects are allowed in the area 74 // The entry needs to be patchable, no inlined objects are allowed in the area
75 // that will be overwritten by the patch instruction: a jump). 75 // that will be overwritten by the patch instruction: a jump).
76 void ReturnInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 76 void ReturnInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
77 Register result = locs()->in(0).reg(); 77 Register result = locs()->in(0).reg();
(...skipping 3893 matching lines...) Expand 10 before | Expand all | Expand 10 after
3971 PcDescriptors::kOther, 3971 PcDescriptors::kOther,
3972 locs()); 3972 locs());
3973 __ Drop(2); // Discard type arguments and receiver. 3973 __ Drop(2); // Discard type arguments and receiver.
3974 } 3974 }
3975 3975
3976 } // namespace dart 3976 } // namespace dart
3977 3977
3978 #undef __ 3978 #undef __
3979 3979
3980 #endif // defined TARGET_ARCH_IA32 3980 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698