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

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

Issue 2718353002: Revert "Track the 'awaiter return' call stack..." (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/kernel_to_il.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 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after
4506 public: 4506 public:
4507 static const intptr_t kInvalidPcOffset = 0; 4507 static const intptr_t kInvalidPcOffset = 0;
4508 4508
4509 intptr_t num_entries() const; 4509 intptr_t num_entries() const;
4510 4510
4511 void GetHandlerInfo(intptr_t try_index, ExceptionHandlerInfo* info) const; 4511 void GetHandlerInfo(intptr_t try_index, ExceptionHandlerInfo* info) const;
4512 4512
4513 uword HandlerPCOffset(intptr_t try_index) const; 4513 uword HandlerPCOffset(intptr_t try_index) const;
4514 intptr_t OuterTryIndex(intptr_t try_index) const; 4514 intptr_t OuterTryIndex(intptr_t try_index) const;
4515 bool NeedsStackTrace(intptr_t try_index) const; 4515 bool NeedsStackTrace(intptr_t try_index) const;
4516 bool IsGenerated(intptr_t try_index) const;
4517 4516
4518 void SetHandlerInfo(intptr_t try_index, 4517 void SetHandlerInfo(intptr_t try_index,
4519 intptr_t outer_try_index, 4518 intptr_t outer_try_index,
4520 uword handler_pc_offset, 4519 uword handler_pc_offset,
4521 bool needs_stacktrace, 4520 bool needs_stacktrace,
4522 bool has_catch_all, 4521 bool has_catch_all) const;
4523 TokenPosition token_pos,
4524 bool is_generated) const;
4525 4522
4526 RawArray* GetHandledTypes(intptr_t try_index) const; 4523 RawArray* GetHandledTypes(intptr_t try_index) const;
4527 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const; 4524 void SetHandledTypes(intptr_t try_index, const Array& handled_types) const;
4528 bool HasCatchAll(intptr_t try_index) const; 4525 bool HasCatchAll(intptr_t try_index) const;
4529 4526
4530 static intptr_t InstanceSize() { 4527 static intptr_t InstanceSize() {
4531 ASSERT(sizeof(RawExceptionHandlers) == 4528 ASSERT(sizeof(RawExceptionHandlers) ==
4532 OFFSET_OF_RETURNED_VALUE(RawExceptionHandlers, data)); 4529 OFFSET_OF_RETURNED_VALUE(RawExceptionHandlers, data));
4533 return 0; 4530 return 0;
4534 } 4531 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
4678 4675
4679 RawCodeSourceMap* code_source_map() const { 4676 RawCodeSourceMap* code_source_map() const {
4680 return raw_ptr()->code_source_map_; 4677 return raw_ptr()->code_source_map_;
4681 } 4678 }
4682 4679
4683 void set_code_source_map(const CodeSourceMap& code_source_map) const { 4680 void set_code_source_map(const CodeSourceMap& code_source_map) const {
4684 ASSERT(code_source_map.IsOld()); 4681 ASSERT(code_source_map.IsOld());
4685 StorePointer(&raw_ptr()->code_source_map_, code_source_map.raw()); 4682 StorePointer(&raw_ptr()->code_source_map_, code_source_map.raw());
4686 } 4683 }
4687 4684
4688 RawArray* await_token_positions() const;
4689 void SetAwaitTokenPositions(const Array& await_token_positions) const;
4690
4691 // Used during reloading (see object_reload.cc). Calls Reset on all ICDatas 4685 // Used during reloading (see object_reload.cc). Calls Reset on all ICDatas
4692 // that are embedded inside the Code object. 4686 // that are embedded inside the Code object.
4693 void ResetICDatas(Zone* zone) const; 4687 void ResetICDatas(Zone* zone) const;
4694 4688
4695 // Array of DeoptInfo objects. 4689 // Array of DeoptInfo objects.
4696 RawArray* deopt_info_array() const { 4690 RawArray* deopt_info_array() const {
4697 #if defined(DART_PRECOMPILED_RUNTIME) 4691 #if defined(DART_PRECOMPILED_RUNTIME)
4698 UNREACHABLE(); 4692 UNREACHABLE();
4699 return NULL; 4693 return NULL;
4700 #else 4694 #else
(...skipping 4217 matching lines...) Expand 10 before | Expand all | Expand 10 after
8918 8912
8919 inline void TypeArguments::SetHash(intptr_t value) const { 8913 inline void TypeArguments::SetHash(intptr_t value) const {
8920 // This is only safe because we create a new Smi, which does not cause 8914 // This is only safe because we create a new Smi, which does not cause
8921 // heap allocation. 8915 // heap allocation.
8922 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8916 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8923 } 8917 }
8924 8918
8925 } // namespace dart 8919 } // namespace dart
8926 8920
8927 #endif // RUNTIME_VM_OBJECT_H_ 8921 #endif // RUNTIME_VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/kernel_to_il.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698