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

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

Issue 2719083004: Fix build failures in precompiled runtime (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object_service.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 4667 matching lines...) Expand 10 before | Expand all | Expand 10 after
4678 4678
4679 RawCodeSourceMap* code_source_map() const { 4679 RawCodeSourceMap* code_source_map() const {
4680 return raw_ptr()->code_source_map_; 4680 return raw_ptr()->code_source_map_;
4681 } 4681 }
4682 4682
4683 void set_code_source_map(const CodeSourceMap& code_source_map) const { 4683 void set_code_source_map(const CodeSourceMap& code_source_map) const {
4684 ASSERT(code_source_map.IsOld()); 4684 ASSERT(code_source_map.IsOld());
4685 StorePointer(&raw_ptr()->code_source_map_, code_source_map.raw()); 4685 StorePointer(&raw_ptr()->code_source_map_, code_source_map.raw());
4686 } 4686 }
4687 4687
4688 RawArray* await_token_positions() const { 4688 RawArray* await_token_positions() const;
4689 #if defined(DART_PRECOMPILED_RUNTIME)
4690 return Array::null();
4691 #else
4692 return raw_ptr()->await_token_positions_;
4693 #endif
4694 }
4695
4696 void SetAwaitTokenPositions(const Array& await_token_positions) const; 4689 void SetAwaitTokenPositions(const Array& await_token_positions) const;
4697 4690
4698 // Used during reloading (see object_reload.cc). Calls Reset on all ICDatas 4691 // Used during reloading (see object_reload.cc). Calls Reset on all ICDatas
4699 // that are embedded inside the Code object. 4692 // that are embedded inside the Code object.
4700 void ResetICDatas(Zone* zone) const; 4693 void ResetICDatas(Zone* zone) const;
4701 4694
4702 // Array of DeoptInfo objects. 4695 // Array of DeoptInfo objects.
4703 RawArray* deopt_info_array() const { 4696 RawArray* deopt_info_array() const {
4704 #if defined(DART_PRECOMPILED_RUNTIME) 4697 #if defined(DART_PRECOMPILED_RUNTIME)
4705 UNREACHABLE(); 4698 UNREACHABLE();
(...skipping 4218 matching lines...) Expand 10 before | Expand all | Expand 10 after
8924 8917
8925 inline void TypeArguments::SetHash(intptr_t value) const { 8918 inline void TypeArguments::SetHash(intptr_t value) const {
8926 // This is only safe because we create a new Smi, which does not cause 8919 // This is only safe because we create a new Smi, which does not cause
8927 // heap allocation. 8920 // heap allocation.
8928 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8921 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8929 } 8922 }
8930 8923
8931 } // namespace dart 8924 } // namespace dart
8932 8925
8933 #endif // RUNTIME_VM_OBJECT_H_ 8926 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698