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_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 492 matching lines...) Loading... |
503 Zone* zone_; | 503 Zone* zone_; |
504 | 504 |
505 bool is_recursive_; | 505 bool is_recursive_; |
506 bool use_optimistic_licm_; | 506 bool use_optimistic_licm_; |
507 bool depends_on_empty_array_proto_elements_; | 507 bool depends_on_empty_array_proto_elements_; |
508 int type_change_checksum_; | 508 int type_change_checksum_; |
509 int maximum_environment_size_; | 509 int maximum_environment_size_; |
510 int no_side_effects_scope_count_; | 510 int no_side_effects_scope_count_; |
511 bool disallow_adding_new_values_; | 511 bool disallow_adding_new_values_; |
512 | 512 |
513 class InlinedFunctionInfo { | |
514 public: | |
515 explicit InlinedFunctionInfo(Handle<SharedFunctionInfo> shared) | |
516 : shared_(shared), start_position_(shared->start_position()) { | |
517 } | |
518 | |
519 Handle<SharedFunctionInfo> shared() const { return shared_; } | |
520 int start_position() const { return start_position_; } | |
521 | |
522 private: | |
523 Handle<SharedFunctionInfo> shared_; | |
524 int start_position_; | |
525 }; | |
526 | |
527 ZoneList<InlinedFunctionInfo> inlined_functions_; | |
528 ZoneList<int> inlining_id_to_function_id_; | |
529 | |
530 DISALLOW_COPY_AND_ASSIGN(HGraph); | 513 DISALLOW_COPY_AND_ASSIGN(HGraph); |
531 }; | 514 }; |
532 | 515 |
533 | 516 |
534 Zone* HBasicBlock::zone() const { return graph_->zone(); } | 517 Zone* HBasicBlock::zone() const { return graph_->zone(); } |
535 | 518 |
536 | 519 |
537 // Type of stack frame an environment might refer to. | 520 // Type of stack frame an environment might refer to. |
538 enum FrameType { | 521 enum FrameType { |
539 JS_FUNCTION, | 522 JS_FUNCTION, |
(...skipping 2407 matching lines...) Loading... |
2947 } | 2930 } |
2948 | 2931 |
2949 private: | 2932 private: |
2950 HGraphBuilder* builder_; | 2933 HGraphBuilder* builder_; |
2951 }; | 2934 }; |
2952 | 2935 |
2953 | 2936 |
2954 } } // namespace v8::internal | 2937 } } // namespace v8::internal |
2955 | 2938 |
2956 #endif // V8_HYDROGEN_H_ | 2939 #endif // V8_HYDROGEN_H_ |
OLD | NEW |