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

Side by Side Diff: src/disassembler.cc

Issue 565873002: Removing ic.h from code-stubs.h (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and mips. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/full-codegen.h » ('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/v8.h" 5 #include "src/v8.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.h" 9 #include "src/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 out.AddFormatted(" ;; external reference (%s)", reference_name); 207 out.AddFormatted(" ;; external reference (%s)", reference_name);
208 } else if (RelocInfo::IsCodeTarget(rmode)) { 208 } else if (RelocInfo::IsCodeTarget(rmode)) {
209 out.AddFormatted(" ;; code:"); 209 out.AddFormatted(" ;; code:");
210 if (rmode == RelocInfo::CONSTRUCT_CALL) { 210 if (rmode == RelocInfo::CONSTRUCT_CALL) {
211 out.AddFormatted(" constructor,"); 211 out.AddFormatted(" constructor,");
212 } 212 }
213 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address()); 213 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address());
214 Code::Kind kind = code->kind(); 214 Code::Kind kind = code->kind();
215 if (code->is_inline_cache_stub()) { 215 if (code->is_inline_cache_stub()) {
216 if (kind == Code::LOAD_IC && 216 if (kind == Code::LOAD_IC &&
217 LoadIC::GetContextualMode(code->extra_ic_state()) == CONTEXTUAL) { 217 LoadICState::GetContextualMode(code->extra_ic_state()) ==
218 CONTEXTUAL) {
218 out.AddFormatted(" contextual,"); 219 out.AddFormatted(" contextual,");
219 } 220 }
220 InlineCacheState ic_state = code->ic_state(); 221 InlineCacheState ic_state = code->ic_state();
221 out.AddFormatted(" %s, %s", Code::Kind2String(kind), 222 out.AddFormatted(" %s, %s", Code::Kind2String(kind),
222 Code::ICState2String(ic_state)); 223 Code::ICState2String(ic_state));
223 if (ic_state == MONOMORPHIC) { 224 if (ic_state == MONOMORPHIC) {
224 Code::StubType type = code->type(); 225 Code::StubType type = code->type();
225 out.AddFormatted(", %s", Code::StubType2String(type)); 226 out.AddFormatted(", %s", Code::StubType2String(type));
226 } 227 }
227 } else if (kind == Code::STUB || kind == Code::HANDLER) { 228 } else if (kind == Code::STUB || kind == Code::HANDLER) {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) { 327 int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) {
327 return 0; 328 return 0;
328 } 329 }
329 330
330 331
331 void Disassembler::Decode(FILE* f, Code* code) {} 332 void Disassembler::Decode(FILE* f, Code* code) {}
332 333
333 #endif // ENABLE_DISASSEMBLER 334 #endif // ENABLE_DISASSEMBLER
334 335
335 } } // namespace v8::internal 336 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698