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

Side by Side Diff: src/objects.cc

Issue 8539011: ARM: Implement runtime function for array literal transitions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 1 month 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 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 9479 matching lines...) Expand 10 before | Expand all | Expand 10 after
9490 if (from_kind == FAST_SMI_ONLY_ELEMENTS) { 9490 if (from_kind == FAST_SMI_ONLY_ELEMENTS) {
9491 if (to_kind == FAST_DOUBLE_ELEMENTS) { 9491 if (to_kind == FAST_DOUBLE_ELEMENTS) {
9492 MaybeObject* maybe_result = 9492 MaybeObject* maybe_result =
9493 SetFastDoubleElementsCapacityAndLength(capacity, length); 9493 SetFastDoubleElementsCapacityAndLength(capacity, length);
9494 if (maybe_result->IsFailure()) return maybe_result; 9494 if (maybe_result->IsFailure()) return maybe_result;
9495 return this; 9495 return this;
9496 } else if (to_kind == FAST_ELEMENTS) { 9496 } else if (to_kind == FAST_ELEMENTS) {
9497 MaybeObject* maybe_new_map = GetElementsTransitionMap(FAST_ELEMENTS); 9497 MaybeObject* maybe_new_map = GetElementsTransitionMap(FAST_ELEMENTS);
9498 Map* new_map; 9498 Map* new_map;
9499 if (!maybe_new_map->To(&new_map)) return maybe_new_map; 9499 if (!maybe_new_map->To(&new_map)) return maybe_new_map;
9500 if (FLAG_trace_elements_transitions) {
9501 PrintElementsTransition(stdout, from_kind, elms, FAST_ELEMENTS, elms);
9502 }
9500 set_map(new_map); 9503 set_map(new_map);
9501 return this; 9504 return this;
9502 } 9505 }
9503 } else if (from_kind == FAST_DOUBLE_ELEMENTS && to_kind == FAST_ELEMENTS) { 9506 } else if (from_kind == FAST_DOUBLE_ELEMENTS && to_kind == FAST_ELEMENTS) {
9504 MaybeObject* maybe_result = SetFastElementsCapacityAndLength( 9507 MaybeObject* maybe_result = SetFastElementsCapacityAndLength(
9505 capacity, length, kDontAllowSmiOnlyElements); 9508 capacity, length, kDontAllowSmiOnlyElements);
9506 if (maybe_result->IsFailure()) return maybe_result; 9509 if (maybe_result->IsFailure()) return maybe_result;
9507 return this; 9510 return this;
9508 } 9511 }
9509 // This method should never be called for any other case than the ones 9512 // This method should never be called for any other case than the ones
(...skipping 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after
12515 if (break_point_objects()->IsUndefined()) return 0; 12518 if (break_point_objects()->IsUndefined()) return 0;
12516 // Single break point. 12519 // Single break point.
12517 if (!break_point_objects()->IsFixedArray()) return 1; 12520 if (!break_point_objects()->IsFixedArray()) return 1;
12518 // Multiple break points. 12521 // Multiple break points.
12519 return FixedArray::cast(break_point_objects())->length(); 12522 return FixedArray::cast(break_point_objects())->length();
12520 } 12523 }
12521 #endif // ENABLE_DEBUGGER_SUPPORT 12524 #endif // ENABLE_DEBUGGER_SUPPORT
12522 12525
12523 12526
12524 } } // namespace v8::internal 12527 } } // 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