Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Side by Side Diff: src/factory.cc

Issue 2497523002: [promises] Move promise constructor to TFS (Closed)
Patch Set: use jsbuiltinconstruct stub Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after
1593 code->set_raw_kind_specific_flags2(0); 1593 code->set_raw_kind_specific_flags2(0);
1594 code->set_is_crankshafted(crankshafted); 1594 code->set_is_crankshafted(crankshafted);
1595 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1595 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1596 code->set_raw_type_feedback_info(Smi::kZero); 1596 code->set_raw_type_feedback_info(Smi::kZero);
1597 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); 1597 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER);
1598 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1598 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1599 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); 1599 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER);
1600 code->set_prologue_offset(prologue_offset); 1600 code->set_prologue_offset(prologue_offset);
1601 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); 1601 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size);
1602 code->set_builtin_index(-1); 1602 code->set_builtin_index(-1);
1603 1603 code->set_exception_hint(0);
1604 if (code->kind() == Code::OPTIMIZED_FUNCTION) { 1604 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
1605 code->set_marked_for_deoptimization(false); 1605 code->set_marked_for_deoptimization(false);
1606 } 1606 }
1607 1607
1608 if (is_debug) { 1608 if (is_debug) {
1609 DCHECK(code->kind() == Code::FUNCTION); 1609 DCHECK(code->kind() == Code::FUNCTION);
1610 code->set_has_debug_break_slots(true); 1610 code->set_has_debug_break_slots(true);
1611 } 1611 }
1612 1612
1613 // Allow self references to created code object by patching the handle to 1613 // Allow self references to created code object by patching the handle to
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map)); 2726 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map));
2727 iterator->set_initial_next(*next); 2727 iterator->set_initial_next(*next);
2728 iterator->set_array(*array); 2728 iterator->set_array(*array);
2729 iterator->set_index(0); 2729 iterator->set_index(0);
2730 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next); 2730 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next);
2731 return iterator; 2731 return iterator;
2732 } 2732 }
2733 2733
2734 } // namespace internal 2734 } // namespace internal
2735 } // namespace v8 2735 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698