| 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/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1436 code->set_raw_kind_specific_flags1(0); | 1436 code->set_raw_kind_specific_flags1(0); |
| 1437 code->set_raw_kind_specific_flags2(0); | 1437 code->set_raw_kind_specific_flags2(0); |
| 1438 code->set_is_crankshafted(crankshafted); | 1438 code->set_is_crankshafted(crankshafted); |
| 1439 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1439 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1440 code->set_raw_type_feedback_info(Smi::FromInt(0)); | 1440 code->set_raw_type_feedback_info(Smi::FromInt(0)); |
| 1441 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); | 1441 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); |
| 1442 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); | 1442 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 1443 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); | 1443 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); |
| 1444 code->set_prologue_offset(prologue_offset); | 1444 code->set_prologue_offset(prologue_offset); |
| 1445 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); | 1445 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); |
| 1446 code->set_builtin_index(-1); |
| 1446 | 1447 |
| 1447 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1448 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
| 1448 code->set_marked_for_deoptimization(false); | 1449 code->set_marked_for_deoptimization(false); |
| 1449 } | 1450 } |
| 1450 | 1451 |
| 1451 if (is_debug) { | 1452 if (is_debug) { |
| 1452 DCHECK(code->kind() == Code::FUNCTION); | 1453 DCHECK(code->kind() == Code::FUNCTION); |
| 1453 code->set_has_debug_break_slots(true); | 1454 code->set_has_debug_break_slots(true); |
| 1454 } | 1455 } |
| 1455 | 1456 |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2491 Handle<AccessorInfo> prototype = | 2492 Handle<AccessorInfo> prototype = |
| 2492 Accessors::FunctionPrototypeInfo(isolate(), attribs); | 2493 Accessors::FunctionPrototypeInfo(isolate(), attribs); |
| 2493 AccessorConstantDescriptor d(Handle<Name>(Name::cast(prototype->name())), | 2494 AccessorConstantDescriptor d(Handle<Name>(Name::cast(prototype->name())), |
| 2494 prototype, attribs); | 2495 prototype, attribs); |
| 2495 map->AppendDescriptor(&d); | 2496 map->AppendDescriptor(&d); |
| 2496 } | 2497 } |
| 2497 } | 2498 } |
| 2498 | 2499 |
| 2499 } // namespace internal | 2500 } // namespace internal |
| 2500 } // namespace v8 | 2501 } // namespace v8 |
| OLD | NEW |