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

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

Issue 22632010: Added following dart API changes to enable more efficient access based (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 17 matching lines...) Expand all
28 #undef DEFINE_FORWARD_DECLARATION 28 #undef DEFINE_FORWARD_DECLARATION
29 class Api; 29 class Api;
30 class ArgumentsDescriptor; 30 class ArgumentsDescriptor;
31 class Assembler; 31 class Assembler;
32 class Closure; 32 class Closure;
33 class Code; 33 class Code;
34 class DeoptInstr; 34 class DeoptInstr;
35 class FinalizablePersistentHandle; 35 class FinalizablePersistentHandle;
36 class LocalScope; 36 class LocalScope;
37 class ReusableHandleScope; 37 class ReusableHandleScope;
38 class ReusableObjectHandleScope;
38 class Symbols; 39 class Symbols;
39 40
40 #if defined(DEBUG) 41 #if defined(DEBUG)
41 #define CHECK_HANDLE() CheckHandle(); 42 #define CHECK_HANDLE() CheckHandle();
42 #else 43 #else
43 #define CHECK_HANDLE() 44 #define CHECK_HANDLE()
44 #endif 45 #endif
45 46
46 #define BASE_OBJECT_IMPLEMENTATION(object, super) \ 47 #define BASE_OBJECT_IMPLEMENTATION(object, super) \
47 public: /* NOLINT */ \ 48 public: /* NOLINT */ \
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 friend void ClassTable::Register(const Class& cls); 615 friend void ClassTable::Register(const Class& cls);
615 friend void RawObject::Validate(Isolate* isolate) const; 616 friend void RawObject::Validate(Isolate* isolate) const;
616 friend class Closure; 617 friend class Closure;
617 friend class SnapshotReader; 618 friend class SnapshotReader;
618 friend class OneByteString; 619 friend class OneByteString;
619 friend class TwoByteString; 620 friend class TwoByteString;
620 friend class ExternalOneByteString; 621 friend class ExternalOneByteString;
621 friend class ExternalTwoByteString; 622 friend class ExternalTwoByteString;
622 friend class Isolate; 623 friend class Isolate;
623 friend class ReusableHandleScope; 624 friend class ReusableHandleScope;
625 friend class ReusableObjectHandleScope;
624 626
625 DISALLOW_ALLOCATION(); 627 DISALLOW_ALLOCATION();
626 DISALLOW_COPY_AND_ASSIGN(Object); 628 DISALLOW_COPY_AND_ASSIGN(Object);
627 }; 629 };
628 630
629 631
630 class Class : public Object { 632 class Class : public Object {
631 public: 633 public:
632 intptr_t instance_size() const { 634 intptr_t instance_size() const {
633 ASSERT(is_finalized() || is_prefinalized()); 635 ASSERT(is_finalized() || is_prefinalized());
(...skipping 5419 matching lines...) Expand 10 before | Expand all | Expand 10 after
6053 6055
6054 6056
6055 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6057 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6056 intptr_t index) { 6058 intptr_t index) {
6057 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6059 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6058 } 6060 }
6059 6061
6060 } // namespace dart 6062 } // namespace dart
6061 6063
6062 #endif // VM_OBJECT_H_ 6064 #endif // VM_OBJECT_H_
OLDNEW
« runtime/vm/dart_api_impl.cc ('K') | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698