OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); | 375 Handle<Script> script = Handle<Script>::cast(NewStruct(SCRIPT_TYPE)); |
376 script->set_source(*source); | 376 script->set_source(*source); |
377 script->set_name(heap->undefined_value()); | 377 script->set_name(heap->undefined_value()); |
378 script->set_id(heap->last_script_id()); | 378 script->set_id(heap->last_script_id()); |
379 script->set_line_offset(Smi::FromInt(0)); | 379 script->set_line_offset(Smi::FromInt(0)); |
380 script->set_column_offset(Smi::FromInt(0)); | 380 script->set_column_offset(Smi::FromInt(0)); |
381 script->set_data(heap->undefined_value()); | 381 script->set_data(heap->undefined_value()); |
382 script->set_context_data(heap->undefined_value()); | 382 script->set_context_data(heap->undefined_value()); |
383 script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); | 383 script->set_type(Smi::FromInt(Script::TYPE_NORMAL)); |
384 script->set_compilation_type(Smi::FromInt(Script::COMPILATION_TYPE_HOST)); | 384 script->set_compilation_type(Smi::FromInt(Script::COMPILATION_TYPE_HOST)); |
| 385 script->set_compilation_state( |
| 386 Smi::FromInt(Script::COMPILATION_STATE_INITIAL)); |
385 script->set_wrapper(*wrapper); | 387 script->set_wrapper(*wrapper); |
386 script->set_line_ends(heap->undefined_value()); | 388 script->set_line_ends(heap->undefined_value()); |
387 script->set_eval_from_shared(heap->undefined_value()); | 389 script->set_eval_from_shared(heap->undefined_value()); |
388 script->set_eval_from_instructions_offset(Smi::FromInt(0)); | 390 script->set_eval_from_instructions_offset(Smi::FromInt(0)); |
389 | 391 |
390 return script; | 392 return script; |
391 } | 393 } |
392 | 394 |
393 | 395 |
394 Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) { | 396 Handle<Foreign> Factory::NewForeign(Address addr, PretenureFlag pretenure) { |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1418 | 1420 |
1419 | 1421 |
1420 Handle<Object> Factory::ToBoolean(bool value) { | 1422 Handle<Object> Factory::ToBoolean(bool value) { |
1421 return Handle<Object>(value | 1423 return Handle<Object>(value |
1422 ? isolate()->heap()->true_value() | 1424 ? isolate()->heap()->true_value() |
1423 : isolate()->heap()->false_value()); | 1425 : isolate()->heap()->false_value()); |
1424 } | 1426 } |
1425 | 1427 |
1426 | 1428 |
1427 } } // namespace v8::internal | 1429 } } // namespace v8::internal |
OLD | NEW |