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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Create and initialize script object. | 170 // Create and initialize script object. |
171 Handle<Proxy> wrapper = Factory::NewProxy(0, TENURED); | 171 Handle<Proxy> wrapper = Factory::NewProxy(0, TENURED); |
172 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); | 172 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); |
173 script->set_source(*source); | 173 script->set_source(*source); |
174 script->set_name(Heap::undefined_value()); | 174 script->set_name(Heap::undefined_value()); |
175 script->set_id(Heap::last_script_id()); | 175 script->set_id(Heap::last_script_id()); |
176 script->set_line_offset(Smi::FromInt(0)); | 176 script->set_line_offset(Smi::FromInt(0)); |
177 script->set_column_offset(Smi::FromInt(0)); | 177 script->set_column_offset(Smi::FromInt(0)); |
178 script->set_data(Heap::undefined_value()); | 178 script->set_data(Heap::undefined_value()); |
179 script->set_context_data(Heap::undefined_value()); | 179 script->set_context_data(Heap::undefined_value()); |
180 script->set_type(Smi::FromInt(SCRIPT_TYPE_NORMAL)); | 180 script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); |
| 181 script->set_compilation_type(Smi::FromInt(Script::COMPILATION_TYPE_HOST)); |
181 script->set_wrapper(*wrapper); | 182 script->set_wrapper(*wrapper); |
182 script->set_line_ends(Heap::undefined_value()); | 183 script->set_line_ends(Heap::undefined_value()); |
| 184 script->set_eval_from_function(Heap::undefined_value()); |
| 185 script->set_eval_from_instructions_offset(Smi::FromInt(0)); |
183 | 186 |
184 return script; | 187 return script; |
185 } | 188 } |
186 | 189 |
187 | 190 |
188 Handle<Proxy> Factory::NewProxy(Address addr, PretenureFlag pretenure) { | 191 Handle<Proxy> Factory::NewProxy(Address addr, PretenureFlag pretenure) { |
189 CALL_HEAP_FUNCTION(Heap::AllocateProxy(addr, pretenure), Proxy); | 192 CALL_HEAP_FUNCTION(Heap::AllocateProxy(addr, pretenure), Proxy); |
190 } | 193 } |
191 | 194 |
192 | 195 |
(...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
901 Execution::ConfigureInstance(instance, | 904 Execution::ConfigureInstance(instance, |
902 instance_template, | 905 instance_template, |
903 pending_exception); | 906 pending_exception); |
904 } else { | 907 } else { |
905 *pending_exception = false; | 908 *pending_exception = false; |
906 } | 909 } |
907 } | 910 } |
908 | 911 |
909 | 912 |
910 } } // namespace v8::internal | 913 } } // namespace v8::internal |
OLD | NEW |