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

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

Issue 2939553005: Updated parser to produce error when trying to reinitialize final variables in class constructors. … (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_OBJECT_H_ 5 #ifndef RUNTIME_VM_OBJECT_H_
6 #define RUNTIME_VM_OBJECT_H_ 6 #define RUNTIME_VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 3345 matching lines...) Expand 10 before | Expand all | Expand 10 after
3356 // Add the given code object to the list of dependent ones. 3356 // Add the given code object to the list of dependent ones.
3357 void RegisterDependentCode(const Code& code) const; 3357 void RegisterDependentCode(const Code& code) const;
3358 3358
3359 // Deoptimize all dependent code objects. 3359 // Deoptimize all dependent code objects.
3360 void DeoptimizeDependentCode() const; 3360 void DeoptimizeDependentCode() const;
3361 3361
3362 // Used by background compiler to check consistency of field copy with its 3362 // Used by background compiler to check consistency of field copy with its
3363 // original. 3363 // original.
3364 bool IsConsistentWith(const Field& field) const; 3364 bool IsConsistentWith(const Field& field) const;
3365 3365
3366 bool IsFinalAndInitialized() const;
3367
3366 bool IsUninitialized() const; 3368 bool IsUninitialized() const;
3367 3369
3368 void EvaluateInitializer() const; 3370 void EvaluateInitializer() const;
3369 3371
3370 RawFunction* PrecompiledInitializer() const { 3372 RawFunction* PrecompiledInitializer() const {
3371 return raw_ptr()->initializer_.precompiled_; 3373 return raw_ptr()->initializer_.precompiled_;
3372 } 3374 }
3373 void SetPrecompiledInitializer(const Function& initializer) const; 3375 void SetPrecompiledInitializer(const Function& initializer) const;
3374 bool HasPrecompiledInitializer() const; 3376 bool HasPrecompiledInitializer() const;
3375 3377
(...skipping 5680 matching lines...) Expand 10 before | Expand all | Expand 10 after
9056 9058
9057 inline void TypeArguments::SetHash(intptr_t value) const { 9059 inline void TypeArguments::SetHash(intptr_t value) const {
9058 // This is only safe because we create a new Smi, which does not cause 9060 // This is only safe because we create a new Smi, which does not cause
9059 // heap allocation. 9061 // heap allocation.
9060 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 9062 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
9061 } 9063 }
9062 9064
9063 } // namespace dart 9065 } // namespace dart
9064 9066
9065 #endif // RUNTIME_VM_OBJECT_H_ 9067 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698