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

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

Issue 2937933002: Reduce copying, redundancy & repetition for codegen of comparison instructions (Closed)
Patch Set: Feedback from Slava Created 3 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 | « runtime/vm/constants_arm64.h ('k') | runtime/vm/constants_ia32.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) 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_CONSTANTS_DBC_H_ 5 #ifndef RUNTIME_VM_CONSTANTS_DBC_H_
6 #define RUNTIME_VM_CONSTANTS_DBC_H_ 6 #define RUNTIME_VM_CONSTANTS_DBC_H_
7 7
8 #include "platform/globals.h" 8 #include "platform/globals.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 kFakeFpuRegister, 989 kFakeFpuRegister,
990 kNumberOfDummyFpuRegisters, 990 kNumberOfDummyFpuRegisters,
991 }; 991 };
992 const FpuRegister FpuTMP = kFakeFpuRegister; 992 const FpuRegister FpuTMP = kFakeFpuRegister;
993 const intptr_t kNumberOfFpuRegisters = 1; 993 const intptr_t kNumberOfFpuRegisters = 1;
994 994
995 // After a comparison, the condition NEXT_IS_TRUE means the following 995 // After a comparison, the condition NEXT_IS_TRUE means the following
996 // instruction is executed if the comparison is true and skipped over overwise. 996 // instruction is executed if the comparison is true and skipped over overwise.
997 // Condition NEXT_IS_FALSE means the following instruction is executed if the 997 // Condition NEXT_IS_FALSE means the following instruction is executed if the
998 // comparison is false and skipped over otherwise. 998 // comparison is false and skipped over otherwise.
999 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE }; 999 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE, INVALID_CONDITION };
1000 1000
1001 } // namespace dart 1001 } // namespace dart
1002 1002
1003 #endif // RUNTIME_VM_CONSTANTS_DBC_H_ 1003 #endif // RUNTIME_VM_CONSTANTS_DBC_H_
OLDNEW
« no previous file with comments | « runtime/vm/constants_arm64.h ('k') | runtime/vm/constants_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698