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

Side by Side Diff: src/disassembler.cc

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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/deoptimizer.cc ('k') | src/diy-fp.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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 Code::ICState2String(ic_state)); 222 Code::ICState2String(ic_state));
223 if (ic_state == MONOMORPHIC) { 223 if (ic_state == MONOMORPHIC) {
224 Code::StubType type = code->type(); 224 Code::StubType type = code->type();
225 out.AddFormatted(", %s", Code::StubType2String(type)); 225 out.AddFormatted(", %s", Code::StubType2String(type));
226 } 226 }
227 } else if (kind == Code::STUB || kind == Code::HANDLER) { 227 } else if (kind == Code::STUB || kind == Code::HANDLER) {
228 // Get the STUB key and extract major and minor key. 228 // Get the STUB key and extract major and minor key.
229 uint32_t key = code->stub_key(); 229 uint32_t key = code->stub_key();
230 uint32_t minor_key = CodeStub::MinorKeyFromKey(key); 230 uint32_t minor_key = CodeStub::MinorKeyFromKey(key);
231 CodeStub::Major major_key = CodeStub::GetMajorKey(code); 231 CodeStub::Major major_key = CodeStub::GetMajorKey(code);
232 ASSERT(major_key == CodeStub::MajorKeyFromKey(key)); 232 DCHECK(major_key == CodeStub::MajorKeyFromKey(key));
233 out.AddFormatted(" %s, %s, ", Code::Kind2String(kind), 233 out.AddFormatted(" %s, %s, ", Code::Kind2String(kind),
234 CodeStub::MajorName(major_key, false)); 234 CodeStub::MajorName(major_key, false));
235 switch (major_key) { 235 switch (major_key) {
236 case CodeStub::CallFunction: { 236 case CodeStub::CallFunction: {
237 int argc = CallFunctionStub::ExtractArgcFromMinorKey(minor_key); 237 int argc = CallFunctionStub::ExtractArgcFromMinorKey(minor_key);
238 out.AddFormatted("argc = %d", argc); 238 out.AddFormatted("argc = %d", argc);
239 break; 239 break;
240 } 240 }
241 default: 241 default:
242 out.AddFormatted("minor: %d", minor_key); 242 out.AddFormatted("minor: %d", minor_key);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) { 326 int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) {
327 return 0; 327 return 0;
328 } 328 }
329 329
330 330
331 void Disassembler::Decode(FILE* f, Code* code) {} 331 void Disassembler::Decode(FILE* f, Code* code) {}
332 332
333 #endif // ENABLE_DISASSEMBLER 333 #endif // ENABLE_DISASSEMBLER
334 334
335 } } // namespace v8::internal 335 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/diy-fp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698