| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
| 8 #include "src/allocation-site-scopes.h" | 8 #include "src/allocation-site-scopes.h" |
| 9 #include "src/api.h" | 9 #include "src/api.h" |
| 10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
| (...skipping 11155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11166 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) | 11166 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) |
| 11167 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); | 11167 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); |
| 11168 for (RelocIterator it(this, mask); !it.done(); it.next()) { | 11168 for (RelocIterator it(this, mask); !it.done(); it.next()) { |
| 11169 RelocInfo* info = it.rinfo(); | 11169 RelocInfo* info = it.rinfo(); |
| 11170 if (info->rmode() == RelocInfo::COMMENT) { | 11170 if (info->rmode() == RelocInfo::COMMENT) { |
| 11171 last_comment = reinterpret_cast<const char*>(info->data()); | 11171 last_comment = reinterpret_cast<const char*>(info->data()); |
| 11172 } else if (last_comment != NULL) { | 11172 } else if (last_comment != NULL) { |
| 11173 if ((bailout_id == Deoptimizer::GetDeoptimizationId( | 11173 if ((bailout_id == Deoptimizer::GetDeoptimizationId( |
| 11174 GetIsolate(), info->target_address(), Deoptimizer::EAGER)) || | 11174 GetIsolate(), info->target_address(), Deoptimizer::EAGER)) || |
| 11175 (bailout_id == Deoptimizer::GetDeoptimizationId( | 11175 (bailout_id == Deoptimizer::GetDeoptimizationId( |
| 11176 GetIsolate(), info->target_address(), Deoptimizer::SOFT))) { | 11176 GetIsolate(), info->target_address(), Deoptimizer::SOFT)) || |
| 11177 (bailout_id == Deoptimizer::GetDeoptimizationId( |
| 11178 GetIsolate(), info->target_address(), Deoptimizer::LAZY))) { |
| 11177 CHECK(RelocInfo::IsRuntimeEntry(info->rmode())); | 11179 CHECK(RelocInfo::IsRuntimeEntry(info->rmode())); |
| 11178 PrintF(out, " %s\n", last_comment); | 11180 PrintF(out, " %s\n", last_comment); |
| 11179 return; | 11181 return; |
| 11180 } | 11182 } |
| 11181 } | 11183 } |
| 11182 } | 11184 } |
| 11183 } | 11185 } |
| 11184 | 11186 |
| 11185 | 11187 |
| 11186 bool Code::CanDeoptAt(Address pc) { | 11188 bool Code::CanDeoptAt(Address pc) { |
| (...skipping 5789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16976 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16978 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 16977 static const char* error_messages_[] = { | 16979 static const char* error_messages_[] = { |
| 16978 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16980 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 16979 }; | 16981 }; |
| 16980 #undef ERROR_MESSAGES_TEXTS | 16982 #undef ERROR_MESSAGES_TEXTS |
| 16981 return error_messages_[reason]; | 16983 return error_messages_[reason]; |
| 16982 } | 16984 } |
| 16983 | 16985 |
| 16984 | 16986 |
| 16985 } } // namespace v8::internal | 16987 } } // namespace v8::internal |
| OLD | NEW |