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

Unified Diff: src/ia32/lithium-codegen-ia32.cc

Issue 7739018: Inline functions with different contexts in the optimizing code generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase to current tip-of-tree. Created 9 years, 3 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
Index: src/ia32/lithium-codegen-ia32.cc
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
index 4e3ea98161dd278f177ecf10918fb3262bac2cb2..7aa26177e7cc9b014391bcbbb7ba745e0828da54 100644
--- a/src/ia32/lithium-codegen-ia32.cc
+++ b/src/ia32/lithium-codegen-ia32.cc
@@ -2536,6 +2536,13 @@ void LCodeGen::DoContext(LContext* instr) {
}
+void LCodeGen::DoInlinedContext(LInlinedContext* instr) {
+ Register result = ToRegister(instr->result());
+ __ mov(result, instr->closure());
Kevin Millikin (Chromium) 2011/09/15 11:17:24 Does something like __ mov(result, Handle<Context
+ __ mov(result, FieldOperand(result, JSFunction::kContextOffset));
+}
+
+
void LCodeGen::DoOuterContext(LOuterContext* instr) {
Register context = ToRegister(instr->context());
Register result = ToRegister(instr->result());

Powered by Google App Engine
This is Rietveld 408576698