Change the order of two assignments, to make sure that the script type
field is always initialized to a Smi before we get any GCs. Review URL: http://codereview.chromium.org/8833 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@624 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
b595d914a8
commit
44340e39c5
@ -138,8 +138,8 @@ Handle<Script> Factory::NewScript(Handle<String> source) {
|
||||
script->set_name(Heap::undefined_value());
|
||||
script->set_line_offset(Smi::FromInt(0));
|
||||
script->set_column_offset(Smi::FromInt(0));
|
||||
script->set_wrapper(*Factory::NewProxy(0, TENURED));
|
||||
script->set_type(Smi::FromInt(SCRIPT_TYPE_NORMAL));
|
||||
script->set_wrapper(*Factory::NewProxy(0, TENURED));
|
||||
return script;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user