| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 heap->set_last_script_id(Smi::FromInt(id)); | 693 heap->set_last_script_id(Smi::FromInt(id)); |
| 694 | 694 |
| 695 // Create and initialize script object. | 695 // Create and initialize script object. |
| 696 Handle<Foreign> wrapper = NewForeign(0, TENURED); | 696 Handle<Foreign> wrapper = NewForeign(0, TENURED); |
| 697 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); | 697 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); |
| 698 script->set_source(*source); | 698 script->set_source(*source); |
| 699 script->set_name(heap->undefined_value()); | 699 script->set_name(heap->undefined_value()); |
| 700 script->set_id(Smi::FromInt(id)); | 700 script->set_id(Smi::FromInt(id)); |
| 701 script->set_line_offset(Smi::FromInt(0)); | 701 script->set_line_offset(Smi::FromInt(0)); |
| 702 script->set_column_offset(Smi::FromInt(0)); | 702 script->set_column_offset(Smi::FromInt(0)); |
| 703 script->set_data(heap->undefined_value()); | |
| 704 script->set_context_data(heap->undefined_value()); | 703 script->set_context_data(heap->undefined_value()); |
| 705 script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); | 704 script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); |
| 706 script->set_wrapper(*wrapper); | 705 script->set_wrapper(*wrapper); |
| 707 script->set_line_ends(heap->undefined_value()); | 706 script->set_line_ends(heap->undefined_value()); |
| 708 script->set_eval_from_shared(heap->undefined_value()); | 707 script->set_eval_from_shared(heap->undefined_value()); |
| 709 script->set_eval_from_instructions_offset(Smi::FromInt(0)); | 708 script->set_eval_from_instructions_offset(Smi::FromInt(0)); |
| 710 script->set_flags(Smi::FromInt(0)); | 709 script->set_flags(Smi::FromInt(0)); |
| 711 | 710 |
| 712 return script; | 711 return script; |
| 713 } | 712 } |
| (...skipping 1275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1989 return Handle<Object>::null(); | 1988 return Handle<Object>::null(); |
| 1990 } | 1989 } |
| 1991 | 1990 |
| 1992 | 1991 |
| 1993 Handle<Object> Factory::ToBoolean(bool value) { | 1992 Handle<Object> Factory::ToBoolean(bool value) { |
| 1994 return value ? true_value() : false_value(); | 1993 return value ? true_value() : false_value(); |
| 1995 } | 1994 } |
| 1996 | 1995 |
| 1997 | 1996 |
| 1998 } } // namespace v8::internal | 1997 } } // namespace v8::internal |
| OLD | NEW |