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

Unified Diff: runtime/vm/intermediate_language_dbc.cc

Issue 2477653002: DBC: Handle constants correctly in the optimizing backend (Closed)
Patch Set: Created 4 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 | tests/corelib/corelib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language_dbc.cc
diff --git a/runtime/vm/intermediate_language_dbc.cc b/runtime/vm/intermediate_language_dbc.cc
index 859f7d432f3faa8106d55636a27ca97ab0e79fbd..b0f867d3f64939376e1fc987d1ede91247b6bf6e 100644
--- a/runtime/vm/intermediate_language_dbc.cc
+++ b/runtime/vm/intermediate_language_dbc.cc
@@ -338,7 +338,7 @@ EMIT_NATIVE_CODE(LoadClassId, 1, Location::RequiresRegister()) {
EMIT_NATIVE_CODE(Constant, 0, Location::RequiresRegister()) {
- if (compiler->is_optimizing()) {
+ if (compiler->is_optimizing() && locs()->out(0).IsRegister()) {
Vyacheslav Egorov (Google) 2016/11/03 11:11:50 We will end up Pushing the constant on the stack h
Florian Schneider 2016/11/03 11:22:59 Done. Yes, of course. I simplfified the code incor
__ LoadConstant(locs()->out(0).reg(), value());
} else {
__ PushConstant(value());
« no previous file with comments | « no previous file | tests/corelib/corelib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698