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

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

Issue 10832397: Test functions do not have scripts associated with them. Prevent their optimization by marking any … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/compiler.cc ('k') | runtime/vm/object.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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 raw_ptr()->usage_counter_ = value; 1476 raw_ptr()->usage_counter_ = value;
1477 } 1477 }
1478 1478
1479 intptr_t deoptimization_counter() const { 1479 intptr_t deoptimization_counter() const {
1480 return raw_ptr()->deoptimization_counter_; 1480 return raw_ptr()->deoptimization_counter_;
1481 } 1481 }
1482 void set_deoptimization_counter(intptr_t value) const { 1482 void set_deoptimization_counter(intptr_t value) const {
1483 raw_ptr()->deoptimization_counter_ = value; 1483 raw_ptr()->deoptimization_counter_ = value;
1484 } 1484 }
1485 1485
1486 bool is_optimizable() const { 1486 bool is_optimizable() const;
1487 return OptimizableBit::decode(raw_ptr()->kind_tag_);
1488 }
1489 void set_is_optimizable(bool value) const; 1487 void set_is_optimizable(bool value) const;
1490 1488
1491 bool has_finally() const { 1489 bool has_finally() const {
1492 return HasFinallyBit::decode(raw_ptr()->kind_tag_); 1490 return HasFinallyBit::decode(raw_ptr()->kind_tag_);
1493 } 1491 }
1494 void set_has_finally(bool value) const; 1492 void set_has_finally(bool value) const;
1495 1493
1496 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); } 1494 bool is_native() const { return NativeBit::decode(raw_ptr()->kind_tag_); }
1497 void set_is_native(bool value) const; 1495 void set_is_native(bool value) const;
1498 1496
(...skipping 4051 matching lines...) Expand 10 before | Expand all | Expand 10 after
5550 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5548 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5551 return false; 5549 return false;
5552 } 5550 }
5553 } 5551 }
5554 return true; 5552 return true;
5555 } 5553 }
5556 5554
5557 } // namespace dart 5555 } // namespace dart
5558 5556
5559 #endif // VM_OBJECT_H_ 5557 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698