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

Side by Side Diff: src/disassembler.cc

Issue 2951473002: Remove enum RelocInfo::CODE_TARGET_WITH_ID. (Closed)
Patch Set: Review update. Created 3 years, 6 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/assembler.cc ('k') | src/mips/assembler-mips.cc » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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/disassembler.h" 5 #include "src/disassembler.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 uint32_t key = code->stub_key(); 128 uint32_t key = code->stub_key();
129 uint32_t minor_key = CodeStub::MinorKeyFromKey(key); 129 uint32_t minor_key = CodeStub::MinorKeyFromKey(key);
130 CodeStub::Major major_key = CodeStub::GetMajorKey(code); 130 CodeStub::Major major_key = CodeStub::GetMajorKey(code);
131 DCHECK(major_key == CodeStub::MajorKeyFromKey(key)); 131 DCHECK(major_key == CodeStub::MajorKeyFromKey(key));
132 out->AddFormatted(" %s, %s, ", Code::Kind2String(kind), 132 out->AddFormatted(" %s, %s, ", Code::Kind2String(kind),
133 CodeStub::MajorName(major_key)); 133 CodeStub::MajorName(major_key));
134 out->AddFormatted("minor: %d", minor_key); 134 out->AddFormatted("minor: %d", minor_key);
135 } else { 135 } else {
136 out->AddFormatted(" %s", Code::Kind2String(kind)); 136 out->AddFormatted(" %s", Code::Kind2String(kind));
137 } 137 }
138 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) {
139 out->AddFormatted(" (id = %d)", static_cast<int>(relocinfo->data()));
140 }
141 } else if (RelocInfo::IsRuntimeEntry(rmode) && 138 } else if (RelocInfo::IsRuntimeEntry(rmode) &&
142 isolate->deoptimizer_data() != nullptr) { 139 isolate->deoptimizer_data() != nullptr) {
143 // A runtime entry reloinfo might be a deoptimization bailout-> 140 // A runtime entry reloinfo might be a deoptimization bailout->
144 Address addr = relocinfo->target_address(); 141 Address addr = relocinfo->target_address();
145 int id = 142 int id =
146 Deoptimizer::GetDeoptimizationId(isolate, addr, Deoptimizer::EAGER); 143 Deoptimizer::GetDeoptimizationId(isolate, addr, Deoptimizer::EAGER);
147 if (id == Deoptimizer::kNotDeoptimizationEntry) { 144 if (id == Deoptimizer::kNotDeoptimizationEntry) {
148 id = Deoptimizer::GetDeoptimizationId(isolate, addr, Deoptimizer::LAZY); 145 id = Deoptimizer::GetDeoptimizationId(isolate, addr, Deoptimizer::LAZY);
149 if (id == Deoptimizer::kNotDeoptimizationEntry) { 146 if (id == Deoptimizer::kNotDeoptimizationEntry) {
150 id = Deoptimizer::GetDeoptimizationId(isolate, addr, Deoptimizer::SOFT); 147 id = Deoptimizer::GetDeoptimizationId(isolate, addr, Deoptimizer::SOFT);
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 304
308 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, 305 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin,
309 byte* end, Code* code) { 306 byte* end, Code* code) {
310 return 0; 307 return 0;
311 } 308 }
312 309
313 #endif // ENABLE_DISASSEMBLER 310 #endif // ENABLE_DISASSEMBLER
314 311
315 } // namespace internal 312 } // namespace internal
316 } // namespace v8 313 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698