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

Side by Side Diff: src/debug/ia32/debug-ia32.cc

Issue 2052763003: [ic] [stubs] Remove InlineCacheState field from the code flags. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 6 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/debug/arm64/debug-arm64.cc ('k') | src/debug/mips/debug-mips.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_IA32 5 #if V8_TARGET_ARCH_IA32
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/ia32/frames-ia32.h" 9 #include "src/ia32/frames-ia32.h"
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 32
33 void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) { 33 void DebugCodegen::ClearDebugBreakSlot(Isolate* isolate, Address pc) {
34 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength); 34 CodePatcher patcher(isolate, pc, Assembler::kDebugBreakSlotLength);
35 EmitDebugBreakSlot(patcher.masm()); 35 EmitDebugBreakSlot(patcher.masm());
36 } 36 }
37 37
38 38
39 void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc, 39 void DebugCodegen::PatchDebugBreakSlot(Isolate* isolate, Address pc,
40 Handle<Code> code) { 40 Handle<Code> code) {
41 DCHECK_EQ(Code::BUILTIN, code->kind()); 41 DCHECK(code->is_debug_stub());
42 static const int kSize = Assembler::kDebugBreakSlotLength; 42 static const int kSize = Assembler::kDebugBreakSlotLength;
43 CodePatcher patcher(isolate, pc, kSize); 43 CodePatcher patcher(isolate, pc, kSize);
44 44
45 // Add a label for checking the size of the code used for returning. 45 // Add a label for checking the size of the code used for returning.
46 Label check_codesize; 46 Label check_codesize;
47 patcher.masm()->bind(&check_codesize); 47 patcher.masm()->bind(&check_codesize);
48 patcher.masm()->call(code->entry(), RelocInfo::NONE32); 48 patcher.masm()->call(code->entry(), RelocInfo::NONE32);
49 // Check that the size of the code generated is as expected. 49 // Check that the size of the code generated is as expected.
50 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); 50 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize));
51 } 51 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 147
148 const bool LiveEdit::kFrameDropperSupported = true; 148 const bool LiveEdit::kFrameDropperSupported = true;
149 149
150 #undef __ 150 #undef __
151 151
152 } // namespace internal 152 } // namespace internal
153 } // namespace v8 153 } // namespace v8
154 154
155 #endif // V8_TARGET_ARCH_IA32 155 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/debug/arm64/debug-arm64.cc ('k') | src/debug/mips/debug-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698