Commit f5eb2cbe authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Remove unused runtime function.

The CompileScript runtime function is not used by any builtins any more.
Review URL: http://codereview.chromium.org/80003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1744 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 670a535b
...@@ -4893,26 +4893,6 @@ static Object* Runtime_ResolvePossiblyDirectEval(Arguments args) { ...@@ -4893,26 +4893,6 @@ static Object* Runtime_ResolvePossiblyDirectEval(Arguments args) {
} }
static Object* Runtime_CompileScript(Arguments args) {
HandleScope scope;
ASSERT(args.length() == 4);
CONVERT_ARG_CHECKED(String, source, 0);
CONVERT_ARG_CHECKED(String, script, 1);
CONVERT_CHECKED(Smi, line_attrs, args[2]);
int line = line_attrs->value();
CONVERT_CHECKED(Smi, col_attrs, args[3]);
int col = col_attrs->value();
Handle<JSFunction> boilerplate =
Compiler::Compile(source, script, line, col, NULL, NULL);
if (boilerplate.is_null()) return Failure::Exception();
Handle<JSFunction> fun =
Factory::NewFunctionFromBoilerplate(boilerplate,
Handle<Context>(Top::context()));
return *fun;
}
static Object* Runtime_SetNewFunctionAttributes(Arguments args) { static Object* Runtime_SetNewFunctionAttributes(Arguments args) {
// This utility adjusts the property attributes for newly created Function // This utility adjusts the property attributes for newly created Function
// object ("new Function(...)") by changing the map. // object ("new Function(...)") by changing the map.
......
...@@ -195,7 +195,6 @@ namespace v8 { namespace internal { ...@@ -195,7 +195,6 @@ namespace v8 { namespace internal {
\ \
/* Globals */ \ /* Globals */ \
F(CompileString, 2) \ F(CompileString, 2) \
F(CompileScript, 4) \
F(GlobalPrint, 1) \ F(GlobalPrint, 1) \
\ \
/* Eval */ \ /* Eval */ \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment