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

Side by Side Diff: src/factory.cc

Issue 2591903002: [wasm] sundry trap handler fixes (Closed)
Patch Set: Merge VisitLoad and VisitProtectedLoad Created 3 years, 12 months 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
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 code->set_raw_kind_specific_flags2(0); 1619 code->set_raw_kind_specific_flags2(0);
1620 code->set_is_crankshafted(crankshafted); 1620 code->set_is_crankshafted(crankshafted);
1621 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1621 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1622 code->set_raw_type_feedback_info(Smi::kZero); 1622 code->set_raw_type_feedback_info(Smi::kZero);
1623 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); 1623 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER);
1624 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1624 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1625 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); 1625 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER);
1626 code->set_prologue_offset(prologue_offset); 1626 code->set_prologue_offset(prologue_offset);
1627 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); 1627 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size);
1628 code->set_builtin_index(-1); 1628 code->set_builtin_index(-1);
1629 code->set_protected_instructions(*empty_fixed_array());
1629 1630
1630 if (code->kind() == Code::OPTIMIZED_FUNCTION) { 1631 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
1631 code->set_marked_for_deoptimization(false); 1632 code->set_marked_for_deoptimization(false);
1632 } 1633 }
1633 1634
1634 if (is_debug) { 1635 if (is_debug) {
1635 DCHECK(code->kind() == Code::FUNCTION); 1636 DCHECK(code->kind() == Code::FUNCTION);
1636 code->set_has_debug_break_slots(true); 1637 code->set_has_debug_break_slots(true);
1637 } 1638 }
1638 1639
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 Handle<AccessorInfo> prototype = 2781 Handle<AccessorInfo> prototype =
2781 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); 2782 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs);
2782 AccessorConstantDescriptor d(Handle<Name>(Name::cast(prototype->name())), 2783 AccessorConstantDescriptor d(Handle<Name>(Name::cast(prototype->name())),
2783 prototype, rw_attribs); 2784 prototype, rw_attribs);
2784 map->AppendDescriptor(&d); 2785 map->AppendDescriptor(&d);
2785 } 2786 }
2786 } 2787 }
2787 2788
2788 } // namespace internal 2789 } // namespace internal
2789 } // namespace v8 2790 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698