Commit 5afb2f7a authored by cbruni's avatar cbruni Committed by Commit bot

[runtime] cleanup: use the factory() for handlified values

BUG=

Review-Url: https://codereview.chromium.org/2163823004
Cr-Commit-Position: refs/heads/master@{#37981}
parent b5b9dd73
...@@ -1582,7 +1582,7 @@ static Handle<Object> GetJSPositionInfo(Handle<Script> script, int position, ...@@ -1582,7 +1582,7 @@ static Handle<Object> GetJSPositionInfo(Handle<Script> script, int position,
Isolate* isolate) { Isolate* isolate) {
Script::PositionInfo info; Script::PositionInfo info;
if (!script->GetPositionInfo(position, &info, offset_flag)) { if (!script->GetPositionInfo(position, &info, offset_flag)) {
return handle(isolate->heap()->null_value(), isolate); return isolate->factory()->null_value();
} }
Handle<String> source = handle(String::cast(script->source()), isolate); Handle<String> source = handle(String::cast(script->source()), isolate);
......
...@@ -27,7 +27,7 @@ RUNTIME_FUNCTION(Runtime_CreateJSGeneratorObject) { ...@@ -27,7 +27,7 @@ RUNTIME_FUNCTION(Runtime_CreateJSGeneratorObject) {
operand_stack = isolate->factory()->NewFixedArray(size); operand_stack = isolate->factory()->NewFixedArray(size);
} else { } else {
// Old-style generators. // Old-style generators.
operand_stack = handle(isolate->heap()->empty_fixed_array()); operand_stack = isolate->factory()->empty_fixed_array();
} }
Handle<JSGeneratorObject> generator = Handle<JSGeneratorObject> generator =
......
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