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

Side by Side Diff: src/objects.cc

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Feedback from mseaborn 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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/objects.h" 5 #include "src/objects.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <memory> 9 #include <memory>
10 #include <sstream> 10 #include <sstream>
(...skipping 13909 matching lines...) Expand 10 before | Expand all | Expand 10 after
13920 if (mode == RelocInfo::EMBEDDED_OBJECT) { 13920 if (mode == RelocInfo::EMBEDDED_OBJECT) {
13921 it.rinfo()->set_target_object(undefined, SKIP_WRITE_BARRIER); 13921 it.rinfo()->set_target_object(undefined, SKIP_WRITE_BARRIER);
13922 } else if (mode == RelocInfo::CELL) { 13922 } else if (mode == RelocInfo::CELL) {
13923 it.rinfo()->set_target_cell(undefined_cell, SKIP_WRITE_BARRIER); 13923 it.rinfo()->set_target_cell(undefined_cell, SKIP_WRITE_BARRIER);
13924 } 13924 }
13925 } 13925 }
13926 } 13926 }
13927 13927
13928 13928
13929 void Code::Relocate(intptr_t delta) { 13929 void Code::Relocate(intptr_t delta) {
13930 if (trap_handler::EnableTrapHandler() && is_wasm_code()) {
13931 const int index = trap_handler_index()->value();
13932 if (index >= 0) {
13933 trap_handler::UpdateCodePointer(index, instruction_start());
13934 }
13935 }
13930 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { 13936 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) {
13931 it.rinfo()->apply(delta); 13937 it.rinfo()->apply(delta);
13932 } 13938 }
13933 Assembler::FlushICache(GetIsolate(), instruction_start(), instruction_size()); 13939 Assembler::FlushICache(GetIsolate(), instruction_start(), instruction_size());
13934 } 13940 }
13935 13941
13936 13942
13937 void Code::CopyFrom(const CodeDesc& desc) { 13943 void Code::CopyFrom(const CodeDesc& desc) {
13938 // copy code 13944 // copy code
13939 CopyBytes(instruction_start(), desc.buffer, 13945 CopyBytes(instruction_start(), desc.buffer,
(...skipping 6126 matching lines...) Expand 10 before | Expand all | Expand 10 after
20066 // depend on this. 20072 // depend on this.
20067 return DICTIONARY_ELEMENTS; 20073 return DICTIONARY_ELEMENTS;
20068 } 20074 }
20069 DCHECK_LE(kind, LAST_ELEMENTS_KIND); 20075 DCHECK_LE(kind, LAST_ELEMENTS_KIND);
20070 return kind; 20076 return kind;
20071 } 20077 }
20072 } 20078 }
20073 20079
20074 } // namespace internal 20080 } // namespace internal
20075 } // namespace v8 20081 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | src/trap-handler/signal-handler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698