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

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

Issue 2301833004: [wasm] Trap handling: ProtectedLoad instruction (Closed)
Patch Set: Manual Created 4 years, 3 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 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
titzer 2016/09/08 17:06:36 Spurious whitespace change.
Eric Holk 2016/09/08 21:11:56 Done.
4612 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | 4611 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask |
4613 1 << RelocInfo::RUNTIME_ENTRY | 4612 1 << RelocInfo::RUNTIME_ENTRY |
4614 1 << RelocInfo::INTERNAL_REFERENCE | 4613 1 << RelocInfo::INTERNAL_REFERENCE |
4615 1 << RelocInfo::CODE_AGE_SEQUENCE; 4614 1 << RelocInfo::CODE_AGE_SEQUENCE;
4616 4615
4617 4616
4618 bool RelocInfo::IsCodedSpecially() { 4617 bool RelocInfo::IsCodedSpecially() {
4619 // The deserializer needs to know whether a pointer is specially coded. Being 4618 // 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 4619 // specially coded on x64 means that it is a relative 32 bit address, as used
4621 // by branch instructions. 4620 // by branch instructions.
4622 return (1 << rmode_) & kApplyMask; 4621 return (1 << rmode_) & kApplyMask;
4623 } 4622 }
4624 4623
4625 4624
4626 bool RelocInfo::IsInConstantPool() { 4625 bool RelocInfo::IsInConstantPool() {
4627 return false; 4626 return false;
4628 } 4627 }
4629 4628
4630 4629
4631 } // namespace internal 4630 } // namespace internal
4632 } // namespace v8 4631 } // namespace v8
4633 4632
4634 #endif // V8_TARGET_ARCH_X64 4633 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/compiler/x64/instruction-selector-x64.cc ('K') | « src/x64/assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698