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

Side by Side Diff: runtime/vm/raw_object.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, 9 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 | « runtime/vm/opt_code_generator_ia32.h ('k') | runtime/vm/raw_object_snapshot.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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 RawCode* closure_allocation_stub_; // Stub code for allocation of closures. 494 RawCode* closure_allocation_stub_; // Stub code for allocation of closures.
495 RawFunction* implicit_closure_function_; // Implicit closure function. 495 RawFunction* implicit_closure_function_; // Implicit closure function.
496 RawObject** to() { 496 RawObject** to() {
497 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_); 497 return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_);
498 } 498 }
499 499
500 intptr_t token_index_; 500 intptr_t token_index_;
501 intptr_t end_token_index_; 501 intptr_t end_token_index_;
502 intptr_t num_fixed_parameters_; 502 intptr_t num_fixed_parameters_;
503 intptr_t num_optional_parameters_; 503 intptr_t num_optional_parameters_;
504 intptr_t invocation_counter_; 504 intptr_t usage_counter_; // Incremented while function is running.
505 intptr_t deoptimization_counter_; 505 intptr_t deoptimization_counter_;
506 Kind kind_; 506 Kind kind_;
507 bool is_static_; 507 bool is_static_;
508 bool is_const_; 508 bool is_const_;
509 bool is_optimizable_; 509 bool is_optimizable_;
510 }; 510 };
511 511
512 512
513 class RawField : public RawObject { 513 class RawField : public RawObject {
514 RAW_HEAP_OBJECT_IMPLEMENTATION(Field); 514 RAW_HEAP_OBJECT_IMPLEMENTATION(Field);
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 RawString* target_name_; // Name of target function. 1098 RawString* target_name_; // Name of target function.
1099 RawArray* ic_data_; // Contains test classes and target function. 1099 RawArray* ic_data_; // Contains test classes and target function.
1100 intptr_t id_; // Parser node id corresponding to this IC. 1100 intptr_t id_; // Parser node id corresponding to this IC.
1101 intptr_t num_args_tested_; // Number of arguments tested in IC. 1101 intptr_t num_args_tested_; // Number of arguments tested in IC.
1102 }; 1102 };
1103 1103
1104 1104
1105 } // namespace dart 1105 } // namespace dart
1106 1106
1107 #endif // VM_RAW_OBJECT_H_ 1107 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/opt_code_generator_ia32.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698