| 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_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_H_ |
| 6 #define V8_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 | 618 |
| 619 void Generate(); | 619 void Generate(); |
| 620 void PopulateDeoptimizationData(Handle<Code> code); | 620 void PopulateDeoptimizationData(Handle<Code> code); |
| 621 void PopulateTypeFeedbackInfo(Handle<Code> code); | 621 void PopulateTypeFeedbackInfo(Handle<Code> code); |
| 622 | 622 |
| 623 Handle<FixedArray> handler_table() { return handler_table_; } | 623 Handle<FixedArray> handler_table() { return handler_table_; } |
| 624 | 624 |
| 625 struct BailoutEntry { | 625 struct BailoutEntry { |
| 626 BailoutId id; | 626 BailoutId id; |
| 627 unsigned pc_and_state; | 627 unsigned pc_and_state; |
| 628 static int CompareBailoutId(const BailoutEntry* a, const BailoutEntry* b) { |
| 629 if (a->id == b->id) { |
| 630 return 0; |
| 631 } else if (a->id < b->id) { |
| 632 return -1; |
| 633 } else { |
| 634 return +1; |
| 635 } |
| 636 } |
| 628 }; | 637 }; |
| 629 | 638 |
| 630 struct BackEdgeEntry { | 639 struct BackEdgeEntry { |
| 631 BailoutId id; | 640 BailoutId id; |
| 632 unsigned pc; | 641 unsigned pc; |
| 633 uint32_t loop_depth; | 642 uint32_t loop_depth; |
| 634 }; | 643 }; |
| 635 | 644 |
| 636 class ExpressionContext BASE_EMBEDDED { | 645 class ExpressionContext BASE_EMBEDDED { |
| 637 public: | 646 public: |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 | 943 |
| 935 Address start_; | 944 Address start_; |
| 936 Address instruction_start_; | 945 Address instruction_start_; |
| 937 uint32_t length_; | 946 uint32_t length_; |
| 938 }; | 947 }; |
| 939 | 948 |
| 940 | 949 |
| 941 } } // namespace v8::internal | 950 } } // namespace v8::internal |
| 942 | 951 |
| 943 #endif // V8_FULL_CODEGEN_H_ | 952 #endif // V8_FULL_CODEGEN_H_ |
| OLD | NEW |