| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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_FLOW_GRAPH_COMPILER_H_ | 5 #ifndef VM_FLOW_GRAPH_COMPILER_H_ |
| 6 #define VM_FLOW_GRAPH_COMPILER_H_ | 6 #define VM_FLOW_GRAPH_COMPILER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
| 10 #include "vm/code_descriptors.h" | 10 #include "vm/code_descriptors.h" |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 static intptr_t DataOffsetFor(intptr_t cid); | 407 static intptr_t DataOffsetFor(intptr_t cid); |
| 408 static intptr_t ElementSizeFor(intptr_t cid); | 408 static intptr_t ElementSizeFor(intptr_t cid); |
| 409 static FieldAddress ElementAddressForIntIndex(intptr_t cid, | 409 static FieldAddress ElementAddressForIntIndex(intptr_t cid, |
| 410 intptr_t index_scale, | 410 intptr_t index_scale, |
| 411 Register array, | 411 Register array, |
| 412 intptr_t offset); | 412 intptr_t offset); |
| 413 static FieldAddress ElementAddressForRegIndex(intptr_t cid, | 413 static FieldAddress ElementAddressForRegIndex(intptr_t cid, |
| 414 intptr_t index_scale, | 414 intptr_t index_scale, |
| 415 Register array, | 415 Register array, |
| 416 Register index); | 416 Register index); |
| 417 static Address ExternalElementAddressForIntIndex(intptr_t cid, | 417 static Address ExternalElementAddressForIntIndex(intptr_t index_scale, |
| 418 intptr_t index_scale, | |
| 419 Register array, | 418 Register array, |
| 420 intptr_t offset); | 419 intptr_t offset); |
| 421 static Address ExternalElementAddressForRegIndex(intptr_t cid, | 420 static Address ExternalElementAddressForRegIndex(intptr_t index_scale, |
| 422 intptr_t index_scale, | |
| 423 Register array, | 421 Register array, |
| 424 Register index); | 422 Register index); |
| 425 | 423 |
| 426 private: | 424 private: |
| 427 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. | 425 friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_. |
| 428 | 426 |
| 429 void EmitFrameEntry(); | 427 void EmitFrameEntry(); |
| 430 | 428 |
| 431 void AddStaticCallTarget(const Function& function); | 429 void AddStaticCallTarget(const Function& function); |
| 432 | 430 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 // that should be used when deoptimizing we store it in this variable. | 547 // that should be used when deoptimizing we store it in this variable. |
| 550 // In future AddDeoptStub should be moved out of the instruction template. | 548 // In future AddDeoptStub should be moved out of the instruction template. |
| 551 Environment* pending_deoptimization_env_; | 549 Environment* pending_deoptimization_env_; |
| 552 | 550 |
| 553 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); | 551 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); |
| 554 }; | 552 }; |
| 555 | 553 |
| 556 } // namespace dart | 554 } // namespace dart |
| 557 | 555 |
| 558 #endif // VM_FLOW_GRAPH_COMPILER_H_ | 556 #endif // VM_FLOW_GRAPH_COMPILER_H_ |
| OLD | NEW |