Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 0f7da34052e53c6122097efca75b7e7f9f11c587..0e96e4504b7dd816eb11133ce1a25dc9447e7b32 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -1184,7 +1184,9 @@ void FullCodeGenerator::VisitClassLiteral(ClassLiteral* lit) { |
__ Push(Smi::FromInt(lit->start_position())); |
__ Push(Smi::FromInt(lit->end_position())); |
- __ CallRuntime(Runtime::kDefineClass, 6); |
+ __ CallRuntime(is_strong(language_mode()) ? Runtime::kDefineClassStrong |
+ : Runtime::kDefineClass, |
+ 6); |
PrepareForBailoutForId(lit->CreateLiteralId(), TOS_REG); |
int store_slot_index = 0; |