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

Side by Side Diff: src/builtins/s390/builtins-s390.cc

Issue 2238893002: [debugger] separate break point info from code instrumentation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 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
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #if V8_TARGET_ARCH_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 Register debug_info = r4; 1071 Register debug_info = r4;
1072 DCHECK(!debug_info.is(r2)); 1072 DCHECK(!debug_info.is(r2));
1073 __ LoadP(debug_info, 1073 __ LoadP(debug_info,
1074 FieldMemOperand(r2, SharedFunctionInfo::kDebugInfoOffset)); 1074 FieldMemOperand(r2, SharedFunctionInfo::kDebugInfoOffset));
1075 // Load original bytecode array or the debug copy. 1075 // Load original bytecode array or the debug copy.
1076 __ LoadP(kInterpreterBytecodeArrayRegister, 1076 __ LoadP(kInterpreterBytecodeArrayRegister,
1077 FieldMemOperand(r2, SharedFunctionInfo::kFunctionDataOffset)); 1077 FieldMemOperand(r2, SharedFunctionInfo::kFunctionDataOffset));
1078 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0); 1078 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0);
1079 __ beq(&array_done); 1079 __ beq(&array_done);
1080 __ LoadP(kInterpreterBytecodeArrayRegister, 1080 __ LoadP(kInterpreterBytecodeArrayRegister,
1081 FieldMemOperand(debug_info, DebugInfo::kAbstractCodeIndex)); 1081 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex));
1082 __ bind(&array_done); 1082 __ bind(&array_done);
1083 1083
1084 // Check function data field is actually a BytecodeArray object. 1084 // Check function data field is actually a BytecodeArray object.
1085 Label bytecode_array_not_present; 1085 Label bytecode_array_not_present;
1086 __ CompareRoot(kInterpreterBytecodeArrayRegister, 1086 __ CompareRoot(kInterpreterBytecodeArrayRegister,
1087 Heap::kUndefinedValueRootIndex); 1087 Heap::kUndefinedValueRootIndex);
1088 __ beq(&bytecode_array_not_present); 1088 __ beq(&bytecode_array_not_present);
1089 1089
1090 if (FLAG_debug_code) { 1090 if (FLAG_debug_code) {
1091 __ TestIfSmi(kInterpreterBytecodeArrayRegister); 1091 __ TestIfSmi(kInterpreterBytecodeArrayRegister);
(...skipping 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2995 __ bkpt(0); 2995 __ bkpt(0);
2996 } 2996 }
2997 } 2997 }
2998 2998
2999 #undef __ 2999 #undef __
3000 3000
3001 } // namespace internal 3001 } // namespace internal
3002 } // namespace v8 3002 } // namespace v8
3003 3003
3004 #endif // V8_TARGET_ARCH_S390 3004 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/builtins/ppc/builtins-ppc.cc ('k') | src/builtins/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698