OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_H_ |
7 | 7 |
8 #include "src/accessors.h" | 8 #include "src/accessors.h" |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/ast.h" | 10 #include "src/ast.h" |
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 use_optimistic_licm_ = value; | 406 use_optimistic_licm_ = value; |
407 } | 407 } |
408 | 408 |
409 void MarkRecursive() { is_recursive_ = true; } | 409 void MarkRecursive() { is_recursive_ = true; } |
410 bool is_recursive() const { return is_recursive_; } | 410 bool is_recursive() const { return is_recursive_; } |
411 | 411 |
412 void MarkDependsOnEmptyArrayProtoElements() { | 412 void MarkDependsOnEmptyArrayProtoElements() { |
413 // Add map dependency if not already added. | 413 // Add map dependency if not already added. |
414 if (depends_on_empty_array_proto_elements_) return; | 414 if (depends_on_empty_array_proto_elements_) return; |
415 info()->dependencies()->AssumePropertyCell( | 415 info()->dependencies()->AssumePropertyCell( |
416 isolate()->factory()->array_protector()); | 416 isolate()->factory()->array_elements_protector()); |
417 depends_on_empty_array_proto_elements_ = true; | 417 depends_on_empty_array_proto_elements_ = true; |
418 } | 418 } |
419 | 419 |
420 bool depends_on_empty_array_proto_elements() { | 420 bool depends_on_empty_array_proto_elements() { |
421 return depends_on_empty_array_proto_elements_; | 421 return depends_on_empty_array_proto_elements_; |
422 } | 422 } |
423 | 423 |
424 bool has_uint32_instructions() { | 424 bool has_uint32_instructions() { |
425 DCHECK(uint32_instructions_ == NULL || !uint32_instructions_->is_empty()); | 425 DCHECK(uint32_instructions_ == NULL || !uint32_instructions_->is_empty()); |
426 return uint32_instructions_ != NULL; | 426 return uint32_instructions_ != NULL; |
(...skipping 2645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3072 | 3072 |
3073 private: | 3073 private: |
3074 HGraphBuilder* builder_; | 3074 HGraphBuilder* builder_; |
3075 }; | 3075 }; |
3076 | 3076 |
3077 | 3077 |
3078 } // namespace internal | 3078 } // namespace internal |
3079 } // namespace v8 | 3079 } // namespace v8 |
3080 | 3080 |
3081 #endif // V8_CRANKSHAFT_HYDROGEN_H_ | 3081 #endif // V8_CRANKSHAFT_HYDROGEN_H_ |
OLD | NEW |