OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 return scope()->num_heap_slots(); | 140 return scope()->num_heap_slots(); |
141 } | 141 } |
142 } | 142 } |
143 | 143 |
144 | 144 |
145 Code::Flags CompilationInfo::flags() const { | 145 Code::Flags CompilationInfo::flags() const { |
146 if (IsStub()) { | 146 if (IsStub()) { |
147 return Code::ComputeFlags(code_stub()->GetCodeKind(), | 147 return Code::ComputeFlags(code_stub()->GetCodeKind(), |
148 code_stub()->GetICState(), | 148 code_stub()->GetICState(), |
149 code_stub()->GetExtraICState(), | 149 code_stub()->GetExtraICState(), |
150 Code::NORMAL, | 150 Code::NORMAL, -1); |
151 0); | |
152 } else { | 151 } else { |
153 return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); | 152 return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); |
154 } | 153 } |
155 } | 154 } |
156 | 155 |
157 | 156 |
158 // Disable optimization for the rest of the compilation pipeline. | 157 // Disable optimization for the rest of the compilation pipeline. |
159 void CompilationInfo::DisableOptimization() { | 158 void CompilationInfo::DisableOptimization() { |
160 bool is_optimizable_closure = | 159 bool is_optimizable_closure = |
161 FLAG_optimize_closures && | 160 FLAG_optimize_closures && |
(...skipping 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 } | 1164 } |
1166 } | 1165 } |
1167 | 1166 |
1168 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1167 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
1169 Handle<Script>(info->script()), | 1168 Handle<Script>(info->script()), |
1170 Handle<Code>(info->code()), | 1169 Handle<Code>(info->code()), |
1171 info)); | 1170 info)); |
1172 } | 1171 } |
1173 | 1172 |
1174 } } // namespace v8::internal | 1173 } } // namespace v8::internal |
OLD | NEW |