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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 2148743004: WIP: wasm oob trap handling experiments (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undoing spurious changes 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
« no previous file with comments | « src/x64/assembler-x64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/x64/assembler-x64.h" 5 #include "src/x64/assembler-x64.h"
6 6
7 #include <cstring> 7 #include <cstring>
8 8
9 #if V8_TARGET_ARCH_X64 9 #if V8_TARGET_ARCH_X64
10 10
(...skipping 4590 matching lines...) Expand 10 before | Expand all | Expand 10 after
4601 !serializer_enabled() && !emit_debug_code()) { 4601 !serializer_enabled() && !emit_debug_code()) {
4602 return; 4602 return;
4603 } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) { 4603 } else if (rmode == RelocInfo::CODE_AGE_SEQUENCE) {
4604 // Don't record psuedo relocation info for code age sequence mode. 4604 // Don't record psuedo relocation info for code age sequence mode.
4605 return; 4605 return;
4606 } 4606 }
4607 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); 4607 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL);
4608 reloc_info_writer.Write(&rinfo); 4608 reloc_info_writer.Write(&rinfo);
4609 } 4609 }
4610 4610
4611 void Assembler::RecordRelocInfo(RelocInfo* rinfo) {
4612 reloc_info_writer.Write(rinfo);
4613 }
4611 4614
4612 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | 4615 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask |
4613 1 << RelocInfo::RUNTIME_ENTRY | 4616 1 << RelocInfo::RUNTIME_ENTRY |
4614 1 << RelocInfo::INTERNAL_REFERENCE | 4617 1 << RelocInfo::INTERNAL_REFERENCE |
4615 1 << RelocInfo::CODE_AGE_SEQUENCE; 4618 1 << RelocInfo::CODE_AGE_SEQUENCE;
4616 4619
4617 4620
4618 bool RelocInfo::IsCodedSpecially() { 4621 bool RelocInfo::IsCodedSpecially() {
4619 // The deserializer needs to know whether a pointer is specially coded. Being 4622 // The deserializer needs to know whether a pointer is specially coded. Being
4620 // specially coded on x64 means that it is a relative 32 bit address, as used 4623 // specially coded on x64 means that it is a relative 32 bit address, as used
4621 // by branch instructions. 4624 // by branch instructions.
4622 return (1 << rmode_) & kApplyMask; 4625 return (1 << rmode_) & kApplyMask;
4623 } 4626 }
4624 4627
4625 4628
4626 bool RelocInfo::IsInConstantPool() { 4629 bool RelocInfo::IsInConstantPool() {
4627 return false; 4630 return false;
4628 } 4631 }
4629 4632
4630 4633
4631 } // namespace internal 4634 } // namespace internal
4632 } // namespace v8 4635 } // namespace v8
4633 4636
4634 #endif // V8_TARGET_ARCH_X64 4637 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698