| 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/conversions.h" | 8 #include "src/conversions.h" |
| 9 #include "src/isolate-inl.h" | 9 #include "src/isolate-inl.h" |
| 10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
| (...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1430 DisallowHeapAllocation no_gc; | 1430 DisallowHeapAllocation no_gc; |
| 1431 code->set_gc_metadata(Smi::FromInt(0)); | 1431 code->set_gc_metadata(Smi::FromInt(0)); |
| 1432 code->set_ic_age(isolate()->heap()->global_ic_age()); | 1432 code->set_ic_age(isolate()->heap()->global_ic_age()); |
| 1433 code->set_instruction_size(desc.instr_size); | 1433 code->set_instruction_size(desc.instr_size); |
| 1434 code->set_relocation_info(*reloc_info); | 1434 code->set_relocation_info(*reloc_info); |
| 1435 code->set_flags(flags); | 1435 code->set_flags(flags); |
| 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(*undefined_value()); | 1440 code->set_raw_type_feedback_info(Smi::FromInt(0)); |
| 1441 code->set_next_code_link(*undefined_value()); | 1441 code->set_next_code_link(*undefined_value()); |
| 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_prologue_offset(prologue_offset); | 1443 code->set_prologue_offset(prologue_offset); |
| 1444 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 1444 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
| 1445 code->set_marked_for_deoptimization(false); | 1445 code->set_marked_for_deoptimization(false); |
| 1446 } | 1446 } |
| 1447 | 1447 |
| 1448 if (is_debug) { | 1448 if (is_debug) { |
| 1449 ASSERT(code->kind() == Code::FUNCTION); | 1449 ASSERT(code->kind() == Code::FUNCTION); |
| 1450 code->set_has_debug_break_slots(true); | 1450 code->set_has_debug_break_slots(true); |
| (...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2365 return Handle<Object>::null(); | 2365 return Handle<Object>::null(); |
| 2366 } | 2366 } |
| 2367 | 2367 |
| 2368 | 2368 |
| 2369 Handle<Object> Factory::ToBoolean(bool value) { | 2369 Handle<Object> Factory::ToBoolean(bool value) { |
| 2370 return value ? true_value() : false_value(); | 2370 return value ? true_value() : false_value(); |
| 2371 } | 2371 } |
| 2372 | 2372 |
| 2373 | 2373 |
| 2374 } } // namespace v8::internal | 2374 } } // namespace v8::internal |
| OLD | NEW |