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

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

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 | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/stub_code_ia32.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 #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 7181 matching lines...) Expand 10 before | Expand all | Expand 10 after
7192 PcDescriptors::Handle(this->pc_descriptors()); 7192 PcDescriptors::Handle(this->pc_descriptors());
7193 ICData& ic_data_obj = ICData::Handle(); 7193 ICData& ic_data_obj = ICData::Handle();
7194 intptr_t max_id = -1; 7194 intptr_t max_id = -1;
7195 for (intptr_t i = 0; i < descriptors.Length(); i++) { 7195 for (intptr_t i = 0; i < descriptors.Length(); i++) {
7196 if (descriptors.DescriptorKind(i) == PcDescriptors::kIcCall) { 7196 if (descriptors.DescriptorKind(i) == PcDescriptors::kIcCall) {
7197 intptr_t deopt_id = descriptors.DeoptId(i); 7197 intptr_t deopt_id = descriptors.DeoptId(i);
7198 if (deopt_id > max_id) { 7198 if (deopt_id > max_id) {
7199 max_id = deopt_id; 7199 max_id = deopt_id;
7200 } 7200 }
7201 node_ids->Add(deopt_id); 7201 node_ids->Add(deopt_id);
7202 ic_data_obj = CodePatcher::GetInstanceCallIcDataAt(descriptors.PC(i)); 7202 CodePatcher::GetInstanceCallAt(descriptors.PC(i), &ic_data_obj, NULL);
7203 ic_data_objs.Add(ic_data_obj); 7203 ic_data_objs.Add(ic_data_obj);
7204 } 7204 }
7205 } 7205 }
7206 return max_id; 7206 return max_id;
7207 } 7207 }
7208 7208
7209 7209
7210 RawArray* Code::ExtractTypeFeedbackArray() const { 7210 RawArray* Code::ExtractTypeFeedbackArray() const {
7211 ASSERT(!IsNull() && !is_optimized()); 7211 ASSERT(!IsNull() && !is_optimized());
7212 GrowableArray<intptr_t> deopt_ids; 7212 GrowableArray<intptr_t> deopt_ids;
(...skipping 4906 matching lines...) Expand 10 before | Expand all | Expand 10 after
12119 } 12119 }
12120 return result.raw(); 12120 return result.raw();
12121 } 12121 }
12122 12122
12123 12123
12124 const char* WeakProperty::ToCString() const { 12124 const char* WeakProperty::ToCString() const {
12125 return "_WeakProperty"; 12125 return "_WeakProperty";
12126 } 12126 }
12127 12127
12128 } // namespace dart 12128 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/deopt_instructions.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698