Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 37cd938a15dacfe65548c79fa4713a83298fc46e..ebfdf33c581585628e491e43102b366e18f6ea77 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -1213,7 +1213,11 @@ void BytecodeGenerator::VisitClassLiteral(ClassLiteral* expr) { |
void BytecodeGenerator::VisitNativeFunctionLiteral( |
NativeFunctionLiteral* expr) { |
- UNIMPLEMENTED(); |
+ // Find or build a shared function info for the native function template. |
+ Handle<SharedFunctionInfo> shared_info = |
+ Compiler::GetSharedFunctionInfoForNative(expr->extension(), expr->name()); |
+ builder()->CreateClosure(shared_info, NOT_TENURED); |
+ execution_result()->SetResultInAccumulator(); |
} |