Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 4085a71344362666455b6ab484bd5a32c0dcdbe0..8b499c54b4add67e36128908e6386172d1ce8629 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -274,7 +274,7 @@ int CompilationInfo::TraceInlinedFunction(Handle<SharedFunctionInfo> shared, |
shared->start_position()); |
if (!shared->script()->IsUndefined()) { |
Handle<Script> script(Script::cast(shared->script())); |
- info.script_id = script->id()->value(); |
+ info.script_id = script->id(); |
if (FLAG_hydrogen_track_positions && !script->source()->IsUndefined()) { |
CodeTracer::Scope tracing_scope(isolate()->GetCodeTracer()); |
@@ -1277,8 +1277,8 @@ MaybeHandle<JSFunction> Compiler::GetFunctionFromEval( |
script = isolate->factory()->NewScript(source); |
if (!script_name.is_null()) { |
script->set_name(*script_name); |
- script->set_line_offset(Smi::FromInt(line_offset)); |
- script->set_column_offset(Smi::FromInt(column_offset)); |
+ script->set_line_offset(line_offset); |
+ script->set_column_offset(column_offset); |
} |
script->set_origin_options(options); |
Zone zone; |
@@ -1395,13 +1395,13 @@ Handle<SharedFunctionInfo> Compiler::CompileScript( |
// Create a script object describing the script to be compiled. |
Handle<Script> script = isolate->factory()->NewScript(source); |
if (natives == NATIVES_CODE) { |
- script->set_type(Smi::FromInt(Script::TYPE_NATIVE)); |
+ script->set_type(Script::TYPE_NATIVE); |
script->set_hide_source(true); |
} |
if (!script_name.is_null()) { |
script->set_name(*script_name); |
- script->set_line_offset(Smi::FromInt(line_offset)); |
- script->set_column_offset(Smi::FromInt(column_offset)); |
+ script->set_line_offset(line_offset); |
+ script->set_column_offset(column_offset); |
} |
script->set_origin_options(resource_options); |
if (!source_map_url.is_null()) { |