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

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

Issue 11833025: Fix for issue 7757 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 11 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 2556 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 kSCallTableFunctionEntry = 1, 2567 kSCallTableFunctionEntry = 1,
2568 kSCallTableCodeEntry = 2, 2568 kSCallTableCodeEntry = 2,
2569 kSCallTableEntryLength = 3, 2569 kSCallTableEntryLength = 3,
2570 }; 2570 };
2571 2571
2572 void set_static_calls_target_table(const Array& value) const; 2572 void set_static_calls_target_table(const Array& value) const;
2573 RawArray* static_calls_target_table() const { 2573 RawArray* static_calls_target_table() const {
2574 return raw_ptr()->static_calls_target_table_; 2574 return raw_ptr()->static_calls_target_table_;
2575 } 2575 }
2576 2576
2577 RawDeoptInfo* GetDeoptInfoAtPc(uword pc, intptr_t* deopt_reason) const;
2578
2577 // Returns null if there is no static call at 'pc'. 2579 // Returns null if there is no static call at 'pc'.
2578 RawFunction* GetStaticCallTargetFunctionAt(uword pc) const; 2580 RawFunction* GetStaticCallTargetFunctionAt(uword pc) const;
2579 // Aborts if there is no static call at 'pc'. 2581 // Aborts if there is no static call at 'pc'.
2580 void SetStaticCallTargetCodeAt(uword pc, const Code& code) const; 2582 void SetStaticCallTargetCodeAt(uword pc, const Code& code) const;
2581 2583
2582 class Comments : public ZoneAllocated { 2584 class Comments : public ZoneAllocated {
2583 public: 2585 public:
2584 static Comments& New(intptr_t count); 2586 static Comments& New(intptr_t count);
2585 2587
2586 intptr_t Length() const; 2588 intptr_t Length() const;
(...skipping 3656 matching lines...) Expand 10 before | Expand all | Expand 10 after
6243 6245
6244 6246
6245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6247 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6246 intptr_t index) { 6248 intptr_t index) {
6247 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6249 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6248 } 6250 }
6249 6251
6250 } // namespace dart 6252 } // namespace dart
6251 6253
6252 #endif // VM_OBJECT_H_ 6254 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698