| 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 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1693 code->set_raw_kind_specific_flags2(0); | 1693 code->set_raw_kind_specific_flags2(0); |
| 1694 code->set_is_crankshafted(crankshafted); | 1694 code->set_is_crankshafted(crankshafted); |
| 1695 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1695 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1696 code->set_raw_type_feedback_info(Smi::kZero); | 1696 code->set_raw_type_feedback_info(Smi::kZero); |
| 1697 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); | 1697 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); |
| 1698 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1698 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1699 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); | 1699 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); |
| 1700 code->set_prologue_offset(prologue_offset); | 1700 code->set_prologue_offset(prologue_offset); |
| 1701 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); | 1701 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); |
| 1702 code->set_builtin_index(-1); | 1702 code->set_builtin_index(-1); |
| 1703 code->set_trap_handler_index(Smi::FromInt(-1)); | |
| 1704 | 1703 |
| 1705 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1704 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
| 1706 code->set_marked_for_deoptimization(false); | 1705 code->set_marked_for_deoptimization(false); |
| 1707 } | 1706 } |
| 1708 | 1707 |
| 1709 if (is_debug) { | 1708 if (is_debug) { |
| 1710 DCHECK(code->kind() == Code::FUNCTION); | 1709 DCHECK(code->kind() == Code::FUNCTION); |
| 1711 code->set_has_debug_break_slots(true); | 1710 code->set_has_debug_break_slots(true); |
| 1712 } | 1711 } |
| 1713 | 1712 |
| (...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2875 Handle<AccessorInfo> prototype = | 2874 Handle<AccessorInfo> prototype = |
| 2876 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); | 2875 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); |
| 2877 Descriptor d = Descriptor::AccessorConstant( | 2876 Descriptor d = Descriptor::AccessorConstant( |
| 2878 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); | 2877 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); |
| 2879 map->AppendDescriptor(&d); | 2878 map->AppendDescriptor(&d); |
| 2880 } | 2879 } |
| 2881 } | 2880 } |
| 2882 | 2881 |
| 2883 } // namespace internal | 2882 } // namespace internal |
| 2884 } // namespace v8 | 2883 } // namespace v8 |
| OLD | NEW |