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

Side by Side Diff: src/builtins/ppc/builtins-ppc.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/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 Register debug_info = r5; 1067 Register debug_info = r5;
1068 DCHECK(!debug_info.is(r3)); 1068 DCHECK(!debug_info.is(r3));
1069 __ LoadP(debug_info, 1069 __ LoadP(debug_info,
1070 FieldMemOperand(r3, SharedFunctionInfo::kDebugInfoOffset)); 1070 FieldMemOperand(r3, SharedFunctionInfo::kDebugInfoOffset));
1071 // Load original bytecode array or the debug copy. 1071 // Load original bytecode array or the debug copy.
1072 __ LoadP(kInterpreterBytecodeArrayRegister, 1072 __ LoadP(kInterpreterBytecodeArrayRegister,
1073 FieldMemOperand(r3, SharedFunctionInfo::kFunctionDataOffset)); 1073 FieldMemOperand(r3, SharedFunctionInfo::kFunctionDataOffset));
1074 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0); 1074 __ CmpSmiLiteral(debug_info, DebugInfo::uninitialized(), r0);
1075 __ beq(&array_done); 1075 __ beq(&array_done);
1076 __ LoadP(kInterpreterBytecodeArrayRegister, 1076 __ LoadP(kInterpreterBytecodeArrayRegister,
1077 FieldMemOperand(debug_info, DebugInfo::kAbstractCodeIndex)); 1077 FieldMemOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex));
1078 __ bind(&array_done); 1078 __ bind(&array_done);
1079 1079
1080 // Check function data field is actually a BytecodeArray object. 1080 // Check function data field is actually a BytecodeArray object.
1081 Label bytecode_array_not_present; 1081 Label bytecode_array_not_present;
1082 __ CompareRoot(kInterpreterBytecodeArrayRegister, 1082 __ CompareRoot(kInterpreterBytecodeArrayRegister,
1083 Heap::kUndefinedValueRootIndex); 1083 Heap::kUndefinedValueRootIndex);
1084 __ beq(&bytecode_array_not_present); 1084 __ beq(&bytecode_array_not_present);
1085 1085
1086 if (FLAG_debug_code) { 1086 if (FLAG_debug_code) {
1087 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0); 1087 __ TestIfSmi(kInterpreterBytecodeArrayRegister, r0);
(...skipping 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after
2979 __ CallRuntime(Runtime::kThrowStackOverflow); 2979 __ CallRuntime(Runtime::kThrowStackOverflow);
2980 __ bkpt(0); 2980 __ bkpt(0);
2981 } 2981 }
2982 } 2982 }
2983 2983
2984 #undef __ 2984 #undef __
2985 } // namespace internal 2985 } // namespace internal
2986 } // namespace v8 2986 } // namespace v8
2987 2987
2988 #endif // V8_TARGET_ARCH_PPC 2988 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/builtins/mips64/builtins-mips64.cc ('k') | src/builtins/s390/builtins-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698