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

Unified Diff: runtime/vm/assembler_x64.h

Issue 2856543002: Use off-heap data for class check instructions (Closed)
Patch Set: Feedback from Slava: rejig inheritance of CallTargets Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/assembler_x64.h
diff --git a/runtime/vm/assembler_x64.h b/runtime/vm/assembler_x64.h
index 77f3bb9b19304ef6ae8f1a1dddcad7f0ac4f83ec..0c17551a8659516fe0c99ae2f9f18306fe7a904a 100644
--- a/runtime/vm/assembler_x64.h
+++ b/runtime/vm/assembler_x64.h
@@ -852,6 +852,11 @@ class Assembler : public ValueObject {
j(NOT_ZERO, label);
}
+ void BranchIfSmi(Register reg, Label* label) {
+ testq(reg, Immediate(kSmiTagMask));
+ j(ZERO, label);
+ }
+
void Align(int alignment, intptr_t offset);
void Bind(Label* label);
void Jump(Label* label) { jmp(label); }

Powered by Google App Engine
This is Rietveld 408576698