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

Unified Diff: vm/assembler_macros_ia32.cc

Issue 10375059: Use a reserved stack local variable to store the Code object so that it can be looked up easily whe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/assembler_macros_ia32.h ('k') | vm/assembler_macros_x64.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/assembler_macros_ia32.cc
===================================================================
--- vm/assembler_macros_ia32.cc (revision 7669)
+++ vm/assembler_macros_ia32.cc (working copy)
@@ -57,6 +57,30 @@
}
}
+
+void AssemblerMacros::EnterDartFrame(Assembler* assembler,
+ intptr_t frame_size) {
+ const intptr_t offset = assembler->CodeSize();
+ __ EnterFrame(0);
+ Label dart_entry;
+ __ call(&dart_entry);
+ __ Bind(&dart_entry);
+ // Adjust saved PC for any intrinsic code that could have been generated
+ // before a frame is created.
+ if (offset != 0) {
+ __ addl(Address(ESP, 0), Immediate(-offset));
+ }
+ if (frame_size != 0) {
+ __ subl(ESP, Immediate(frame_size));
+ }
+}
+
+
+void AssemblerMacros::EnterStubFrame(Assembler* assembler) {
+ __ EnterFrame(0);
+ __ pushl(Immediate(0)); // Push 0 in the saved PC area for stub frames.
+}
+
#undef __
} // namespace dart
« no previous file with comments | « vm/assembler_macros_ia32.h ('k') | vm/assembler_macros_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698