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

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

Issue 2750013002: [kernel] Debugging of switch statement (Closed)
Patch Set: Take #2: Update switch case to include list of positions Created 3 years, 9 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 988 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 public: 999 public:
1000 static Expression* ReadFrom(Reader* reader); 1000 static Expression* ReadFrom(Reader* reader);
1001 1001
1002 virtual ~Expression(); 1002 virtual ~Expression();
1003 1003
1004 DEFINE_CASTING_OPERATIONS(Expression); 1004 DEFINE_CASTING_OPERATIONS(Expression);
1005 1005
1006 virtual void AcceptTreeVisitor(TreeVisitor* visitor); 1006 virtual void AcceptTreeVisitor(TreeVisitor* visitor);
1007 virtual void AcceptExpressionVisitor(ExpressionVisitor* visitor) = 0; 1007 virtual void AcceptExpressionVisitor(ExpressionVisitor* visitor) = 0;
1008 TokenPosition position() { return position_; } 1008 TokenPosition position() { return position_; }
1009 void set_position(TokenPosition position) { position_ = position; }
1009 1010
1010 protected: 1011 protected:
1011 Expression() : position_(TokenPosition::kNoSource) {} 1012 Expression() : position_(TokenPosition::kNoSource) {}
1012 TokenPosition position_; 1013 TokenPosition position_;
1013 1014
1014 private: 1015 private:
1015 DISALLOW_COPY_AND_ASSIGN(Expression); 1016 DISALLOW_COPY_AND_ASSIGN(Expression);
1016 }; 1017 };
1017 1018
1018 1019
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after
3241 3242
3242 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer, 3243 kernel::Program* ReadPrecompiledKernelFromBuffer(const uint8_t* buffer,
3243 intptr_t buffer_length); 3244 intptr_t buffer_length);
3244 3245
3245 3246
3246 3247
3247 } // namespace dart 3248 } // namespace dart
3248 3249
3249 #endif // !defined(DART_PRECOMPILED_RUNTIME) 3250 #endif // !defined(DART_PRECOMPILED_RUNTIME)
3250 #endif // RUNTIME_VM_KERNEL_H_ 3251 #endif // RUNTIME_VM_KERNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698