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

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

Issue 10243013: Simpler and better inlined type checks as discussed. Changed inline type test cache arrays to conta… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | runtime/vm/code_generator.cc » ('J')
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
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 static void EnterFunctionAt(int i, 117 static void EnterFunctionAt(int i,
118 const Array& cache, 118 const Array& cache,
119 const Function& function, 119 const Function& function,
120 int num_arguments, 120 int num_arguments,
121 int num_named_arguments); 121 int num_named_arguments);
122 122
123 const Class& class_; 123 const Class& class_;
124 }; 124 };
125 125
126 126
127 // A subtype test cache is an array remembering subtype tests for given values.
128 class SubTypeTestCache : public AllStatic {
129 public:
130 enum Entries {
131 kInstanceClass = 0,
132 kInstanceTypeArguments = 1,
133 kInstantiatorArguments = 2,
regis 2012/04/27 23:27:48 Is kInstantiatorTypeArguments too long? That would
srdjan 2012/04/27 23:43:19 renamed to kInstantiatorTypeArguments
134 kTestResult = 3,
135 kNumEntries = 4,
136 };
137 };
138
139
127 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate, 140 RawCode* ResolveCompileInstanceCallTarget(Isolate* isolate,
128 const Instance& receiver); 141 const Instance& receiver);
129 142
130 } // namespace dart 143 } // namespace dart
131 144
132 #endif // VM_CODE_GENERATOR_H_ 145 #endif // VM_CODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/code_generator.cc » ('j') | runtime/vm/code_generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698