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

Unified Diff: runtime/vm/stub_code_arm64.cc

Issue 426083004: Remove flag enable_debugger as current debugging code has a very minor influence on unoptimzied cod… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_arm64.cc
===================================================================
--- runtime/vm/stub_code_arm64.cc (revision 38736)
+++ runtime/vm/stub_code_arm64.cc (working copy)
@@ -26,8 +26,6 @@
"Set to true for debugging & verifying the slow paths.");
DECLARE_FLAG(bool, trace_optimized_ic_calls);
-DECLARE_FLAG(bool, enable_debugger);
-
// Input parameters:
// LR : return address.
// SP : address of last argument in argument array.
@@ -1347,15 +1345,13 @@
#endif // DEBUG
Label stepping, done_stepping;
- if (FLAG_enable_debugger) {
- // Check single stepping.
- __ LoadFieldFromOffset(R6, CTX, Context::isolate_offset(), kNoPP);
- __ LoadFromOffset(
- R6, R6, Isolate::single_step_offset(), kNoPP, kUnsignedByte);
- __ CompareRegisters(R6, ZR);
- __ b(&stepping, NE);
- __ Bind(&done_stepping);
- }
+ // Check single stepping.
+ __ LoadFieldFromOffset(R6, CTX, Context::isolate_offset(), kNoPP);
+ __ LoadFromOffset(
+ R6, R6, Isolate::single_step_offset(), kNoPP, kUnsignedByte);
+ __ CompareRegisters(R6, ZR);
+ __ b(&stepping, NE);
+ __ Bind(&done_stepping);
// Load arguments descriptor into R4.
__ LoadFieldFromOffset(R4, R5, ICData::arguments_descriptor_offset(), kNoPP);
@@ -1471,15 +1467,13 @@
R2, R2, Instructions::HeaderSize() - kHeapObjectTag, kNoPP);
__ br(R2);
- if (FLAG_enable_debugger) {
- __ Bind(&stepping);
- __ EnterStubFrame();
- __ Push(R5); // Preserve IC data.
- __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
- __ Pop(R5);
- __ LeaveStubFrame();
- __ b(&done_stepping);
- }
+ __ Bind(&stepping);
+ __ EnterStubFrame();
+ __ Push(R5); // Preserve IC data.
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
+ __ Pop(R5);
+ __ LeaveStubFrame();
+ __ b(&done_stepping);
}
@@ -1561,21 +1555,19 @@
}
#endif // DEBUG
- if (FLAG_enable_debugger) {
- // Check single stepping.
- Label not_stepping;
- __ LoadFieldFromOffset(R6, CTX, Context::isolate_offset(), kNoPP);
- __ LoadFromOffset(
- R6, R6, Isolate::single_step_offset(), kNoPP, kUnsignedByte);
- __ CompareImmediate(R6, 0, kNoPP);
- __ b(&not_stepping, EQ);
- __ EnterStubFrame();
- __ Push(R5); // Preserve IC data.
- __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
- __ Pop(R5);
- __ LeaveStubFrame();
- __ Bind(&not_stepping);
- }
+ // Check single stepping.
+ Label not_stepping;
+ __ LoadFieldFromOffset(R6, CTX, Context::isolate_offset(), kNoPP);
+ __ LoadFromOffset(
+ R6, R6, Isolate::single_step_offset(), kNoPP, kUnsignedByte);
+ __ CompareImmediate(R6, 0, kNoPP);
+ __ b(&not_stepping, EQ);
+ __ EnterStubFrame();
+ __ Push(R5); // Preserve IC data.
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
+ __ Pop(R5);
+ __ LeaveStubFrame();
+ __ Bind(&not_stepping);
// R5: IC data object (preserved).
__ LoadFieldFromOffset(R6, R5, ICData::ic_data_offset(), kNoPP);
@@ -1682,19 +1674,18 @@
// Called only from unoptimized code. All relevant registers have been saved.
void StubCode::GenerateDebugStepCheckStub(
Assembler* assembler) {
- if (FLAG_enable_debugger) {
- // Check single stepping.
- Label not_stepping;
- __ LoadFieldFromOffset(R1, CTX, Context::isolate_offset(), kNoPP);
- __ LoadFromOffset(
- R1, R1, Isolate::single_step_offset(), kNoPP, kUnsignedByte);
- __ CompareImmediate(R1, 0, kNoPP);
- __ b(&not_stepping, EQ);
- __ EnterStubFrame();
- __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
- __ LeaveStubFrame();
- __ Bind(&not_stepping);
- }
+ // Check single stepping.
+ Label not_stepping;
+ __ LoadFieldFromOffset(R1, CTX, Context::isolate_offset(), kNoPP);
+ __ LoadFromOffset(
+ R1, R1, Isolate::single_step_offset(), kNoPP, kUnsignedByte);
+ __ CompareImmediate(R1, 0, kNoPP);
+ __ b(&not_stepping, EQ);
+ __ EnterStubFrame();
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
+ __ LeaveStubFrame();
+ __ Bind(&not_stepping);
+
__ ret();
}
@@ -1932,19 +1923,17 @@
// Return Zero condition flag set if equal.
void StubCode::GenerateUnoptimizedIdenticalWithNumberCheckStub(
Assembler* assembler) {
- if (FLAG_enable_debugger) {
// Check single stepping.
- Label not_stepping;
- __ LoadFieldFromOffset(R1, CTX, Context::isolate_offset(), kNoPP);
- __ LoadFromOffset(
- R1, R1, Isolate::single_step_offset(), kNoPP, kUnsignedByte);
- __ CompareImmediate(R1, 0, kNoPP);
- __ b(&not_stepping, EQ);
- __ EnterStubFrame();
- __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
- __ LeaveStubFrame();
- __ Bind(&not_stepping);
- }
+ Label not_stepping;
+ __ LoadFieldFromOffset(R1, CTX, Context::isolate_offset(), kNoPP);
+ __ LoadFromOffset(
+ R1, R1, Isolate::single_step_offset(), kNoPP, kUnsignedByte);
+ __ CompareImmediate(R1, 0, kNoPP);
+ __ b(&not_stepping, EQ);
+ __ EnterStubFrame();
+ __ CallRuntime(kSingleStepHandlerRuntimeEntry, 0);
+ __ LeaveStubFrame();
+ __ Bind(&not_stepping);
const Register left = R1;
const Register right = R0;
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698