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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 626523002: VM: Improve generated code for loading the current context. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 40882)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -2622,6 +2622,21 @@
}
+LocationSummary* CurrentContextInstr::MakeLocationSummary(Isolate* isolate,
+ bool opt) const {
+ return LocationSummary::Make(isolate,
+ 0,
+ Location::RegisterLocation(CTX),
+ LocationSummary::kNoCall);
+}
+
+
+void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ // No code to emit. Just assert the correct result register.
+ ASSERT(locs()->out(0).reg() == CTX);
+}
+
+
LocationSummary* StoreContextInstr::MakeLocationSummary(Isolate* isolate,
bool optimizing) const {
const intptr_t kNumInputs = 1;
@@ -2633,6 +2648,12 @@
}
+void StoreContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
+ // Nothing to do. Context register was loaded by the register allocator.
+ ASSERT(locs()->in(0).reg() == CTX);
+}
+
+
LocationSummary* PushTempInstr::MakeLocationSummary(Isolate* isolate,
bool optimizing) const {
return LocationSummary::Make(isolate,
@@ -2670,12 +2691,6 @@
}
-void StoreContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
- // Nothing to do. Context register was loaded by the register allocator.
- ASSERT(locs()->in(0).reg() == CTX);
-}
-
-
StrictCompareInstr::StrictCompareInstr(intptr_t token_pos,
Token::Kind kind,
Value* left,
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698