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

Side by Side Diff: src/disassembler.cc

Issue 2065373003: [ic] LoadICState cleanup. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@cleanup-load-global-ic
Patch Set: Rebasing Created 4 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/code-stubs.h ('k') | src/ia32/code-stubs-ia32.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 "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } else if (rmode == RelocInfo::EXTERNAL_REFERENCE) { 195 } else if (rmode == RelocInfo::EXTERNAL_REFERENCE) {
196 const char* reference_name = ref_encoder.NameOfAddress( 196 const char* reference_name = ref_encoder.NameOfAddress(
197 isolate, relocinfo.target_external_reference()); 197 isolate, relocinfo.target_external_reference());
198 out.AddFormatted(" ;; external reference (%s)", reference_name); 198 out.AddFormatted(" ;; external reference (%s)", reference_name);
199 } else if (RelocInfo::IsCodeTarget(rmode)) { 199 } else if (RelocInfo::IsCodeTarget(rmode)) {
200 out.AddFormatted(" ;; code:"); 200 out.AddFormatted(" ;; code:");
201 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address()); 201 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address());
202 Code::Kind kind = code->kind(); 202 Code::Kind kind = code->kind();
203 if (code->is_inline_cache_stub()) { 203 if (code->is_inline_cache_stub()) {
204 if (kind == Code::LOAD_GLOBAL_IC && 204 if (kind == Code::LOAD_GLOBAL_IC &&
205 LoadICState::GetTypeofMode(code->extra_ic_state()) == 205 LoadGlobalICState::GetTypeofMode(code->extra_ic_state()) ==
206 INSIDE_TYPEOF) { 206 INSIDE_TYPEOF) {
207 out.AddFormatted(" inside typeof,"); 207 out.AddFormatted(" inside typeof,");
208 } 208 }
209 out.AddFormatted(" %s", Code::Kind2String(kind)); 209 out.AddFormatted(" %s", Code::Kind2String(kind));
210 if (!IC::ICUseVector(kind)) { 210 if (!IC::ICUseVector(kind)) {
211 InlineCacheState ic_state = IC::StateFromCode(code); 211 InlineCacheState ic_state = IC::StateFromCode(code);
212 out.AddFormatted(" %s", Code::ICState2String(ic_state)); 212 out.AddFormatted(" %s", Code::ICState2String(ic_state));
213 } 213 }
214 } else if (kind == Code::STUB || kind == Code::HANDLER) { 214 } else if (kind == Code::STUB || kind == Code::HANDLER) {
215 // Get the STUB key and extract major and minor key. 215 // Get the STUB key and extract major and minor key.
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 285
286 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, 286 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin,
287 byte* end, Code* code) { 287 byte* end, Code* code) {
288 return 0; 288 return 0;
289 } 289 }
290 290
291 #endif // ENABLE_DISASSEMBLER 291 #endif // ENABLE_DISASSEMBLER
292 292
293 } // namespace internal 293 } // namespace internal
294 } // namespace v8 294 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698