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

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

Issue 16844011: Revert r23330 and r23136 because of a bug with loop invariant code motion. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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/object.cc ('k') | tests/corelib/corelib.status » ('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/token.h" 10 #include "vm/token.h"
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 605 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
606 RawString* name_; 606 RawString* name_;
607 RawObject* owner_; // Class or patch class or mixin class 607 RawObject* owner_; // Class or patch class or mixin class
608 // where this function is defined. 608 // where this function is defined.
609 RawAbstractType* result_type_; 609 RawAbstractType* result_type_;
610 RawArray* parameter_types_; 610 RawArray* parameter_types_;
611 RawArray* parameter_names_; 611 RawArray* parameter_names_;
612 RawCode* code_; // Compiled code for the function. 612 RawCode* code_; // Compiled code for the function.
613 RawCode* unoptimized_code_; // Unoptimized code, keep it after optimization. 613 RawCode* unoptimized_code_; // Unoptimized code, keep it after optimization.
614 RawArray* deopt_history_; // Deopt Ids of past deoptimizations.
615 RawObject* data_; // Additional data specific to the function kind. 614 RawObject* data_; // Additional data specific to the function kind.
616 RawObject** to() { 615 RawObject** to() {
617 return reinterpret_cast<RawObject**>(&ptr()->data_); 616 return reinterpret_cast<RawObject**>(&ptr()->data_);
618 } 617 }
619 618
620 intptr_t token_pos_; 619 intptr_t token_pos_;
621 intptr_t end_token_pos_; 620 intptr_t end_token_pos_;
622 intptr_t usage_counter_; // Incremented while function is running. 621 intptr_t usage_counter_; // Incremented while function is running.
623 int16_t num_fixed_parameters_; 622 int16_t num_fixed_parameters_;
624 int16_t num_optional_parameters_; // > 0: positional; < 0: named. 623 int16_t num_optional_parameters_; // > 0: positional; < 0: named.
(...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 // Make sure this is updated when new TypedData types are added. 1687 // Make sure this is updated when new TypedData types are added.
1689 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12); 1688 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 12);
1690 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13); 1689 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 13);
1691 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12); 1690 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 12);
1692 return (kNullCid - kTypedDataInt8ArrayCid); 1691 return (kNullCid - kTypedDataInt8ArrayCid);
1693 } 1692 }
1694 1693
1695 } // namespace dart 1694 } // namespace dart
1696 1695
1697 #endif // VM_RAW_OBJECT_H_ 1696 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | tests/corelib/corelib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698