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

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

Issue 11438017: Pass IC data and arguments descriptor to IC miss runtime functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | 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_CODE_GENERATOR_H_ 5 #ifndef VM_CODE_GENERATOR_H_
6 #define VM_CODE_GENERATOR_H_ 6 #define VM_CODE_GENERATOR_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/runtime_entry.h" 9 #include "vm/runtime_entry.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 class ArgumentsDescriptor;
14 template <typename T> class GrowableArray;
15 class ICData;
16 class Instance;
17
13 // Declaration of runtime entries called from stub or generated code. 18 // Declaration of runtime entries called from stub or generated code.
14 DECLARE_RUNTIME_ENTRY(AllocateArray); 19 DECLARE_RUNTIME_ENTRY(AllocateArray);
15 DECLARE_RUNTIME_ENTRY(AllocateClosure); 20 DECLARE_RUNTIME_ENTRY(AllocateClosure);
16 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure); 21 DECLARE_RUNTIME_ENTRY(AllocateImplicitInstanceClosure);
17 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure); 22 DECLARE_RUNTIME_ENTRY(AllocateImplicitStaticClosure);
18 DECLARE_RUNTIME_ENTRY(AllocateContext); 23 DECLARE_RUNTIME_ENTRY(AllocateContext);
19 DECLARE_RUNTIME_ENTRY(AllocateObject); 24 DECLARE_RUNTIME_ENTRY(AllocateObject);
20 DECLARE_RUNTIME_ENTRY(AllocateObjectWithBoundsCheck); 25 DECLARE_RUNTIME_ENTRY(AllocateObjectWithBoundsCheck);
21 DECLARE_RUNTIME_ENTRY(ArgumentDefinitionTest); 26 DECLARE_RUNTIME_ENTRY(ArgumentDefinitionTest);
22 DECLARE_RUNTIME_ENTRY(BreakpointStaticHandler); 27 DECLARE_RUNTIME_ENTRY(BreakpointStaticHandler);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 enum DeoptReasonId { 78 enum DeoptReasonId {
74 #define DEFINE_ENUM_LIST(name) kDeopt##name, 79 #define DEFINE_ENUM_LIST(name) kDeopt##name,
75 DEOPT_REASONS(DEFINE_ENUM_LIST) 80 DEOPT_REASONS(DEFINE_ENUM_LIST)
76 #undef DEFINE_ENUM_LIST 81 #undef DEFINE_ENUM_LIST
77 }; 82 };
78 83
79 84
80 const char* DeoptReasonToText(intptr_t deopt_id); 85 const char* DeoptReasonToText(intptr_t deopt_id);
81 86
82 87
83 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, 88 RawCode* ResolveCompileInstanceCallTarget(
84 const Instance& receiver); 89 const Instance& receiver,
90 const ICData& ic_data,
91 const ArgumentsDescriptor& arguments_descriptor);
85 92
86 void DeoptimizeAll(); 93 void DeoptimizeAll();
87 void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes); 94 void DeoptimizeIfOwner(const GrowableArray<intptr_t>& classes);
88 95
89 } // namespace dart 96 } // namespace dart
90 97
91 #endif // VM_CODE_GENERATOR_H_ 98 #endif // VM_CODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698