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

Side by Side Diff: src/debug.cc

Issue 3169049: Remove dependence of code-stubs on codegen, the virtual frame code generator.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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/debug.h ('k') | src/disassembler.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 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1436 // object. 1436 // object.
1437 bool Debug::IsDebugBreak(Address addr) { 1437 bool Debug::IsDebugBreak(Address addr) {
1438 Code* code = Code::GetCodeFromTargetAddress(addr); 1438 Code* code = Code::GetCodeFromTargetAddress(addr);
1439 return code->ic_state() == DEBUG_BREAK; 1439 return code->ic_state() == DEBUG_BREAK;
1440 } 1440 }
1441 1441
1442 1442
1443 // Check whether a code stub with the specified major key is a possible break 1443 // Check whether a code stub with the specified major key is a possible break
1444 // point location when looking for source break locations. 1444 // point location when looking for source break locations.
1445 bool Debug::IsSourceBreakStub(Code* code) { 1445 bool Debug::IsSourceBreakStub(Code* code) {
1446 CodeStub::Major major_key = code->major_key(); 1446 CodeStub::Major major_key = CodeStub::GetMajorKey(code);
1447 return major_key == CodeStub::CallFunction; 1447 return major_key == CodeStub::CallFunction;
1448 } 1448 }
1449 1449
1450 1450
1451 // Check whether a code stub with the specified major key is a possible break 1451 // Check whether a code stub with the specified major key is a possible break
1452 // location. 1452 // location.
1453 bool Debug::IsBreakStub(Code* code) { 1453 bool Debug::IsBreakStub(Code* code) {
1454 CodeStub::Major major_key = code->major_key(); 1454 CodeStub::Major major_key = CodeStub::GetMajorKey(code);
1455 return major_key == CodeStub::CallFunction || 1455 return major_key == CodeStub::CallFunction ||
1456 major_key == CodeStub::StackCheck; 1456 major_key == CodeStub::StackCheck;
1457 } 1457 }
1458 1458
1459 1459
1460 // Find the builtin to use for invoking the debug break 1460 // Find the builtin to use for invoking the debug break
1461 Handle<Code> Debug::FindDebugBreak(Handle<Code> code, RelocInfo::Mode mode) { 1461 Handle<Code> Debug::FindDebugBreak(Handle<Code> code, RelocInfo::Mode mode) {
1462 // Find the builtin debug break function matching the calling convention 1462 // Find the builtin debug break function matching the calling convention
1463 // used by the call site. 1463 // used by the call site.
1464 if (code->is_inline_cache_stub()) { 1464 if (code->is_inline_cache_stub()) {
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 { 3046 {
3047 Locker locker; 3047 Locker locker;
3048 Debugger::CallMessageDispatchHandler(); 3048 Debugger::CallMessageDispatchHandler();
3049 } 3049 }
3050 } 3050 }
3051 } 3051 }
3052 3052
3053 #endif // ENABLE_DEBUGGER_SUPPORT 3053 #endif // ENABLE_DEBUGGER_SUPPORT
3054 3054
3055 } } // namespace v8::internal 3055 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.h ('k') | src/disassembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698