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

Side by Side Diff: src/objects.cc

Issue 7004014: Add case for EXTERNAL_ARRAY_TRANSITION to JSObject::NormalizeProperties (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 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 | « 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2562 matching lines...) Expand 10 before | Expand all | Expand 10 after
2573 dictionary->Add(descs->GetKey(i), value, d); 2573 dictionary->Add(descs->GetKey(i), value, d);
2574 if (!maybe_result->ToObject(&result)) return maybe_result; 2574 if (!maybe_result->ToObject(&result)) return maybe_result;
2575 } 2575 }
2576 dictionary = StringDictionary::cast(result); 2576 dictionary = StringDictionary::cast(result);
2577 break; 2577 break;
2578 } 2578 }
2579 case MAP_TRANSITION: 2579 case MAP_TRANSITION:
2580 case CONSTANT_TRANSITION: 2580 case CONSTANT_TRANSITION:
2581 case NULL_DESCRIPTOR: 2581 case NULL_DESCRIPTOR:
2582 case INTERCEPTOR: 2582 case INTERCEPTOR:
2583 case EXTERNAL_ARRAY_TRANSITION:
2583 break; 2584 break;
2584 default: 2585 default:
2585 UNREACHABLE(); 2586 UNREACHABLE();
2586 } 2587 }
2587 } 2588 }
2588 2589
2589 Heap* current_heap = map_of_this->heap(); 2590 Heap* current_heap = map_of_this->heap();
2590 2591
2591 // Copy the next enumeration index from instance descriptor. 2592 // Copy the next enumeration index from instance descriptor.
2592 int index = map_of_this->instance_descriptors()->NextEnumerationIndex(); 2593 int index = map_of_this->instance_descriptors()->NextEnumerationIndex();
(...skipping 7828 matching lines...) Expand 10 before | Expand all | Expand 10 after
10421 if (break_point_objects()->IsUndefined()) return 0; 10422 if (break_point_objects()->IsUndefined()) return 0;
10422 // Single beak point. 10423 // Single beak point.
10423 if (!break_point_objects()->IsFixedArray()) return 1; 10424 if (!break_point_objects()->IsFixedArray()) return 1;
10424 // Multiple break points. 10425 // Multiple break points.
10425 return FixedArray::cast(break_point_objects())->length(); 10426 return FixedArray::cast(break_point_objects())->length();
10426 } 10427 }
10427 #endif 10428 #endif
10428 10429
10429 10430
10430 } } // namespace v8::internal 10431 } } // 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