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

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

Issue 11086044: Remove support for optimized dart leaf functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_macros_ia32.h ('k') | runtime/vm/assembler_macros_x64.h » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler_macros.h" 8 #include "vm/assembler_macros.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // before a frame is created. 57 // before a frame is created.
58 if (offset != 0) { 58 if (offset != 0) {
59 __ addl(Address(ESP, 0), Immediate(-offset)); 59 __ addl(Address(ESP, 0), Immediate(-offset));
60 } 60 }
61 if (frame_size != 0) { 61 if (frame_size != 0) {
62 __ subl(ESP, Immediate(frame_size)); 62 __ subl(ESP, Immediate(frame_size));
63 } 63 }
64 } 64 }
65 65
66 66
67 void AssemblerMacros::EnterDartLeafFrame(Assembler* assembler,
68 intptr_t frame_size) {
69 __ EnterFrame(0);
70 Label dart_entry;
71 // Leave room for the saved PC, it will be filled in lazily, leave
72 // uninitialized.
73 __ subl(ESP, Immediate(frame_size + kWordSize));
74 #if defined(DEBUG)
75 // Store an invalid object in saved PC slot.
76 __ movl(Address(EBP, -kWordSize), Immediate(kHeapObjectTag));
77 #endif
78 }
79
80
81 void AssemblerMacros::EnterStubFrame(Assembler* assembler) { 67 void AssemblerMacros::EnterStubFrame(Assembler* assembler) {
82 __ EnterFrame(0); 68 __ EnterFrame(0);
83 __ pushl(Immediate(0)); // Push 0 in the saved PC area for stub frames. 69 __ pushl(Immediate(0)); // Push 0 in the saved PC area for stub frames.
84 } 70 }
85 71
86 #undef __ 72 #undef __
87 73
88 } // namespace dart 74 } // namespace dart
89 75
90 #endif // defined TARGET_ARCH_IA32 76 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_macros_ia32.h ('k') | runtime/vm/assembler_macros_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698