OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 } | 166 } |
167 Heap::SetLastScriptId(Smi::FromInt(id)); | 167 Heap::SetLastScriptId(Smi::FromInt(id)); |
168 | 168 |
169 // Create and initialize script object. | 169 // Create and initialize script object. |
170 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); | 170 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); |
171 script->set_source(*source); | 171 script->set_source(*source); |
172 script->set_name(Heap::undefined_value()); | 172 script->set_name(Heap::undefined_value()); |
173 script->set_id(Heap::last_script_id()); | 173 script->set_id(Heap::last_script_id()); |
174 script->set_line_offset(Smi::FromInt(0)); | 174 script->set_line_offset(Smi::FromInt(0)); |
175 script->set_column_offset(Smi::FromInt(0)); | 175 script->set_column_offset(Smi::FromInt(0)); |
| 176 script->set_data(Heap::undefined_value()); |
176 script->set_type(Smi::FromInt(SCRIPT_TYPE_NORMAL)); | 177 script->set_type(Smi::FromInt(SCRIPT_TYPE_NORMAL)); |
177 script->set_wrapper(*Factory::NewProxy(0, TENURED)); | 178 script->set_wrapper(*Factory::NewProxy(0, TENURED)); |
178 script->set_line_ends(Heap::undefined_value()); | 179 script->set_line_ends(Heap::undefined_value()); |
179 | 180 |
180 return script; | 181 return script; |
181 } | 182 } |
182 | 183 |
183 | 184 |
184 Handle<Proxy> Factory::NewProxy(Address addr, PretenureFlag pretenure) { | 185 Handle<Proxy> Factory::NewProxy(Address addr, PretenureFlag pretenure) { |
185 CALL_HEAP_FUNCTION(Heap::AllocateProxy(addr, pretenure), Proxy); | 186 CALL_HEAP_FUNCTION(Heap::AllocateProxy(addr, pretenure), Proxy); |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 Execution::ConfigureInstance(instance, | 896 Execution::ConfigureInstance(instance, |
896 instance_template, | 897 instance_template, |
897 pending_exception); | 898 pending_exception); |
898 } else { | 899 } else { |
899 *pending_exception = false; | 900 *pending_exception = false; |
900 } | 901 } |
901 } | 902 } |
902 | 903 |
903 | 904 |
904 } } // namespace v8::internal | 905 } } // namespace v8::internal |
OLD | NEW |