| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index b2a52cd906d8c531d0a7feb606f306a36066ae95..7942c7f8b5677d6ead7500928dc617a90bb4375e 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -88,8 +88,6 @@ Handle<String> Bootstrapper::NativesSourceLookup(int index) {
|
| source.length());
|
| Handle<String> source_code =
|
| isolate_->factory()->NewExternalStringFromAscii(resource);
|
| - // We do not expect this to throw an exception. Change this if it does.
|
| - CHECK_NOT_EMPTY_HANDLE(isolate_, source_code);
|
| heap->natives_source_cache()->set(index, *source_code);
|
| }
|
| Handle<Object> cached_source(heap->natives_source_cache()->get(index),
|
| @@ -1465,7 +1463,6 @@ bool Genesis::CompileExperimentalBuiltin(Isolate* isolate, int index) {
|
| Handle<String> source_code =
|
| factory->NewStringFromAscii(
|
| ExperimentalNatives::GetRawScriptSource(index));
|
| - RETURN_IF_EMPTY_HANDLE_VALUE(isolate, source_code, false);
|
| return CompileNative(isolate, name, source_code);
|
| }
|
|
|
| @@ -1515,7 +1512,6 @@ bool Genesis::CompileScriptCached(Isolate* isolate,
|
| if (cache == NULL || !cache->Lookup(name, &function_info)) {
|
| ASSERT(source->IsOneByteRepresentation());
|
| Handle<String> script_name = factory->NewStringFromUtf8(name);
|
| - ASSERT(!script_name.is_null());
|
| function_info = Compiler::CompileScript(
|
| source,
|
| script_name,
|
| @@ -2084,10 +2080,8 @@ static Handle<JSObject> ResolveBuiltinIdHolder(
|
| ASSERT_EQ(".prototype", period_pos);
|
| Vector<const char> property(holder_expr,
|
| static_cast<int>(period_pos - holder_expr));
|
| - Handle<String> property_string = factory->InternalizeUtf8String(property);
|
| - ASSERT(!property_string.is_null());
|
| Handle<JSFunction> function = Handle<JSFunction>::cast(
|
| - GetProperty(isolate, global, property_string));
|
| + GetProperty(isolate, global, factory->InternalizeUtf8String(property)));
|
| return Handle<JSObject>(JSObject::cast(function->prototype()));
|
| }
|
|
|
| @@ -2355,8 +2349,6 @@ bool Genesis::InstallExtension(Isolate* isolate,
|
| }
|
| Handle<String> source_code =
|
| isolate->factory()->NewExternalStringFromAscii(extension->source());
|
| - // We do not expect this to throw an exception. Change this if it does.
|
| - CHECK_NOT_EMPTY_HANDLE(isolate, source_code);
|
| bool result = CompileScriptCached(isolate,
|
| CStrVector(extension->name()),
|
| source_code,
|
|
|