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

Side by Side Diff: src/factory.cc

Issue 2497523002: [promises] Move promise constructor to TFS (Closed)
Patch Set: add goto Created 4 years 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
jgruber 2016/11/24 07:42:30 Nit: Unnecessary whitespace change.
1604 if (code->kind() == Code::OPTIMIZED_FUNCTION) { 1603 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
1605 code->set_marked_for_deoptimization(false); 1604 code->set_marked_for_deoptimization(false);
1606 } 1605 }
1607 1606
1608 if (is_debug) { 1607 if (is_debug) {
1609 DCHECK(code->kind() == Code::FUNCTION); 1608 DCHECK(code->kind() == Code::FUNCTION);
1610 code->set_has_debug_break_slots(true); 1609 code->set_has_debug_break_slots(true);
1611 } 1610 }
1612 1611
1613 // Allow self references to created code object by patching the handle to 1612 // 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)); 2725 Handle<JSFixedArrayIterator>::cast(NewJSObjectFromMap(map));
2727 iterator->set_initial_next(*next); 2726 iterator->set_initial_next(*next);
2728 iterator->set_array(*array); 2727 iterator->set_array(*array);
2729 iterator->set_index(0); 2728 iterator->set_index(0);
2730 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next); 2729 iterator->InObjectPropertyAtPut(JSFixedArrayIterator::kNextIndex, *next);
2731 return iterator; 2730 return iterator;
2732 } 2731 }
2733 2732
2734 } // namespace internal 2733 } // namespace internal
2735 } // namespace v8 2734 } // namespace v8
OLDNEW
« src/builtins/builtins-promise.cc ('K') | « src/contexts.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698