| 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 RUNTIME_VM_KERNEL_H_ | 5 #ifndef RUNTIME_VM_KERNEL_H_ |
| 6 #define RUNTIME_VM_KERNEL_H_ | 6 #define RUNTIME_VM_KERNEL_H_ |
| 7 | 7 |
| 8 #if !defined(DART_PRECOMPILED_RUNTIME) | 8 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 | 427 |
| 428 | 428 |
| 429 class TreeNode : public Node { | 429 class TreeNode : public Node { |
| 430 public: | 430 public: |
| 431 virtual ~TreeNode(); | 431 virtual ~TreeNode(); |
| 432 | 432 |
| 433 DEFINE_CASTING_OPERATIONS(TreeNode); | 433 DEFINE_CASTING_OPERATIONS(TreeNode); |
| 434 | 434 |
| 435 virtual void AcceptVisitor(Visitor* visitor); | 435 virtual void AcceptVisitor(Visitor* visitor); |
| 436 virtual void AcceptTreeVisitor(TreeVisitor* visitor) = 0; | 436 virtual void AcceptTreeVisitor(TreeVisitor* visitor) = 0; |
| 437 intptr_t kernel_offset() { return kernel_offset_; } | 437 intptr_t kernel_offset() const { return kernel_offset_; } |
| 438 | 438 |
| 439 protected: | 439 protected: |
| 440 TreeNode() : kernel_offset_(-1) {} | 440 TreeNode() : kernel_offset_(-1) {} |
| 441 | 441 |
| 442 // Offset for this node in the kernel-binary. If this node has a tag the | 442 // Offset for this node in the kernel-binary. If this node has a tag the |
| 443 // offset includes the tag. Can be -1 to indicate "unknown" or invalid offset. | 443 // offset includes the tag. Can be -1 to indicate "unknown" or invalid offset. |
| 444 intptr_t kernel_offset_; | 444 intptr_t kernel_offset_; |
| 445 | 445 |
| 446 private: | 446 private: |
| 447 DISALLOW_COPY_AND_ASSIGN(TreeNode); | 447 DISALLOW_COPY_AND_ASSIGN(TreeNode); |
| (...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1341 | 1341 |
| 1342 DISALLOW_COPY_AND_ASSIGN(DirectMethodInvocation); | 1342 DISALLOW_COPY_AND_ASSIGN(DirectMethodInvocation); |
| 1343 }; | 1343 }; |
| 1344 | 1344 |
| 1345 | 1345 |
| 1346 class StaticInvocation : public Expression { | 1346 class StaticInvocation : public Expression { |
| 1347 public: | 1347 public: |
| 1348 static StaticInvocation* ReadFrom(Reader* reader, bool is_const); | 1348 static StaticInvocation* ReadFrom(Reader* reader, bool is_const); |
| 1349 ~StaticInvocation(); | 1349 ~StaticInvocation(); |
| 1350 | 1350 |
| 1351 DEFINE_CASTING_OPERATIONS(StaticInvocation); |
| 1352 |
| 1351 virtual void AcceptExpressionVisitor(ExpressionVisitor* visitor); | 1353 virtual void AcceptExpressionVisitor(ExpressionVisitor* visitor); |
| 1352 virtual void VisitChildren(Visitor* visitor); | 1354 virtual void VisitChildren(Visitor* visitor); |
| 1353 | 1355 |
| 1354 Procedure* procedure() { return procedure_reference_->AsProcedure(); } | 1356 Procedure* procedure() { return procedure_reference_->AsProcedure(); } |
| 1355 Arguments* arguments() { return arguments_; } | 1357 Arguments* arguments() { return arguments_; } |
| 1356 bool is_const() { return is_const_; } | 1358 bool is_const() { return is_const_; } |
| 1357 | 1359 |
| 1358 private: | 1360 private: |
| 1359 StaticInvocation() {} | 1361 StaticInvocation() {} |
| 1360 | 1362 |
| (...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3192 | 3194 |
| 3193 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, | 3195 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, |
| 3194 intptr_t buffer_length); | 3196 intptr_t buffer_length); |
| 3195 | 3197 |
| 3196 | 3198 |
| 3197 | 3199 |
| 3198 } // namespace dart | 3200 } // namespace dart |
| 3199 | 3201 |
| 3200 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 3202 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 3201 #endif // RUNTIME_VM_KERNEL_H_ | 3203 #endif // RUNTIME_VM_KERNEL_H_ |
| OLD | NEW |