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

Side by Side Diff: src/debug.cc

Issue 551093: Implementing inline caches for GenericBinaryOpStub. ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 ASSERT(position_ >= 0); 118 ASSERT(position_ >= 0);
119 ASSERT(statement_position_ >= 0); 119 ASSERT(statement_position_ >= 0);
120 } 120 }
121 121
122 // Check for breakable code target. Look in the original code as setting 122 // Check for breakable code target. Look in the original code as setting
123 // break points can cause the code targets in the running (debugged) code to 123 // break points can cause the code targets in the running (debugged) code to
124 // be of a different kind than in the original code. 124 // be of a different kind than in the original code.
125 if (RelocInfo::IsCodeTarget(rmode())) { 125 if (RelocInfo::IsCodeTarget(rmode())) {
126 Address target = original_rinfo()->target_address(); 126 Address target = original_rinfo()->target_address();
127 Code* code = Code::GetCodeFromTargetAddress(target); 127 Code* code = Code::GetCodeFromTargetAddress(target);
128 if (code->is_inline_cache_stub() || RelocInfo::IsConstructCall(rmode())) { 128 if ((code->is_inline_cache_stub()
129 && code->kind() != Code::BINARY_OP_IC) ||
Mads Ager (chromium) 2010/01/22 12:14:26 I would put the '&&' on the previous line. if ((c
vladislav.kaznacheev 2010/01/22 14:09:42 Done.
130 RelocInfo::IsConstructCall(rmode())) {
129 break_point_++; 131 break_point_++;
130 return; 132 return;
131 } 133 }
132 if (code->kind() == Code::STUB) { 134 if (code->kind() == Code::STUB) {
133 if (IsDebuggerStatement()) { 135 if (IsDebuggerStatement()) {
134 break_point_++; 136 break_point_++;
135 return; 137 return;
136 } 138 }
137 if (type_ == ALL_BREAK_LOCATIONS) { 139 if (type_ == ALL_BREAK_LOCATIONS) {
138 if (Debug::IsBreakStub(code)) { 140 if (Debug::IsBreakStub(code)) {
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1360 if (code->is_keyed_load_stub()) { 1362 if (code->is_keyed_load_stub()) {
1361 Handle<Code> result = 1363 Handle<Code> result =
1362 Handle<Code>(Builtins::builtin(Builtins::KeyedLoadIC_DebugBreak)); 1364 Handle<Code>(Builtins::builtin(Builtins::KeyedLoadIC_DebugBreak));
1363 return result; 1365 return result;
1364 } 1366 }
1365 if (code->is_keyed_store_stub()) { 1367 if (code->is_keyed_store_stub()) {
1366 Handle<Code> result = 1368 Handle<Code> result =
1367 Handle<Code>(Builtins::builtin(Builtins::KeyedStoreIC_DebugBreak)); 1369 Handle<Code>(Builtins::builtin(Builtins::KeyedStoreIC_DebugBreak));
1368 return result; 1370 return result;
1369 } 1371 }
1372 UNREACHABLE();
1370 } 1373 }
1371 if (RelocInfo::IsConstructCall(mode)) { 1374 if (RelocInfo::IsConstructCall(mode)) {
1372 Handle<Code> result = 1375 Handle<Code> result =
1373 Handle<Code>(Builtins::builtin(Builtins::ConstructCall_DebugBreak)); 1376 Handle<Code>(Builtins::builtin(Builtins::ConstructCall_DebugBreak));
1374 return result; 1377 return result;
1375 } 1378 }
1376 if (code->kind() == Code::STUB) { 1379 if (code->kind() == Code::STUB) {
1377 ASSERT(code->major_key() == CodeStub::CallFunction || 1380 ASSERT(code->major_key() == CodeStub::CallFunction ||
1378 code->major_key() == CodeStub::StackCheck); 1381 code->major_key() == CodeStub::StackCheck);
1379 Handle<Code> result = 1382 Handle<Code> result =
(...skipping 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 2742
2740 2743
2741 void LockingCommandMessageQueue::Clear() { 2744 void LockingCommandMessageQueue::Clear() {
2742 ScopedLock sl(lock_); 2745 ScopedLock sl(lock_);
2743 queue_.Clear(); 2746 queue_.Clear();
2744 } 2747 }
2745 2748
2746 #endif // ENABLE_DEBUGGER_SUPPORT 2749 #endif // ENABLE_DEBUGGER_SUPPORT
2747 2750
2748 } } // namespace v8::internal 2751 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/ia32/assembler-ia32.h » ('j') | src/ia32/codegen-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698