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

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

Issue 5753005: Make closures optimizable by Crankshaft compiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 10 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
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/compiler.cc » ('j') | src/compiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/lithium-codegen-arm.cc
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
index 5b3f23bb022663860c6019bb6239ef059ebf6c50..33c76042db6c0fba3501080c2c3e8e86659edd48 100644
--- a/src/arm/lithium-codegen-arm.cc
+++ b/src/arm/lithium-codegen-arm.cc
@@ -1404,6 +1404,27 @@ void LCodeGen::DoStoreGlobal(LStoreGlobal* instr) {
}
+void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
+#if 0
+ // TODO(antonm): load a context with a separate instruction.
+ Register result = ToRegister(instr->result());
+ HLoadContextSlot* hinstr = instr->hydrogen();
+ Handle<Context> context = hinstr->context();
+ Comment(";;; Load context slot %d out of %p", hinstr->index(), *context);
+ if (Heap::InNewSpace(*context)) {
+ Handle<JSGlobalPropertyCell> cell =
+ Factory::NewJSGlobalPropertyCell(context);
+ __ mov(result, Operand::Cell(cell));
+ } else {
+ __ mov(result, context);
+ }
+ __ mov(result, Operand(result, Context::SlotOffset(hinstr->index())));
+#else
+ Abort("DoLoadContextSlot unimplemented");
+#endif
+}
+
+
void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) {
Abort("DoLoadNamedField unimplemented.");
}
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/compiler.cc » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698