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

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

Issue 2739663002: Revert "Replacing TrySync with Metadata" (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 | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('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) 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 4690 matching lines...) Expand 10 before | Expand all | Expand 10 after
4701 RawArray* deopt_info_array() const { 4701 RawArray* deopt_info_array() const {
4702 #if defined(DART_PRECOMPILED_RUNTIME) 4702 #if defined(DART_PRECOMPILED_RUNTIME)
4703 UNREACHABLE(); 4703 UNREACHABLE();
4704 return NULL; 4704 return NULL;
4705 #else 4705 #else
4706 return raw_ptr()->deopt_info_array_; 4706 return raw_ptr()->deopt_info_array_;
4707 #endif 4707 #endif
4708 } 4708 }
4709 void set_deopt_info_array(const Array& array) const; 4709 void set_deopt_info_array(const Array& array) const;
4710 4710
4711 #if !defined(DART_PRECOMPILED_RUNTIME) && !defined(DART_PRECOMPILER)
4712 RawSmi* variables() const { return raw_ptr()->catch_entry_.variables_; }
4713 void set_variables(const Smi& smi) const;
4714 #else
4715 RawTypedData* catch_entry_state_maps() const {
4716 return raw_ptr()->catch_entry_.catch_entry_state_maps_;
4717 }
4718 void set_catch_entry_state_maps(const TypedData& maps) const;
4719 #endif
4720
4721 RawArray* stackmaps() const { return raw_ptr()->stackmaps_; } 4711 RawArray* stackmaps() const { return raw_ptr()->stackmaps_; }
4722 void set_stackmaps(const Array& maps) const; 4712 void set_stackmaps(const Array& maps) const;
4723 RawStackMap* GetStackMap(uint32_t pc_offset, 4713 RawStackMap* GetStackMap(uint32_t pc_offset,
4724 Array* stackmaps, 4714 Array* stackmaps,
4725 StackMap* map) const; 4715 StackMap* map) const;
4726 4716
4727 enum { 4717 enum {
4728 kSCallTableOffsetEntry = 0, 4718 kSCallTableOffsetEntry = 0,
4729 kSCallTableFunctionEntry = 1, 4719 kSCallTableFunctionEntry = 1,
4730 kSCallTableCodeEntry = 2, 4720 kSCallTableCodeEntry = 2,
(...skipping 4202 matching lines...) Expand 10 before | Expand all | Expand 10 after
8933 8923
8934 inline void TypeArguments::SetHash(intptr_t value) const { 8924 inline void TypeArguments::SetHash(intptr_t value) const {
8935 // This is only safe because we create a new Smi, which does not cause 8925 // This is only safe because we create a new Smi, which does not cause
8936 // heap allocation. 8926 // heap allocation.
8937 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8927 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8938 } 8928 }
8939 8929
8940 } // namespace dart 8930 } // namespace dart
8941 8931
8942 #endif // RUNTIME_VM_OBJECT_H_ 8932 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698