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

Side by Side Diff: src/assembler.h

Issue 1463803002: [debugger] flood function for stepping before calling it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years 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/arm64/macro-assembler-arm64.cc ('k') | src/assembler.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 static ExternalReference invoke_accessor_getter_callback(Isolate* isolate); 997 static ExternalReference invoke_accessor_getter_callback(Isolate* isolate);
998 998
999 static ExternalReference virtual_handler_register(Isolate* isolate); 999 static ExternalReference virtual_handler_register(Isolate* isolate);
1000 static ExternalReference virtual_slot_register(Isolate* isolate); 1000 static ExternalReference virtual_slot_register(Isolate* isolate);
1001 1001
1002 static ExternalReference runtime_function_table_address(Isolate* isolate); 1002 static ExternalReference runtime_function_table_address(Isolate* isolate);
1003 1003
1004 Address address() const { return reinterpret_cast<Address>(address_); } 1004 Address address() const { return reinterpret_cast<Address>(address_); }
1005 1005
1006 // Used to check if single stepping is enabled in generated code. 1006 // Used to check if single stepping is enabled in generated code.
1007 static ExternalReference debug_step_in_fp_address(Isolate* isolate); 1007 static ExternalReference debug_last_step_action_address(Isolate* isolate);
1008 1008
1009 #ifndef V8_INTERPRETED_REGEXP 1009 #ifndef V8_INTERPRETED_REGEXP
1010 // C functions called from RegExp generated code. 1010 // C functions called from RegExp generated code.
1011 1011
1012 // Function NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16() 1012 // Function NativeRegExpMacroAssembler::CaseInsensitiveCompareUC16()
1013 static ExternalReference re_case_insensitive_compare_uc16(Isolate* isolate); 1013 static ExternalReference re_case_insensitive_compare_uc16(Isolate* isolate);
1014 1014
1015 // Function RegExpMacroAssembler*::CheckStackGuardState() 1015 // Function RegExpMacroAssembler*::CheckStackGuardState()
1016 static ExternalReference re_check_stack_guard_state(Isolate* isolate); 1016 static ExternalReference re_check_stack_guard_state(Isolate* isolate);
1017 1017
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 // generate safepoint data after calls for crankshaft. 1147 // generate safepoint data after calls for crankshaft.
1148 class CallWrapper { 1148 class CallWrapper {
1149 public: 1149 public:
1150 CallWrapper() { } 1150 CallWrapper() { }
1151 virtual ~CallWrapper() { } 1151 virtual ~CallWrapper() { }
1152 // Called just before emitting a call. Argument is the size of the generated 1152 // Called just before emitting a call. Argument is the size of the generated
1153 // call code. 1153 // call code.
1154 virtual void BeforeCall(int call_size) const = 0; 1154 virtual void BeforeCall(int call_size) const = 0;
1155 // Called just after emitting a call, i.e., at the return site for the call. 1155 // Called just after emitting a call, i.e., at the return site for the call.
1156 virtual void AfterCall() const = 0; 1156 virtual void AfterCall() const = 0;
1157 // Return whether call needs to check for debug stepping.
1158 virtual bool NeedsDebugStepCheck() const { return false; }
1157 }; 1159 };
1158 1160
1161
1159 class NullCallWrapper : public CallWrapper { 1162 class NullCallWrapper : public CallWrapper {
1160 public: 1163 public:
1161 NullCallWrapper() { } 1164 NullCallWrapper() { }
1162 virtual ~NullCallWrapper() { } 1165 virtual ~NullCallWrapper() { }
1163 virtual void BeforeCall(int call_size) const { } 1166 virtual void BeforeCall(int call_size) const { }
1164 virtual void AfterCall() const { } 1167 virtual void AfterCall() const { }
1165 }; 1168 };
1166 1169
1167 1170
1171 class CheckDebugStepCallWrapper : public CallWrapper {
1172 public:
1173 CheckDebugStepCallWrapper() {}
1174 virtual ~CheckDebugStepCallWrapper() {}
1175 virtual void BeforeCall(int call_size) const {}
1176 virtual void AfterCall() const {}
1177 virtual bool NeedsDebugStepCheck() const { return true; }
1178 };
1179
1180
1168 // ----------------------------------------------------------------------------- 1181 // -----------------------------------------------------------------------------
1169 // Constant pool support 1182 // Constant pool support
1170 1183
1171 class ConstantPoolEntry { 1184 class ConstantPoolEntry {
1172 public: 1185 public:
1173 ConstantPoolEntry() {} 1186 ConstantPoolEntry() {}
1174 ConstantPoolEntry(int position, intptr_t value, bool sharing_ok) 1187 ConstantPoolEntry(int position, intptr_t value, bool sharing_ok)
1175 : position_(position), 1188 : position_(position),
1176 merged_index_(sharing_ok ? SHARING_ALLOWED : SHARING_PROHIBITED), 1189 merged_index_(sharing_ok ? SHARING_ALLOWED : SHARING_PROHIBITED),
1177 value_(value) {} 1190 value_(value) {}
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 std::vector<ConstantPoolEntry> shared_entries; 1293 std::vector<ConstantPoolEntry> shared_entries;
1281 }; 1294 };
1282 1295
1283 Label emitted_label_; // Records pc_offset of emitted pool 1296 Label emitted_label_; // Records pc_offset of emitted pool
1284 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1297 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1285 }; 1298 };
1286 1299
1287 } // namespace internal 1300 } // namespace internal
1288 } // namespace v8 1301 } // namespace v8
1289 #endif // V8_ASSEMBLER_H_ 1302 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698