| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/factory.h" | 5 #include "src/factory.h" |
| 6 | 6 |
| 7 #include "src/allocation-site-scopes.h" | 7 #include "src/allocation-site-scopes.h" |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/conversions.h" | 10 #include "src/conversions.h" |
| (...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1442 code->set_gc_metadata(Smi::FromInt(0)); | 1442 code->set_gc_metadata(Smi::FromInt(0)); |
| 1443 code->set_ic_age(isolate()->heap()->global_ic_age()); | 1443 code->set_ic_age(isolate()->heap()->global_ic_age()); |
| 1444 code->set_instruction_size(desc.instr_size); | 1444 code->set_instruction_size(desc.instr_size); |
| 1445 code->set_relocation_info(*reloc_info); | 1445 code->set_relocation_info(*reloc_info); |
| 1446 code->set_flags(flags); | 1446 code->set_flags(flags); |
| 1447 code->set_raw_kind_specific_flags1(0); | 1447 code->set_raw_kind_specific_flags1(0); |
| 1448 code->set_raw_kind_specific_flags2(0); | 1448 code->set_raw_kind_specific_flags2(0); |
| 1449 code->set_is_crankshafted(crankshafted); | 1449 code->set_is_crankshafted(crankshafted); |
| 1450 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1450 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1451 code->set_raw_type_feedback_info(Smi::FromInt(0)); | 1451 code->set_raw_type_feedback_info(Smi::FromInt(0)); |
| 1452 code->set_next_code_link(*undefined_value()); | 1452 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); |
| 1453 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1453 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1454 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); |
| 1454 code->set_prologue_offset(prologue_offset); | 1455 code->set_prologue_offset(prologue_offset); |
| 1455 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); | 1456 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); |
| 1456 | 1457 |
| 1457 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1458 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
| 1458 code->set_marked_for_deoptimization(false); | 1459 code->set_marked_for_deoptimization(false); |
| 1459 } | 1460 } |
| 1460 | 1461 |
| 1461 if (is_debug) { | 1462 if (is_debug) { |
| 1462 DCHECK(code->kind() == Code::FUNCTION); | 1463 DCHECK(code->kind() == Code::FUNCTION); |
| 1463 code->set_has_debug_break_slots(true); | 1464 code->set_has_debug_break_slots(true); |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2392 } | 2393 } |
| 2393 | 2394 |
| 2394 | 2395 |
| 2395 Handle<Object> Factory::ToBoolean(bool value) { | 2396 Handle<Object> Factory::ToBoolean(bool value) { |
| 2396 return value ? true_value() : false_value(); | 2397 return value ? true_value() : false_value(); |
| 2397 } | 2398 } |
| 2398 | 2399 |
| 2399 | 2400 |
| 2400 } // namespace internal | 2401 } // namespace internal |
| 2401 } // namespace v8 | 2402 } // namespace v8 |
| OLD | NEW |