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

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

Issue 2790093002: Hacky streaming of VariableGet (Closed)
Patch Set: Created 3 years, 8 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
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 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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 1050
1051 virtual void AcceptExpressionVisitor(ExpressionVisitor* visitor); 1051 virtual void AcceptExpressionVisitor(ExpressionVisitor* visitor);
1052 virtual void VisitChildren(Visitor* visitor); 1052 virtual void VisitChildren(Visitor* visitor);
1053 1053
1054 VariableDeclaration* variable() { return variable_; } 1054 VariableDeclaration* variable() { return variable_; }
1055 1055
1056 private: 1056 private:
1057 VariableGet() {} 1057 VariableGet() {}
1058 1058
1059 Ref<VariableDeclaration> variable_; 1059 Ref<VariableDeclaration> variable_;
1060 intptr_t variable_kernel_offset_;
1060 1061
1061 DISALLOW_COPY_AND_ASSIGN(VariableGet); 1062 DISALLOW_COPY_AND_ASSIGN(VariableGet);
1062 }; 1063 };
1063 1064
1064 1065
1065 class VariableSet : public Expression { 1066 class VariableSet : public Expression {
1066 public: 1067 public:
1067 static VariableSet* ReadFrom(Reader* reader); 1068 static VariableSet* ReadFrom(Reader* reader);
1068 static VariableSet* ReadFrom(Reader* reader, uint8_t payload); 1069 static VariableSet* ReadFrom(Reader* reader, uint8_t payload);
1069 1070
(...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 3152
3152 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, 3153 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer,
3153 intptr_t buffer_length); 3154 intptr_t buffer_length);
3154 3155
3155 3156
3156 3157
3157 } // namespace dart 3158 } // namespace dart
3158 3159
3159 #endif // !defined(DART_PRECOMPILED_RUNTIME) 3160 #endif // !defined(DART_PRECOMPILED_RUNTIME)
3160 #endif // RUNTIME_VM_KERNEL_H_ 3161 #endif // RUNTIME_VM_KERNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698