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

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

Issue 11567012: Store optimized flow graph statistics on the function itself. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Srdjan's comments 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 | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 3938 matching lines...) Expand 10 before | Expand all | Expand 10 after
3949 result.set_is_abstract(is_abstract); 3949 result.set_is_abstract(is_abstract);
3950 result.set_is_external(is_external); 3950 result.set_is_external(is_external);
3951 result.set_intrinsic_kind(kUnknownIntrinsic); 3951 result.set_intrinsic_kind(kUnknownIntrinsic);
3952 result.set_owner(owner); 3952 result.set_owner(owner);
3953 result.set_token_pos(token_pos); 3953 result.set_token_pos(token_pos);
3954 result.set_end_token_pos(token_pos); 3954 result.set_end_token_pos(token_pos);
3955 result.set_num_fixed_parameters(0); 3955 result.set_num_fixed_parameters(0);
3956 result.set_num_optional_parameters(0); 3956 result.set_num_optional_parameters(0);
3957 result.set_usage_counter(0); 3957 result.set_usage_counter(0);
3958 result.set_deoptimization_counter(0); 3958 result.set_deoptimization_counter(0);
3959 result.set_optimized_instruction_count(0);
3960 result.set_optimized_call_site_count(0);
3959 result.set_is_optimizable(true); 3961 result.set_is_optimizable(true);
3960 result.set_has_finally(false); 3962 result.set_has_finally(false);
3961 result.set_is_native(false); 3963 result.set_is_native(false);
3962 result.set_is_inlinable(true); 3964 result.set_is_inlinable(true);
3963 if (kind == RawFunction::kClosureFunction) { 3965 if (kind == RawFunction::kClosureFunction) {
3964 const ClosureData& data = ClosureData::Handle(ClosureData::New()); 3966 const ClosureData& data = ClosureData::Handle(ClosureData::New());
3965 result.set_data(data); 3967 result.set_data(data);
3966 } 3968 }
3967 return result.raw(); 3969 return result.raw();
3968 } 3970 }
(...skipping 8481 matching lines...) Expand 10 before | Expand all | Expand 10 after
12450 } 12452 }
12451 return result.raw(); 12453 return result.raw();
12452 } 12454 }
12453 12455
12454 12456
12455 const char* WeakProperty::ToCString() const { 12457 const char* WeakProperty::ToCString() const {
12456 return "_WeakProperty"; 12458 return "_WeakProperty";
12457 } 12459 }
12458 12460
12459 } // namespace dart 12461 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698