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

Side by Side Diff: src/factory.cc

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Try to fix android compile Created 3 years, 11 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
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 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after
1670 code->set_raw_kind_specific_flags2(0); 1670 code->set_raw_kind_specific_flags2(0);
1671 code->set_is_crankshafted(crankshafted); 1671 code->set_is_crankshafted(crankshafted);
1672 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1672 code->set_deoptimization_data(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1673 code->set_raw_type_feedback_info(Smi::kZero); 1673 code->set_raw_type_feedback_info(Smi::kZero);
1674 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER); 1674 code->set_next_code_link(*undefined_value(), SKIP_WRITE_BARRIER);
1675 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER); 1675 code->set_handler_table(*empty_fixed_array(), SKIP_WRITE_BARRIER);
1676 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER); 1676 code->set_source_position_table(*empty_byte_array(), SKIP_WRITE_BARRIER);
1677 code->set_prologue_offset(prologue_offset); 1677 code->set_prologue_offset(prologue_offset);
1678 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size); 1678 code->set_constant_pool_offset(desc.instr_size - desc.constant_pool_size);
1679 code->set_builtin_index(-1); 1679 code->set_builtin_index(-1);
1680 code->set_trap_handler_index(Smi::FromInt(-1));
1680 code->set_protected_instructions(*empty_fixed_array()); 1681 code->set_protected_instructions(*empty_fixed_array());
1681 1682
1682 if (code->kind() == Code::OPTIMIZED_FUNCTION) { 1683 if (code->kind() == Code::OPTIMIZED_FUNCTION) {
1683 code->set_marked_for_deoptimization(false); 1684 code->set_marked_for_deoptimization(false);
1684 } 1685 }
1685 1686
1686 if (is_debug) { 1687 if (is_debug) {
1687 DCHECK(code->kind() == Code::FUNCTION); 1688 DCHECK(code->kind() == Code::FUNCTION);
1688 code->set_has_debug_break_slots(true); 1689 code->set_has_debug_break_slots(true);
1689 } 1690 }
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
2832 Handle<AccessorInfo> prototype = 2833 Handle<AccessorInfo> prototype =
2833 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs); 2834 Accessors::FunctionPrototypeInfo(isolate(), rw_attribs);
2834 Descriptor d = Descriptor::AccessorConstant( 2835 Descriptor d = Descriptor::AccessorConstant(
2835 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs); 2836 Handle<Name>(Name::cast(prototype->name())), prototype, rw_attribs);
2836 map->AppendDescriptor(&d); 2837 map->AppendDescriptor(&d);
2837 } 2838 }
2838 } 2839 }
2839 2840
2840 } // namespace internal 2841 } // namespace internal
2841 } // namespace v8 2842 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/isolate.cc » ('j') | src/trap-handler/signal-handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698