| 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 11659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11670 case kPropertyCellChangedGroup: | 11670 case kPropertyCellChangedGroup: |
| 11671 return "property-cell-changed"; | 11671 return "property-cell-changed"; |
| 11672 case kFieldTypeGroup: | 11672 case kFieldTypeGroup: |
| 11673 return "field-type"; | 11673 return "field-type"; |
| 11674 case kInitialMapChangedGroup: | 11674 case kInitialMapChangedGroup: |
| 11675 return "initial-map-changed"; | 11675 return "initial-map-changed"; |
| 11676 case kAllocationSiteTenuringChangedGroup: | 11676 case kAllocationSiteTenuringChangedGroup: |
| 11677 return "allocation-site-tenuring-changed"; | 11677 return "allocation-site-tenuring-changed"; |
| 11678 case kAllocationSiteTransitionChangedGroup: | 11678 case kAllocationSiteTransitionChangedGroup: |
| 11679 return "allocation-site-transition-changed"; | 11679 return "allocation-site-transition-changed"; |
| 11680 default: | 11680 case kGroupCount: |
| 11681 UNREACHABLE(); | 11681 break; // Enum count, not a valid group value. |
| 11682 return "?"; | |
| 11683 } | 11682 } |
| 11683 UNREACHABLE(); |
| 11684 return "?"; |
| 11684 } | 11685 } |
| 11685 | 11686 |
| 11686 | 11687 |
| 11687 Handle<Map> Map::TransitionToPrototype(Handle<Map> map, | 11688 Handle<Map> Map::TransitionToPrototype(Handle<Map> map, |
| 11688 Handle<Object> prototype) { | 11689 Handle<Object> prototype) { |
| 11689 Handle<Map> new_map = GetPrototypeTransition(map, prototype); | 11690 Handle<Map> new_map = GetPrototypeTransition(map, prototype); |
| 11690 if (new_map.is_null()) { | 11691 if (new_map.is_null()) { |
| 11691 new_map = Copy(map); | 11692 new_map = Copy(map); |
| 11692 PutPrototypeTransition(map, prototype, new_map); | 11693 PutPrototypeTransition(map, prototype, new_map); |
| 11693 new_map->set_prototype(*prototype); | 11694 new_map->set_prototype(*prototype); |
| (...skipping 4747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16441 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16442 #define ERROR_MESSAGES_TEXTS(C, T) T, |
| 16442 static const char* error_messages_[] = { | 16443 static const char* error_messages_[] = { |
| 16443 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16444 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
| 16444 }; | 16445 }; |
| 16445 #undef ERROR_MESSAGES_TEXTS | 16446 #undef ERROR_MESSAGES_TEXTS |
| 16446 return error_messages_[reason]; | 16447 return error_messages_[reason]; |
| 16447 } | 16448 } |
| 16448 | 16449 |
| 16449 | 16450 |
| 16450 } } // namespace v8::internal | 16451 } } // namespace v8::internal |
| OLD | NEW |