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

Side by Side Diff: runtime/vm/assembler_dbc.h

Issue 2463083002: Remove default monomorphic check code from functions and stubs that do not need it. (Closed)
Patch Set: address comment Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 #ifndef RUNTIME_VM_ASSEMBLER_DBC_H_ 5 #ifndef RUNTIME_VM_ASSEMBLER_DBC_H_
6 #define RUNTIME_VM_ASSEMBLER_DBC_H_ 6 #define RUNTIME_VM_ASSEMBLER_DBC_H_
7 7
8 #ifndef RUNTIME_VM_ASSEMBLER_H_ 8 #ifndef RUNTIME_VM_ASSEMBLER_H_
9 #error Do not include assembler_dbc.h directly; use assembler.h instead. 9 #error Do not include assembler_dbc.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 ~Assembler() { } 81 ~Assembler() { }
82 82
83 void Bind(Label* label); 83 void Bind(Label* label);
84 void Jump(Label* label); 84 void Jump(Label* label);
85 85
86 // Misc. functionality 86 // Misc. functionality
87 intptr_t CodeSize() const { return buffer_.Size(); } 87 intptr_t CodeSize() const { return buffer_.Size(); }
88 intptr_t prologue_offset() const { return 0; } 88 intptr_t prologue_offset() const { return 0; }
89 bool has_single_entry_point() const { return true; }
89 90
90 // Count the fixups that produce a pointer offset, without processing 91 // Count the fixups that produce a pointer offset, without processing
91 // the fixups. 92 // the fixups.
92 intptr_t CountPointerOffsets() const { return 0; } 93 intptr_t CountPointerOffsets() const { return 0; }
93 94
94 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { 95 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const {
95 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code. 96 ASSERT(buffer_.pointer_offsets().length() == 0); // No pointers in code.
96 return buffer_.pointer_offsets(); 97 return buffer_.pointer_offsets();
97 } 98 }
98 99
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 GrowableArray<CodeComment*> comments_; 191 GrowableArray<CodeComment*> comments_;
191 192
192 DISALLOW_ALLOCATION(); 193 DISALLOW_ALLOCATION();
193 DISALLOW_COPY_AND_ASSIGN(Assembler); 194 DISALLOW_COPY_AND_ASSIGN(Assembler);
194 }; 195 };
195 196
196 197
197 } // namespace dart 198 } // namespace dart
198 199
199 #endif // RUNTIME_VM_ASSEMBLER_DBC_H_ 200 #endif // RUNTIME_VM_ASSEMBLER_DBC_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_ia32.h » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698