Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: src/objects.cc

Issue 488993004: Move kGroupCount out of DependencyGroup enum. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: make it static const int Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/objects.h ('K') | « src/objects.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11857 matching lines...) Expand 10 before | Expand all | Expand 10 after
11868 case kPropertyCellChangedGroup: 11868 case kPropertyCellChangedGroup:
11869 return "property-cell-changed"; 11869 return "property-cell-changed";
11870 case kFieldTypeGroup: 11870 case kFieldTypeGroup:
11871 return "field-type"; 11871 return "field-type";
11872 case kInitialMapChangedGroup: 11872 case kInitialMapChangedGroup:
11873 return "initial-map-changed"; 11873 return "initial-map-changed";
11874 case kAllocationSiteTenuringChangedGroup: 11874 case kAllocationSiteTenuringChangedGroup:
11875 return "allocation-site-tenuring-changed"; 11875 return "allocation-site-tenuring-changed";
11876 case kAllocationSiteTransitionChangedGroup: 11876 case kAllocationSiteTransitionChangedGroup:
11877 return "allocation-site-transition-changed"; 11877 return "allocation-site-transition-changed";
11878 default:
11879 UNREACHABLE();
11880 return "?";
11881 } 11878 }
11879 UNREACHABLE();
11880 return "?";
11882 } 11881 }
11883 11882
11884 11883
11885 Handle<Map> Map::TransitionToPrototype(Handle<Map> map, 11884 Handle<Map> Map::TransitionToPrototype(Handle<Map> map,
11886 Handle<Object> prototype) { 11885 Handle<Object> prototype) {
11887 Handle<Map> new_map = GetPrototypeTransition(map, prototype); 11886 Handle<Map> new_map = GetPrototypeTransition(map, prototype);
11888 if (new_map.is_null()) { 11887 if (new_map.is_null()) {
11889 new_map = Copy(map); 11888 new_map = Copy(map);
11890 PutPrototypeTransition(map, prototype, new_map); 11889 PutPrototypeTransition(map, prototype, new_map);
11891 new_map->set_prototype(*prototype); 11890 new_map->set_prototype(*prototype);
(...skipping 4767 matching lines...) Expand 10 before | Expand all | Expand 10 after
16659 #define ERROR_MESSAGES_TEXTS(C, T) T, 16658 #define ERROR_MESSAGES_TEXTS(C, T) T,
16660 static const char* error_messages_[] = { 16659 static const char* error_messages_[] = {
16661 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16660 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16662 }; 16661 };
16663 #undef ERROR_MESSAGES_TEXTS 16662 #undef ERROR_MESSAGES_TEXTS
16664 return error_messages_[reason]; 16663 return error_messages_[reason];
16665 } 16664 }
16666 16665
16667 16666
16668 } } // namespace v8::internal 16667 } } // namespace v8::internal
OLDNEW
« src/objects.h ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698