| 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/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
| 9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 1684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1695 code->set_has_unwinding_info(has_unwinding_info); | 1695 code->set_has_unwinding_info(has_unwinding_info); |
| 1696 code->set_raw_kind_specific_flags1(0); | 1696 code->set_raw_kind_specific_flags1(0); |
| 1697 code->set_raw_kind_specific_flags2(0); | 1697 code->set_raw_kind_specific_flags2(0); |
| 1698 code->set_is_crankshafted(crankshafted); | 1698 code->set_is_crankshafted(crankshafted); |
| 1699 code->set_has_tagged_params(true); | 1699 code->set_has_tagged_params(true); |
| 1700 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1700 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1701 code->set_raw_type_feedback_info(Smi::kZero); | 1701 code->set_raw_type_feedback_info(Smi::kZero); |
| 1702 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); | 1702 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); |
| 1703 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1703 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1704 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); | 1704 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); |
| 1705 code->set_stack_frame_cache(Smi::kZero); |
| 1705 code->set_prologue_offset(prologue_offset); | 1706 code->set_prologue_offset(prologue_offset); |
| 1706 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); | 1707 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); |
| 1707 code->set_builtin_index(-1); | 1708 code->set_builtin_index(-1); |
| 1708 code->set_trap_handler_index(Smi::FromInt(-1)); | 1709 code->set_trap_handler_index(Smi::FromInt(-1)); |
| 1709 | 1710 |
| 1710 switch (code->kind()) { | 1711 switch (code->kind()) { |
| 1711 case Code::OPTIMIZED_FUNCTION: | 1712 case Code::OPTIMIZED_FUNCTION: |
| 1712 code->set_marked_for_deoptimization(false); | 1713 code->set_marked_for_deoptimization(false); |
| 1713 break; | 1714 break; |
| 1714 case Code::JS_TO_WASM_FUNCTION: | 1715 case Code::JS_TO_WASM_FUNCTION: |
| (...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2904 Handle<AccessorInfo> prototype = | 2905 Handle<AccessorInfo> prototype = |
| 2905 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); | 2906 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); |
| 2906 Descriptor d = Descriptor::AccessorConstant( | 2907 Descriptor d = Descriptor::AccessorConstant( |
| 2907 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); | 2908 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); |
| 2908 map->AppendDescriptor(&d); | 2909 map->AppendDescriptor(&d); |
| 2909 } | 2910 } |
| 2910 } | 2911 } |
| 2911 | 2912 |
| 2912 } // namespace internal | 2913 } // namespace internal |
| 2913 } // namespace v8 | 2914 } // namespace v8 |
| OLD | NEW |