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

Side by Side Diff: runtime/vm/assembler_x64.cc

Issue 140793010: Eliminate another debugger stub (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/code_generator.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/heap.h" 9 #include "vm/heap.h"
10 #include "vm/memory_region.h" 10 #include "vm/memory_region.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 if (StubCode::CallToRuntime_entry() != NULL) { 101 if (StubCode::CallToRuntime_entry() != NULL) {
102 FindExternalLabel(&StubCode::CallToRuntimeLabel(), kNotPatchable); 102 FindExternalLabel(&StubCode::CallToRuntimeLabel(), kNotPatchable);
103 } else { 103 } else {
104 object_pool_.Add(Object::null_object(), Heap::kOld); 104 object_pool_.Add(Object::null_object(), Heap::kOld);
105 patchable_pool_entries_.Add(kNotPatchable); 105 patchable_pool_entries_.Add(kNotPatchable);
106 } 106 }
107 107
108 // Create fixed object pool entries for debugger stubs. 108 // Create fixed object pool entries for debugger stubs.
109 if (StubCode::BreakpointStatic_entry() != NULL) {
110 intptr_t index =
111 FindExternalLabel(&StubCode::BreakpointStaticLabel(), kNotPatchable);
112 ASSERT(index == kBreakpointStaticCPIndex);
113 } else {
114 object_pool_.Add(Object::null_object(), Heap::kOld);
115 patchable_pool_entries_.Add(kNotPatchable);
116 }
117 if (StubCode::BreakpointDynamic_entry() != NULL) { 109 if (StubCode::BreakpointDynamic_entry() != NULL) {
118 intptr_t index = 110 intptr_t index =
119 FindExternalLabel(&StubCode::BreakpointDynamicLabel(), kNotPatchable); 111 FindExternalLabel(&StubCode::BreakpointDynamicLabel(), kNotPatchable);
120 ASSERT(index == kBreakpointDynamicCPIndex); 112 ASSERT(index == kBreakpointDynamicCPIndex);
121 } else { 113 } else {
122 object_pool_.Add(Object::null_object(), Heap::kOld); 114 object_pool_.Add(Object::null_object(), Heap::kOld);
123 patchable_pool_entries_.Add(kNotPatchable); 115 patchable_pool_entries_.Add(kNotPatchable);
124 } 116 }
125 if (StubCode::BreakpointRuntime_entry() != NULL) { 117 if (StubCode::BreakpointRuntime_entry() != NULL) {
126 intptr_t index = 118 intptr_t index =
(...skipping 2988 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 3107
3116 3108
3117 const char* Assembler::FpuRegisterName(FpuRegister reg) { 3109 const char* Assembler::FpuRegisterName(FpuRegister reg) {
3118 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters)); 3110 ASSERT((0 <= reg) && (reg < kNumberOfXmmRegisters));
3119 return xmm_reg_names[reg]; 3111 return xmm_reg_names[reg];
3120 } 3112 }
3121 3113
3122 } // namespace dart 3114 } // namespace dart
3123 3115
3124 #endif // defined TARGET_ARCH_X64 3116 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/assembler_x64.h ('k') | runtime/vm/code_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698