| 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 virtual ~Library(); | 467 virtual ~Library(); |
| 468 | 468 |
| 469 DEFINE_CASTING_OPERATIONS(Library); | 469 DEFINE_CASTING_OPERATIONS(Library); |
| 470 | 470 |
| 471 virtual void AcceptTreeVisitor(TreeVisitor* visitor); | 471 virtual void AcceptTreeVisitor(TreeVisitor* visitor); |
| 472 virtual void VisitChildren(Visitor* visitor); | 472 virtual void VisitChildren(Visitor* visitor); |
| 473 | 473 |
| 474 StringIndex import_uri() { return import_uri_index_; } | 474 StringIndex import_uri() { return import_uri_index_; } |
| 475 intptr_t source_uri_index() { return source_uri_index_; } | 475 intptr_t source_uri_index() { return source_uri_index_; } |
| 476 StringIndex name() { return name_index_; } | 476 StringIndex name() { return name_index_; } |
| 477 List<Expression>& annotations() { return annotations_; } |
| 477 List<LibraryDependency>& dependencies() { return dependency_; } | 478 List<LibraryDependency>& dependencies() { return dependency_; } |
| 478 List<Typedef>& typedefs() { return typedefs_; } | 479 List<Typedef>& typedefs() { return typedefs_; } |
| 479 List<Class>& classes() { return classes_; } | 480 List<Class>& classes() { return classes_; } |
| 480 List<Field>& fields() { return fields_; } | 481 List<Field>& fields() { return fields_; } |
| 481 List<Procedure>& procedures() { return procedures_; } | 482 List<Procedure>& procedures() { return procedures_; } |
| 482 | 483 |
| 483 const uint8_t* kernel_data() { return kernel_data_; } | 484 const uint8_t* kernel_data() { return kernel_data_; } |
| 484 intptr_t kernel_data_size() { return kernel_data_size_; } | 485 intptr_t kernel_data_size() { return kernel_data_size_; } |
| 485 | 486 |
| 486 private: | 487 private: |
| 487 Library() : kernel_data_(NULL), kernel_data_size_(-1) {} | 488 Library() : kernel_data_(NULL), kernel_data_size_(-1) {} |
| 488 | 489 |
| 489 template <typename T> | 490 template <typename T> |
| 490 friend class List; | 491 friend class List; |
| 491 | 492 |
| 492 StringIndex name_index_; | 493 StringIndex name_index_; |
| 493 StringIndex import_uri_index_; | 494 StringIndex import_uri_index_; |
| 494 intptr_t source_uri_index_; | 495 intptr_t source_uri_index_; |
| 496 List<Expression> annotations_; |
| 495 List<LibraryDependency> dependency_; | 497 List<LibraryDependency> dependency_; |
| 496 List<Typedef> typedefs_; | 498 List<Typedef> typedefs_; |
| 497 List<Class> classes_; | 499 List<Class> classes_; |
| 498 List<Field> fields_; | 500 List<Field> fields_; |
| 499 List<Procedure> procedures_; | 501 List<Procedure> procedures_; |
| 500 const uint8_t* kernel_data_; | 502 const uint8_t* kernel_data_; |
| 501 intptr_t kernel_data_size_; | 503 intptr_t kernel_data_size_; |
| 502 | 504 |
| 503 DISALLOW_COPY_AND_ASSIGN(Library); | 505 DISALLOW_COPY_AND_ASSIGN(Library); |
| 504 }; | 506 }; |
| (...skipping 2935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3440 } // namespace kernel | 3442 } // namespace kernel |
| 3441 | 3443 |
| 3442 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, | 3444 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, |
| 3443 intptr_t buffer_length); | 3445 intptr_t buffer_length); |
| 3444 | 3446 |
| 3445 | 3447 |
| 3446 } // namespace dart | 3448 } // namespace dart |
| 3447 | 3449 |
| 3448 #endif // !defined(DART_PRECOMPILED_RUNTIME) | 3450 #endif // !defined(DART_PRECOMPILED_RUNTIME) |
| 3449 #endif // RUNTIME_VM_KERNEL_H_ | 3451 #endif // RUNTIME_VM_KERNEL_H_ |
| OLD | NEW |