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

Side by Side Diff: runtime/vm/code_generator.cc

Issue 471283002: Runtime support for evaluation of static field initializer expressions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/compiler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1544 // Update global type feedback recorded for a field recording the assignment 1544 // Update global type feedback recorded for a field recording the assignment
1545 // of the given value. 1545 // of the given value.
1546 // Arg0: Field object; 1546 // Arg0: Field object;
1547 // Arg1: Value that is being stored. 1547 // Arg1: Value that is being stored.
1548 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { 1548 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) {
1549 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); 1549 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
1550 const Object& value = Object::Handle(arguments.ArgAt(1)); 1550 const Object& value = Object::Handle(arguments.ArgAt(1));
1551 field.RecordStore(value); 1551 field.RecordStore(value);
1552 } 1552 }
1553 1553
1554
1555 DEFINE_RUNTIME_ENTRY(InitStaticField, 1) {
1556 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
1557 field.EvaluateInitializer();
1558 }
1559
1554 } // namespace dart 1560 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698