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

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

Issue 11665005: Support scalar lists in array bounds check elimination. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comment Created 7 years, 11 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/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.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_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 4088 matching lines...) Expand 10 before | Expand all | Expand 10 after
4099 4099
4100 virtual bool AffectedBySideEffect() const { return false; } 4100 virtual bool AffectedBySideEffect() const { return false; }
4101 4101
4102 Value* array() const { return inputs_[0]; } 4102 Value* array() const { return inputs_[0]; }
4103 Value* index() const { return inputs_[1]; } 4103 Value* index() const { return inputs_[1]; }
4104 4104
4105 intptr_t array_type() const { return array_type_; } 4105 intptr_t array_type() const { return array_type_; }
4106 4106
4107 bool IsRedundant(RangeBoundary length); 4107 bool IsRedundant(RangeBoundary length);
4108 4108
4109 // Returns the length offset for array and string types.
4110 static intptr_t LengthOffsetFor(intptr_t class_id);
4111
4112 static bool IsFixedLengthArrayType(intptr_t class_id);
4113
4109 private: 4114 private:
4110 intptr_t array_type_; 4115 intptr_t array_type_;
4111 4116
4112 // Returns the length offset for array and string types.
4113 static intptr_t LengthOffsetFor(intptr_t class_id);
4114
4115 DISALLOW_COPY_AND_ASSIGN(CheckArrayBoundInstr); 4117 DISALLOW_COPY_AND_ASSIGN(CheckArrayBoundInstr);
4116 }; 4118 };
4117 4119
4118 4120
4119 #undef DECLARE_INSTRUCTION 4121 #undef DECLARE_INSTRUCTION
4120 4122
4121 class Environment : public ZoneAllocated { 4123 class Environment : public ZoneAllocated {
4122 public: 4124 public:
4123 // Iterate the non-NULL values in the innermost level of an environment. 4125 // Iterate the non-NULL values in the innermost level of an environment.
4124 class ShallowIterator : public ValueObject { 4126 class ShallowIterator : public ValueObject {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
4323 ForwardInstructionIterator* current_iterator_; 4325 ForwardInstructionIterator* current_iterator_;
4324 4326
4325 private: 4327 private:
4326 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 4328 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
4327 }; 4329 };
4328 4330
4329 4331
4330 } // namespace dart 4332 } // namespace dart
4331 4333
4332 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 4334 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698