| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #include "vm/ast.h" | 5 #include "vm/ast.h" |
| 6 #include "vm/compiler.h" | 6 #include "vm/compiler.h" |
| 7 #include "vm/dart_entry.h" | 7 #include "vm/dart_entry.h" |
| 8 #include "vm/isolate.h" | 8 #include "vm/isolate.h" |
| 9 #include "vm/object_store.h" | 9 #include "vm/object_store.h" |
| 10 | 10 |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 return Token::Str(kind_); | 287 return Token::Str(kind_); |
| 288 } | 288 } |
| 289 | 289 |
| 290 | 290 |
| 291 const char* JumpNode::Name() const { | 291 const char* JumpNode::Name() const { |
| 292 return Token::Str(kind_); | 292 return Token::Str(kind_); |
| 293 } | 293 } |
| 294 | 294 |
| 295 | 295 |
| 296 AstNode* LoadLocalNode::MakeAssignmentNode(AstNode* rhs) { | 296 AstNode* LoadLocalNode::MakeAssignmentNode(AstNode* rhs) { |
| 297 if (local().is_final()) { | 297 if (local()->is_final()) { |
| 298 return NULL; | 298 return NULL; |
| 299 } | 299 } |
| 300 if (HasPseudo()) { | 300 if (HasPseudo()) { |
| 301 return NULL; | 301 return NULL; |
| 302 } | 302 } |
| 303 return new StoreLocalNode(token_pos(), local(), rhs); | 303 return new StoreLocalNode(token_pos(), local(), rhs); |
| 304 } | 304 } |
| 305 | 305 |
| 306 | 306 |
| 307 AstNode* LoadStaticFieldNode::MakeAssignmentNode(AstNode* rhs) { | 307 AstNode* LoadStaticFieldNode::MakeAssignmentNode(AstNode* rhs) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 if (result.IsError() || result.IsNull()) { | 371 if (result.IsError() || result.IsNull()) { |
| 372 // TODO(turnidge): We could get better error messages by returning | 372 // TODO(turnidge): We could get better error messages by returning |
| 373 // the Error object directly to the parser. This will involve | 373 // the Error object directly to the parser. This will involve |
| 374 // replumbing all of the EvalConstExpr methods. | 374 // replumbing all of the EvalConstExpr methods. |
| 375 return NULL; | 375 return NULL; |
| 376 } | 376 } |
| 377 return &Instance::ZoneHandle(Instance::Cast(result).raw()); | 377 return &Instance::ZoneHandle(Instance::Cast(result).raw()); |
| 378 } | 378 } |
| 379 | 379 |
| 380 } // namespace dart | 380 } // namespace dart |
| OLD | NEW |