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

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

Issue 9385022: Add PC descriptor for ret instruction (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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
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 VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define 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 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
1898 friend class Class; 1898 friend class Class;
1899 }; 1899 };
1900 1900
1901 1901
1902 class PcDescriptors : public Object { 1902 class PcDescriptors : public Object {
1903 public: 1903 public:
1904 enum Kind { 1904 enum Kind {
1905 kDeopt = 0, // Deoptimization cotinuation point. 1905 kDeopt = 0, // Deoptimization cotinuation point.
1906 kPatchCode, // Buffer for patching code entry. 1906 kPatchCode, // Buffer for patching code entry.
1907 kIcCall, // IC call. 1907 kIcCall, // IC call.
1908 kReturn, // Return from function.
1908 kOther 1909 kOther
1909 }; 1910 };
1910 1911
1911 intptr_t Length() const; 1912 intptr_t Length() const;
1912 1913
1913 uword PC(intptr_t index) const; 1914 uword PC(intptr_t index) const;
1914 PcDescriptors::Kind DescriptorKind(intptr_t index) const; 1915 PcDescriptors::Kind DescriptorKind(intptr_t index) const;
1915 const char* KindAsStr(intptr_t index) const; 1916 const char* KindAsStr(intptr_t index) const;
1916 intptr_t NodeId(intptr_t index) const; 1917 intptr_t NodeId(intptr_t index) const;
1917 intptr_t TokenIndex(intptr_t index) const; 1918 intptr_t TokenIndex(intptr_t index) const;
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after
3643 } 3644 }
3644 3645
3645 3646
3646 void Context::SetAt(intptr_t index, const Instance& value) const { 3647 void Context::SetAt(intptr_t index, const Instance& value) const {
3647 StorePointer(InstanceAddr(index), value.raw()); 3648 StorePointer(InstanceAddr(index), value.raw());
3648 } 3649 }
3649 3650
3650 } // namespace dart 3651 } // namespace dart
3651 3652
3652 #endif // VM_OBJECT_H_ 3653 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698