Index: src/handles.cc |
diff --git a/src/handles.cc b/src/handles.cc |
index 04f950c02fe1e4e2a58f031d8be993f7239efc84..c6b1a67489bd82338238c4ba3c7b39dfedc3b833 100644 |
--- a/src/handles.cc |
+++ b/src/handles.cc |
@@ -376,13 +376,6 @@ Handle<Object> GetProperty(Handle<Object> obj, |
} |
-Handle<Object> GetElement(Handle<Object> obj, |
- uint32_t index) { |
- Isolate* isolate = Isolate::Current(); |
- CALL_HEAP_FUNCTION(isolate, Runtime::GetElement(obj, index), Object); |
-} |
- |
- |
Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, |
Handle<JSObject> holder, |
Handle<String> name, |
@@ -888,53 +881,4 @@ Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, |
} |
-bool EnsureCompiled(Handle<SharedFunctionInfo> shared, |
- ClearExceptionFlag flag) { |
- return shared->is_compiled() || CompileLazyShared(shared, flag); |
-} |
- |
- |
-static bool CompileLazyHelper(CompilationInfo* info, |
- ClearExceptionFlag flag) { |
- // Compile the source information to a code object. |
- ASSERT(info->IsOptimizing() || !info->shared_info()->is_compiled()); |
- ASSERT(!info->isolate()->has_pending_exception()); |
- bool result = Compiler::CompileLazy(info); |
- ASSERT(result != Isolate::Current()->has_pending_exception()); |
- if (!result && flag == CLEAR_EXCEPTION) { |
- info->isolate()->clear_pending_exception(); |
- } |
- return result; |
-} |
- |
- |
-bool CompileLazyShared(Handle<SharedFunctionInfo> shared, |
- ClearExceptionFlag flag) { |
- CompilationInfo info(shared); |
- return CompileLazyHelper(&info, flag); |
-} |
- |
- |
-bool CompileLazy(Handle<JSFunction> function, ClearExceptionFlag flag) { |
- bool result = true; |
- if (function->shared()->is_compiled()) { |
- function->ReplaceCode(function->shared()->code()); |
- function->shared()->set_code_age(0); |
- } else { |
- CompilationInfo info(function); |
- result = CompileLazyHelper(&info, flag); |
- ASSERT(!result || function->is_compiled()); |
- } |
- return result; |
-} |
- |
- |
-bool CompileOptimized(Handle<JSFunction> function, |
- int osr_ast_id, |
- ClearExceptionFlag flag) { |
- CompilationInfo info(function); |
- info.SetOptimizing(osr_ast_id); |
- return CompileLazyHelper(&info, flag); |
-} |
- |
} } // namespace v8::internal |