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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 8713015: Add flag --use_slow_path to test slow paths. Started with implementation for implicit closure all... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_ia32.cc
===================================================================
--- runtime/vm/stub_code_ia32.cc (revision 1865)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -20,6 +20,8 @@
namespace dart {
DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects.");
+DEFINE_FLAG(bool, use_slow_path, false,
+ "Set to true for debugging & verifying the slow paths.");
// Input parameters:
// ESP : points to return address.
@@ -1258,6 +1260,9 @@
__ movl(ECX, EBX); // ECX: new context address.
__ addl(EBX, Immediate(context_size));
}
+ if (FLAG_use_slow_path) {
+ __ jmp(&slow_case);
+ }
// Check if the allocation fits into the remaining space.
// EAX: potential new closure object.
// ECX: potential new context object (only if is_implicit_closure).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698