Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 794586ccba434b27a0e3fbec5c78c0d9ad62a934..d9cf06ae28d2810c2180ff5e2cb82e3250fc73a1 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -3628,6 +3628,17 @@ void FullCodeGenerator::EmitGetCachedArrayIndex(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitGetSuperConstructor(CallRuntime* expr) { |
+ ZoneList<Expression*>* args = expr->arguments(); |
+ DCHECK_EQ(1, args->length()); |
+ VisitForAccumulatorValue(args->at(0)); |
+ __ AssertFunction(eax); |
+ __ mov(eax, FieldOperand(eax, HeapObject::kMapOffset)); |
+ __ mov(eax, FieldOperand(eax, Map::kPrototypeOffset)); |
+ context()->Plug(eax); |
+} |
+ |
+ |
void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
Label bailout, done, one_char_separator, long_separator, |
non_trivial_array, not_size_one_array, loop, |