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

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

Issue 3003583002: [VM, Precompiler] PoC Obfuscator (Closed)
Patch Set: address comments and fix stuff Created 3 years, 3 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
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_RAW_OBJECT_H_ 5 #ifndef RUNTIME_VM_RAW_OBJECT_H_
6 #define RUNTIME_VM_RAW_OBJECT_H_ 6 #define RUNTIME_VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/exceptions.h" 10 #include "vm/exceptions.h"
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 friend class StackFrame; // GetCodeObject assertion. 683 friend class StackFrame; // GetCodeObject assertion.
684 friend class CodeLookupTableBuilder; // profiler 684 friend class CodeLookupTableBuilder; // profiler
685 friend class NativeEntry; // GetClassId 685 friend class NativeEntry; // GetClassId
686 friend class WritePointerVisitor; // GetClassId 686 friend class WritePointerVisitor; // GetClassId
687 friend class Simulator; 687 friend class Simulator;
688 friend class SimulatorHelpers; 688 friend class SimulatorHelpers;
689 friend class ObjectLocator; 689 friend class ObjectLocator;
690 friend class InstanceMorpher; // GetClassId 690 friend class InstanceMorpher; // GetClassId
691 friend class VerifyCanonicalVisitor; 691 friend class VerifyCanonicalVisitor;
692 friend class ObjectGraph::Stack; // GetClassId 692 friend class ObjectGraph::Stack; // GetClassId
693 friend class Precompiler; // GetClassId
693 694
694 DISALLOW_ALLOCATION(); 695 DISALLOW_ALLOCATION();
695 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); 696 DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject);
696 }; 697 };
697 698
698 class RawClass : public RawObject { 699 class RawClass : public RawObject {
699 public: 700 public:
700 enum ClassFinalizedState { 701 enum ClassFinalizedState {
701 kAllocated = 0, // Initial state. 702 kAllocated = 0, // Initial state.
702 kPreFinalized, // VM classes: size precomputed, but no checks done. 703 kPreFinalized, // VM classes: size precomputed, but no checks done.
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after
2439 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2440 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2440 kTypedDataInt8ArrayViewCid + 15); 2441 kTypedDataInt8ArrayViewCid + 15);
2441 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2442 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2442 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2443 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2443 return (kNullCid - kTypedDataInt8ArrayCid); 2444 return (kNullCid - kTypedDataInt8ArrayCid);
2444 } 2445 }
2445 2446
2446 } // namespace dart 2447 } // namespace dart
2447 2448
2448 #endif // RUNTIME_VM_RAW_OBJECT_H_ 2449 #endif // RUNTIME_VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698