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

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

Issue 1950613002: Adds more DBC assembler tests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/assembler_dbc_test.cc ('k') | no next file » | 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 VM_CONSTANTS_DBC_H_ 5 #ifndef VM_CONSTANTS_DBC_H_
6 #define VM_CONSTANTS_DBC_H_ 6 #define 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // 295 //
296 // - DebugStep, DebugBreak A 296 // - DebugStep, DebugBreak A
297 // 297 //
298 // Debugger support. DebugBreak is bytecode that can be patched into the 298 // Debugger support. DebugBreak is bytecode that can be patched into the
299 // instruction stream to trigger in place breakpoint. 299 // instruction stream to trigger in place breakpoint.
300 // 300 //
301 // When patching instance or static call with DebugBreak we set A to 301 // When patching instance or static call with DebugBreak we set A to
302 // match patched call's argument count so that Return instructions continue 302 // match patched call's argument count so that Return instructions continue
303 // to work. 303 // to work.
304 // 304 //
305 // - LoadClassIdTOS, LoadClassId rA, D
306 //
307 // LoadClassIdTOS loads the class id from the object at SP[0] and stores it
308 // to SP[0]. LoadClassId loads the class id from FP[rA] and stores it to
309 // FP[D].
310 //
305 // TODO(vegorov) the way we replace calls with DebugBreak does not work 311 // TODO(vegorov) the way we replace calls with DebugBreak does not work
306 // with our smi fast paths because DebugBreak is simply skipped. 312 // with our smi fast paths because DebugBreak is simply skipped.
307 // 313 //
308 // BYTECODE LIST FORMAT 314 // BYTECODE LIST FORMAT
309 // 315 //
310 // Bytecode list below is specified using the following format: 316 // Bytecode list below is specified using the following format:
311 // 317 //
312 // V(BytecodeName, OperandForm, Op1, Op2, Op3) 318 // V(BytecodeName, OperandForm, Op1, Op2, Op3)
313 // 319 //
314 // - OperandForm specifies operand encoding and should be one of 0, A, T, A_D, 320 // - OperandForm specifies operand encoding and should be one of 0, A, T, A_D,
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 kNumberOfDummyFpuRegisters, 493 kNumberOfDummyFpuRegisters,
488 }; 494 };
489 const FpuRegister FpuTMP = kFakeFpuRegister; 495 const FpuRegister FpuTMP = kFakeFpuRegister;
490 const intptr_t kNumberOfFpuRegisters = 1; 496 const intptr_t kNumberOfFpuRegisters = 1;
491 497
492 enum Condition { EQ, NE }; 498 enum Condition { EQ, NE };
493 499
494 } // namespace dart 500 } // namespace dart
495 501
496 #endif // VM_CONSTANTS_DBC_H_ 502 #endif // VM_CONSTANTS_DBC_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_dbc_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698