| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 return scope()->num_heap_slots(); | 137 return scope()->num_heap_slots(); |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 | 141 |
| 142 Code::Flags CompilationInfo::flags() const { | 142 Code::Flags CompilationInfo::flags() const { |
| 143 if (IsStub()) { | 143 if (IsStub()) { |
| 144 return Code::ComputeFlags(code_stub()->GetCodeKind(), | 144 return Code::ComputeFlags(code_stub()->GetCodeKind(), |
| 145 code_stub()->GetICState(), | 145 code_stub()->GetICState(), |
| 146 code_stub()->GetExtraICState(), | 146 code_stub()->GetExtraICState(), |
| 147 Code::NORMAL, -1); | 147 code_stub()->GetStubType(), |
| 148 code_stub()->GetStubFlags()); |
| 148 } else { | 149 } else { |
| 149 return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); | 150 return Code::ComputeFlags(Code::OPTIMIZED_FUNCTION); |
| 150 } | 151 } |
| 151 } | 152 } |
| 152 | 153 |
| 153 | 154 |
| 154 // Disable optimization for the rest of the compilation pipeline. | 155 // Disable optimization for the rest of the compilation pipeline. |
| 155 void CompilationInfo::DisableOptimization() { | 156 void CompilationInfo::DisableOptimization() { |
| 156 bool is_optimizable_closure = | 157 bool is_optimizable_closure = |
| 157 FLAG_optimize_closures && | 158 FLAG_optimize_closures && |
| (...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1167 } | 1168 } |
| 1168 } | 1169 } |
| 1169 | 1170 |
| 1170 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 1171 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
| 1171 Handle<Script>(info->script()), | 1172 Handle<Script>(info->script()), |
| 1172 Handle<Code>(info->code()), | 1173 Handle<Code>(info->code()), |
| 1173 info)); | 1174 info)); |
| 1174 } | 1175 } |
| 1175 | 1176 |
| 1176 } } // namespace v8::internal | 1177 } } // namespace v8::internal |
| OLD | NEW |