| OLD | NEW |
| 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // If D == 0 then trigger lazy deoptimization. | 352 // If D == 0 then trigger lazy deoptimization. |
| 353 // | 353 // |
| 354 // The meaning of operand ArgC (encoded as A operand) matches that of an | 354 // The meaning of operand ArgC (encoded as A operand) matches that of an |
| 355 // ArgC operand in call instructions. This is needed because we could | 355 // ArgC operand in call instructions. This is needed because we could |
| 356 // potentially patch calls instructions with a lazy deopt and we need to | 356 // potentially patch calls instructions with a lazy deopt and we need to |
| 357 // ensure that any Return/ReturnTOS instructions | 357 // ensure that any Return/ReturnTOS instructions |
| 358 // returning from the patched calls will continue to function, | 358 // returning from the patched calls will continue to function, |
| 359 // e.g. in bytecode sequences like | 359 // e.g. in bytecode sequences like |
| 360 // | 360 // |
| 361 // InstanceCall ... <- lazy deopt inside first call | 361 // InstanceCall ... <- lazy deopt inside first call |
| 362 // InstanceCall ... <- patches seconds call with Deopt | 362 // InstanceCall ... <- patches second call with Deopt |
| 363 // | 363 // |
| 364 // BYTECODE LIST FORMAT | 364 // BYTECODE LIST FORMAT |
| 365 // | 365 // |
| 366 // Bytecode list below is specified using the following format: | 366 // Bytecode list below is specified using the following format: |
| 367 // | 367 // |
| 368 // V(BytecodeName, OperandForm, Op1, Op2, Op3) | 368 // V(BytecodeName, OperandForm, Op1, Op2, Op3) |
| 369 // | 369 // |
| 370 // - OperandForm specifies operand encoding and should be one of 0, A, T, A_D, | 370 // - OperandForm specifies operand encoding and should be one of 0, A, T, A_D, |
| 371 // A_X, X, D (see ENCODING section above). | 371 // A_X, X, D (see ENCODING section above). |
| 372 // | 372 // |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 kNumberOfDummyFpuRegisters, | 568 kNumberOfDummyFpuRegisters, |
| 569 }; | 569 }; |
| 570 const FpuRegister FpuTMP = kFakeFpuRegister; | 570 const FpuRegister FpuTMP = kFakeFpuRegister; |
| 571 const intptr_t kNumberOfFpuRegisters = 1; | 571 const intptr_t kNumberOfFpuRegisters = 1; |
| 572 | 572 |
| 573 enum Condition { EQ, NE }; | 573 enum Condition { EQ, NE }; |
| 574 | 574 |
| 575 } // namespace dart | 575 } // namespace dart |
| 576 | 576 |
| 577 #endif // VM_CONSTANTS_DBC_H_ | 577 #endif // VM_CONSTANTS_DBC_H_ |
| OLD | NEW |