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

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

Issue 9460015: Do not count invocations but usage of a function, i.e., increment a function's counter at IC calls … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_ARM_H_ 5 #ifndef VM_CODE_GENERATOR_ARM_H_
6 #define VM_CODE_GENERATOR_ARM_H_ 6 #define VM_CODE_GENERATOR_ARM_H_
7 7
8 #ifndef VM_CODE_GENERATOR_H_ 8 #ifndef VM_CODE_GENERATOR_H_
9 #error Do not include code_generator_arm.h directly; use assembler.h instead. 9 #error Do not include code_generator_arm.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 28 matching lines...) Expand all
39 void FinalizeVarDescriptors(const Code& code) { UNIMPLEMENTED(); } 39 void FinalizeVarDescriptors(const Code& code) { UNIMPLEMENTED(); }
40 40
41 // Allocate and return an arguments descriptor. 41 // Allocate and return an arguments descriptor.
42 // Let 'num_names' be the length of 'optional_arguments_names'. 42 // Let 'num_names' be the length of 'optional_arguments_names'.
43 // Treat the first 'num_arguments - num_names' arguments as positional and 43 // Treat the first 'num_arguments - num_names' arguments as positional and
44 // treat the following 'num_names' arguments as named optional arguments. 44 // treat the following 'num_names' arguments as named optional arguments.
45 static const Array& ArgumentsDescriptor( 45 static const Array& ArgumentsDescriptor(
46 int num_arguments, 46 int num_arguments,
47 const Array& optional_arguments_names); 47 const Array& optional_arguments_names);
48 48
49 // Return true if the VM may optimize functions.
50 static bool CanOptimize();
51
49 private: 52 private:
50 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator); 53 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeGenerator);
51 }; 54 };
52 55
53 } // namespace dart 56 } // namespace dart
54 57
55 #endif // VM_CODE_GENERATOR_ARM_H_ 58 #endif // VM_CODE_GENERATOR_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698