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

Side by Side Diff: src/objects.cc

Issue 423093003: Remove unnecessary ";" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
« no previous file with comments | « no previous file | 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 2441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 TransitionArray* transitions = this->transitions(); 2452 TransitionArray* transitions = this->transitions();
2453 for (int i = 0; i < transitions->number_of_transitions(); ++i) { 2453 for (int i = 0; i < transitions->number_of_transitions(); ++i) {
2454 transitions->GetTarget(i)->UpdateFieldType(descriptor, name, new_type); 2454 transitions->GetTarget(i)->UpdateFieldType(descriptor, name, new_type);
2455 } 2455 }
2456 } 2456 }
2457 // Skip if already updated the shared descriptor. 2457 // Skip if already updated the shared descriptor.
2458 if (instance_descriptors()->GetFieldType(descriptor) == *new_type) return; 2458 if (instance_descriptors()->GetFieldType(descriptor) == *new_type) return;
2459 FieldDescriptor d(name, instance_descriptors()->GetFieldIndex(descriptor), 2459 FieldDescriptor d(name, instance_descriptors()->GetFieldIndex(descriptor),
2460 new_type, details.attributes(), details.representation()); 2460 new_type, details.attributes(), details.representation());
2461 instance_descriptors()->Replace(descriptor, &d); 2461 instance_descriptors()->Replace(descriptor, &d);
2462 ;
2463 } 2462 }
2464 2463
2465 2464
2466 // static 2465 // static
2467 Handle<HeapType> Map::GeneralizeFieldType(Handle<HeapType> type1, 2466 Handle<HeapType> Map::GeneralizeFieldType(Handle<HeapType> type1,
2468 Handle<HeapType> type2, 2467 Handle<HeapType> type2,
2469 Isolate* isolate) { 2468 Isolate* isolate) {
2470 static const int kMaxClassesPerFieldType = 5; 2469 static const int kMaxClassesPerFieldType = 5;
2471 if (type1->NowIs(type2)) return type2; 2470 if (type1->NowIs(type2)) return type2;
2472 if (type2->NowIs(type1)) return type1; 2471 if (type2->NowIs(type1)) return type1;
(...skipping 14513 matching lines...) Expand 10 before | Expand all | Expand 10 after
16986 #define ERROR_MESSAGES_TEXTS(C, T) T, 16985 #define ERROR_MESSAGES_TEXTS(C, T) T,
16987 static const char* error_messages_[] = { 16986 static const char* error_messages_[] = {
16988 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16987 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16989 }; 16988 };
16990 #undef ERROR_MESSAGES_TEXTS 16989 #undef ERROR_MESSAGES_TEXTS
16991 return error_messages_[reason]; 16990 return error_messages_[reason];
16992 } 16991 }
16993 16992
16994 16993
16995 } } // namespace v8::internal 16994 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698