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

Side by Side Diff: src/disassembler.cc

Issue 150101: Tweaks to global object inline cache code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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/arm/stub-cache-arm.cc ('k') | src/ia32/stub-cache-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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 if (rmode == RelocInfo::CODE_TARGET_CONTEXT) { 236 if (rmode == RelocInfo::CODE_TARGET_CONTEXT) {
237 out.AddFormatted(" contextual,"); 237 out.AddFormatted(" contextual,");
238 } 238 }
239 InlineCacheState ic_state = code->ic_state(); 239 InlineCacheState ic_state = code->ic_state();
240 out.AddFormatted(" %s, %s", Code::Kind2String(kind), 240 out.AddFormatted(" %s, %s", Code::Kind2String(kind),
241 Code::ICState2String(ic_state)); 241 Code::ICState2String(ic_state));
242 if (ic_state == MONOMORPHIC) { 242 if (ic_state == MONOMORPHIC) {
243 PropertyType type = code->type(); 243 PropertyType type = code->type();
244 out.AddFormatted(", %s", Code::PropertyType2String(type)); 244 out.AddFormatted(", %s", Code::PropertyType2String(type));
245 } 245 }
246 if (code->ic_in_loop() == IN_LOOP) {
247 out.AddFormatted(", in_loop");
248 }
246 if (kind == Code::CALL_IC) { 249 if (kind == Code::CALL_IC) {
247 out.AddFormatted(", argc = %d", code->arguments_count()); 250 out.AddFormatted(", argc = %d", code->arguments_count());
248 } 251 }
249 } else if (kind == Code::STUB) { 252 } else if (kind == Code::STUB) {
250 // Reverse lookup required as the minor key cannot be retrieved 253 // Reverse lookup required as the minor key cannot be retrieved
251 // from the code object. 254 // from the code object.
252 Object* obj = Heap::code_stubs()->SlowReverseLookup(code); 255 Object* obj = Heap::code_stubs()->SlowReverseLookup(code);
253 if (obj != Heap::undefined_value()) { 256 if (obj != Heap::undefined_value()) {
254 ASSERT(obj->IsSmi()); 257 ASSERT(obj->IsSmi());
255 // Get the STUB key and extract major and minor key. 258 // Get the STUB key and extract major and minor key.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 309
307 #else // ENABLE_DISASSEMBLER 310 #else // ENABLE_DISASSEMBLER
308 311
309 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} 312 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {}
310 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } 313 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; }
311 void Disassembler::Decode(FILE* f, Code* code) {} 314 void Disassembler::Decode(FILE* f, Code* code) {}
312 315
313 #endif // ENABLE_DISASSEMBLER 316 #endif // ENABLE_DISASSEMBLER
314 317
315 } } // namespace v8::internal 318 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698