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

Side by Side Diff: src/objects.cc

Issue 272203002: Reland and fix r21225 and r21226 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | « src/objects.h ('k') | src/objects-inl.h » ('j') | 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 "v8.h" 5 #include "v8.h"
6 6
7 #include "accessors.h" 7 #include "accessors.h"
8 #include "allocation-site-scopes.h" 8 #include "allocation-site-scopes.h"
9 #include "api.h" 9 #include "api.h"
10 #include "arguments.h" 10 #include "arguments.h"
(...skipping 9900 matching lines...) Expand 10 before | Expand all | Expand 10 after
9911 } 9911 }
9912 9912
9913 9913
9914 static bool CheckEquivalent(Map* first, Map* second) { 9914 static bool CheckEquivalent(Map* first, Map* second) {
9915 return 9915 return
9916 first->constructor() == second->constructor() && 9916 first->constructor() == second->constructor() &&
9917 first->prototype() == second->prototype() && 9917 first->prototype() == second->prototype() &&
9918 first->instance_type() == second->instance_type() && 9918 first->instance_type() == second->instance_type() &&
9919 first->bit_field() == second->bit_field() && 9919 first->bit_field() == second->bit_field() &&
9920 first->bit_field2() == second->bit_field2() && 9920 first->bit_field2() == second->bit_field2() &&
9921 first->is_observed() == second->is_observed() && 9921 first->is_frozen() == second->is_frozen() &&
9922 first->function_with_prototype() == second->function_with_prototype(); 9922 first->has_instance_call_handler() == second->has_instance_call_handler();
9923 } 9923 }
9924 9924
9925 9925
9926 bool Map::EquivalentToForTransition(Map* other) { 9926 bool Map::EquivalentToForTransition(Map* other) {
9927 return CheckEquivalent(this, other); 9927 return CheckEquivalent(this, other);
9928 } 9928 }
9929 9929
9930 9930
9931 bool Map::EquivalentToForNormalization(Map* other, 9931 bool Map::EquivalentToForNormalization(Map* other,
9932 PropertyNormalizationMode mode) { 9932 PropertyNormalizationMode mode) {
(...skipping 7343 matching lines...) Expand 10 before | Expand all | Expand 10 after
17276 #define ERROR_MESSAGES_TEXTS(C, T) T, 17276 #define ERROR_MESSAGES_TEXTS(C, T) T,
17277 static const char* error_messages_[] = { 17277 static const char* error_messages_[] = {
17278 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 17278 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
17279 }; 17279 };
17280 #undef ERROR_MESSAGES_TEXTS 17280 #undef ERROR_MESSAGES_TEXTS
17281 return error_messages_[reason]; 17281 return error_messages_[reason];
17282 } 17282 }
17283 17283
17284 17284
17285 } } // namespace v8::internal 17285 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698