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

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

Issue 15730003: Support inlining function containing throw in the optimizer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/intermediate_language.cc ('k') | no next file » | 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/cpu.h" 10 #include "vm/cpu.h"
(...skipping 8541 matching lines...) Expand 10 before | Expand all | Expand 10 after
8552 ASSERT((arg_nr != 0) || 8552 ASSERT((arg_nr != 0) ||
8553 (result.GetTargetAt(duplicate_class_id) == GetTargetAt(i))); 8553 (result.GetTargetAt(duplicate_class_id) == GetTargetAt(i)));
8554 result.IncrementCountAt(duplicate_class_id, count); 8554 result.IncrementCountAt(duplicate_class_id, count);
8555 } else { 8555 } else {
8556 // This will make sure that Smi is first if it exists. 8556 // This will make sure that Smi is first if it exists.
8557 result.AddReceiverCheck(class_id, 8557 result.AddReceiverCheck(class_id,
8558 Function::Handle(GetTargetAt(i)), 8558 Function::Handle(GetTargetAt(i)),
8559 count); 8559 count);
8560 } 8560 }
8561 } 8561 }
8562 // Copy deoptimization reason.
8563 result.set_deopt_reason(this->deopt_reason());
8564
8562 return result.raw(); 8565 return result.raw();
8563 } 8566 }
8564 8567
8565 8568
8566 bool ICData::AllTargetsHaveSameOwner(intptr_t owner_cid) const { 8569 bool ICData::AllTargetsHaveSameOwner(intptr_t owner_cid) const {
8567 if (NumberOfChecks() == 0) return false; 8570 if (NumberOfChecks() == 0) return false;
8568 Class& cls = Class::Handle(); 8571 Class& cls = Class::Handle();
8569 const intptr_t len = NumberOfChecks(); 8572 const intptr_t len = NumberOfChecks();
8570 for (intptr_t i = 0; i < len; i++) { 8573 for (intptr_t i = 0; i < len; i++) {
8571 cls = Function::Handle(GetTargetAt(i)).Owner(); 8574 cls = Function::Handle(GetTargetAt(i)).Owner();
(...skipping 4752 matching lines...) Expand 10 before | Expand all | Expand 10 after
13324 } 13327 }
13325 return result.raw(); 13328 return result.raw();
13326 } 13329 }
13327 13330
13328 13331
13329 const char* WeakProperty::ToCString() const { 13332 const char* WeakProperty::ToCString() const {
13330 return "_WeakProperty"; 13333 return "_WeakProperty";
13331 } 13334 }
13332 13335
13333 } // namespace dart 13336 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698