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

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

Issue 15743019: Consolidate debug stubs (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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 2422 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 2433
2434 public: 2434 public:
2435 enum Kind { 2435 enum Kind {
2436 kDeopt, // Deoptimization continuation point. 2436 kDeopt, // Deoptimization continuation point.
2437 kEntryPatch, // Location where to patch entry. 2437 kEntryPatch, // Location where to patch entry.
2438 kPatchCode, // Buffer for patching code entry. 2438 kPatchCode, // Buffer for patching code entry.
2439 kLazyDeoptJump, // Lazy deoptimization trampoline. 2439 kLazyDeoptJump, // Lazy deoptimization trampoline.
2440 kIcCall, // IC call. 2440 kIcCall, // IC call.
2441 kFuncCall, // Call to known target, e.g. static call. 2441 kFuncCall, // Call to known target, e.g. static call.
2442 kClosureCall, // Closure call. 2442 kClosureCall, // Closure call.
2443 kRuntimeCall, // Runtime call.
2443 kReturn, // Return from function. 2444 kReturn, // Return from function.
2444 kEqualNull, // Stub for comparison with null.
2445 kOther 2445 kOther
2446 }; 2446 };
2447 2447
2448 intptr_t Length() const; 2448 intptr_t Length() const;
2449 2449
2450 uword PC(intptr_t index) const; 2450 uword PC(intptr_t index) const;
2451 PcDescriptors::Kind DescriptorKind(intptr_t index) const; 2451 PcDescriptors::Kind DescriptorKind(intptr_t index) const;
2452 const char* KindAsStr(intptr_t index) const; 2452 const char* KindAsStr(intptr_t index) const;
2453 intptr_t DeoptId(intptr_t index) const; 2453 intptr_t DeoptId(intptr_t index) const;
2454 intptr_t TokenPos(intptr_t index) const; 2454 intptr_t TokenPos(intptr_t index) const;
(...skipping 3313 matching lines...) Expand 10 before | Expand all | Expand 10 after
5768 5768
5769 5769
5770 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 5770 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
5771 intptr_t index) { 5771 intptr_t index) {
5772 return array.At((index * kEntryLength) + kTargetFunctionIndex); 5772 return array.At((index * kEntryLength) + kTargetFunctionIndex);
5773 } 5773 }
5774 5774
5775 } // namespace dart 5775 } // namespace dart
5776 5776
5777 #endif // VM_OBJECT_H_ 5777 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698