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 "v8.h" | 8 #include "v8.h" |
9 | 9 |
10 #include "allocation.h" | 10 #include "allocation.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 scope_(info->scope()), | 67 scope_(info->scope()), |
68 nesting_stack_(NULL), | 68 nesting_stack_(NULL), |
69 loop_depth_(0), | 69 loop_depth_(0), |
70 globals_(NULL), | 70 globals_(NULL), |
71 context_(NULL), | 71 context_(NULL), |
72 bailout_entries_(info->HasDeoptimizationSupport() | 72 bailout_entries_(info->HasDeoptimizationSupport() |
73 ? info->function()->ast_node_count() : 0, | 73 ? info->function()->ast_node_count() : 0, |
74 info->zone()), | 74 info->zone()), |
75 back_edges_(2, info->zone()), | 75 back_edges_(2, info->zone()), |
76 ic_total_count_(0) { | 76 ic_total_count_(0) { |
| 77 ASSERT(!info->IsStub()); |
77 Initialize(); | 78 Initialize(); |
78 } | 79 } |
79 | 80 |
80 void Initialize(); | 81 void Initialize(); |
81 | 82 |
82 static bool MakeCode(CompilationInfo* info); | 83 static bool MakeCode(CompilationInfo* info); |
83 | 84 |
84 // Encode state and pc-offset as a BitField<type, start, size>. | 85 // Encode state and pc-offset as a BitField<type, start, size>. |
85 // Only use 30 bits because we encode the result as a smi. | 86 // Only use 30 bits because we encode the result as a smi. |
86 class StateField : public BitField<State, 0, 1> { }; | 87 class StateField : public BitField<State, 0, 1> { }; |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 | 939 |
939 Address start_; | 940 Address start_; |
940 Address instruction_start_; | 941 Address instruction_start_; |
941 uint32_t length_; | 942 uint32_t length_; |
942 }; | 943 }; |
943 | 944 |
944 | 945 |
945 } } // namespace v8::internal | 946 } } // namespace v8::internal |
946 | 947 |
947 #endif // V8_FULL_CODEGEN_H_ | 948 #endif // V8_FULL_CODEGEN_H_ |
OLD | NEW |