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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 8851008: Add support for interrupting an isolate in the vm. Interrupts are (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
Index: runtime/vm/stub_code_ia32.cc
===================================================================
--- runtime/vm/stub_code_ia32.cc (revision 2528)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -229,30 +229,6 @@
}
-// Stub is entered after a call but before the callee's frame has been
-// constructed.
-// Handle stack overflow by calling the runtime routine and preserving
-// the argument descriptor (EDX) and the ic-data array/function object of
-// the call (ECX).
-// The stub must be able to return to callee in case the stack overflow
-// exception is not thrown.
-void StubCode::GenerateStackOverflowStub(Assembler* assembler) {
- __ EnterFrame(0);
- // Stack at this point:
- // TOS + 0: Saved EBP of previous frame. <== EBP
- // TOS + 1: Dart code return address
- // TOS + 2: Last argument of caller.
- // ....
- __ pushl(EDX); // Preserve arguments descriptor array.
- __ pushl(ECX); // Preserve object (ic-data array or function object).
- __ CallRuntimeFromStub(kStackOverflowRuntimeEntry);
- __ popl(ECX); // Restore object (ic-data array or function object).
- __ popl(EDX); // Restore arguments descriptor array.
- __ LeaveFrame();
- __ int3();
-}
-
-
// Called when number of invocations exceeds
// --optimization_invocation_threshold.
// EAX: target function.

Powered by Google App Engine
This is Rietveld 408576698