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 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 code->set_gc_metadata(Smi::FromInt(0)); | 1429 code->set_gc_metadata(Smi::FromInt(0)); |
1430 code->set_ic_age(isolate()->heap()->global_ic_age()); | 1430 code->set_ic_age(isolate()->heap()->global_ic_age()); |
1431 code->set_instruction_size(desc.instr_size); | 1431 code->set_instruction_size(desc.instr_size); |
1432 code->set_relocation_info(*reloc_info); | 1432 code->set_relocation_info(*reloc_info); |
1433 code->set_flags(flags); | 1433 code->set_flags(flags); |
1434 code->set_raw_kind_specific_flags1(0); | 1434 code->set_raw_kind_specific_flags1(0); |
1435 code->set_raw_kind_specific_flags2(0); | 1435 code->set_raw_kind_specific_flags2(0); |
1436 code->set_is_crankshafted(crankshafted); | 1436 code->set_is_crankshafted(crankshafted); |
1437 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1437 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
1438 code->set_raw_type_feedback_info(Smi::FromInt(0)); | 1438 code->set_raw_type_feedback_info(Smi::FromInt(0)); |
1439 code->set_next_code_link(*undefined_value()); | 1439 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); |
1440 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1440 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1441 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); |
1441 code->set_prologue_offset(prologue_offset); | 1442 code->set_prologue_offset(prologue_offset); |
1442 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); | 1443 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); |
1443 | 1444 |
1444 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1445 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
1445 code->set_marked_for_deoptimization(false); | 1446 code->set_marked_for_deoptimization(false); |
1446 } | 1447 } |
1447 | 1448 |
1448 if (is_debug) { | 1449 if (is_debug) { |
1449 DCHECK(code->kind() == Code::FUNCTION); | 1450 DCHECK(code->kind() == Code::FUNCTION); |
1450 code->set_has_debug_break_slots(true); | 1451 code->set_has_debug_break_slots(true); |
(...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2379 } | 2380 } |
2380 | 2381 |
2381 | 2382 |
2382 Handle<Object> Factory::ToBoolean(bool value) { | 2383 Handle<Object> Factory::ToBoolean(bool value) { |
2383 return value ? true_value() : false_value(); | 2384 return value ? true_value() : false_value(); |
2384 } | 2385 } |
2385 | 2386 |
2386 | 2387 |
2387 } // namespace internal | 2388 } // namespace internal |
2388 } // namespace v8 | 2389 } // namespace v8 |
OLD | NEW |