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

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

Issue 12213020: Remember owner class of patch code (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | 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 VM_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 520
521 521
522 class RawPatchClass : public RawObject { 522 class RawPatchClass : public RawObject {
523 private: 523 private:
524 RAW_HEAP_OBJECT_IMPLEMENTATION(PatchClass); 524 RAW_HEAP_OBJECT_IMPLEMENTATION(PatchClass);
525 525
526 RawObject** from() { 526 RawObject** from() {
527 return reinterpret_cast<RawObject**>(&ptr()->patched_class_); 527 return reinterpret_cast<RawObject**>(&ptr()->patched_class_);
528 } 528 }
529 RawClass* patched_class_; 529 RawClass* patched_class_;
530 RawScript* script_; 530 RawClass* source_class_;
531 RawObject** to() { 531 RawObject** to() {
532 return reinterpret_cast<RawObject**>(&ptr()->script_); 532 return reinterpret_cast<RawObject**>(&ptr()->source_class_);
533 } 533 }
534 }; 534 };
535 535
536 536
537 class RawFunction : public RawObject { 537 class RawFunction : public RawObject {
538 public: 538 public:
539 enum Kind { 539 enum Kind {
540 kRegularFunction, 540 kRegularFunction,
541 kClosureFunction, 541 kClosureFunction,
542 kSignatureFunction, // represents a signature only without actual code. 542 kSignatureFunction, // represents a signature only without actual code.
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 && 1689 kExternalUint64ArrayCid == kExternalInt8ArrayCid + 8 &&
1690 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 && 1690 kExternalFloat32ArrayCid == kExternalInt8ArrayCid + 9 &&
1691 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 && 1691 kExternalFloat64ArrayCid == kExternalInt8ArrayCid + 10 &&
1692 kStacktraceCid == kExternalInt8ArrayCid + 11); 1692 kStacktraceCid == kExternalInt8ArrayCid + 11);
1693 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid); 1693 return (index >= kExternalInt8ArrayCid && index <= kExternalFloat64ArrayCid);
1694 } 1694 }
1695 1695
1696 } // namespace dart 1696 } // namespace dart
1697 1697
1698 #endif // VM_RAW_OBJECT_H_ 1698 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698