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

Side by Side Diff: src/objects-inl.h

Issue 148153010: Synchronize with r15701. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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.cc ('k') | src/parser.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 } 1328 }
1329 1329
1330 return DONT_TRACK_ALLOCATION_SITE; 1330 return DONT_TRACK_ALLOCATION_SITE;
1331 } 1331 }
1332 1332
1333 1333
1334 AllocationSiteMode AllocationSite::GetMode(ElementsKind from, 1334 AllocationSiteMode AllocationSite::GetMode(ElementsKind from,
1335 ElementsKind to) { 1335 ElementsKind to) {
1336 if (FLAG_track_allocation_sites && 1336 if (FLAG_track_allocation_sites &&
1337 IsFastSmiElementsKind(from) && 1337 IsFastSmiElementsKind(from) &&
1338 (IsFastObjectElementsKind(to) || IsFastDoubleElementsKind(to))) { 1338 IsMoreGeneralElementsKindTransition(from, to)) {
1339 return TRACK_ALLOCATION_SITE; 1339 return TRACK_ALLOCATION_SITE;
1340 } 1340 }
1341 1341
1342 return DONT_TRACK_ALLOCATION_SITE; 1342 return DONT_TRACK_ALLOCATION_SITE;
1343 } 1343 }
1344 1344
1345 1345
1346 MaybeObject* JSObject::EnsureCanContainHeapObjectElements() { 1346 MaybeObject* JSObject::EnsureCanContainHeapObjectElements() {
1347 ValidateElements(); 1347 ValidateElements();
1348 ElementsKind elements_kind = map()->elements_kind(); 1348 ElementsKind elements_kind = map()->elements_kind();
(...skipping 2389 matching lines...) Expand 10 before | Expand all | Expand 10 after
3738 // objects. This is used in the debugger to determine whether or not 3738 // objects. This is used in the debugger to determine whether or not
3739 // a call to code object has been replaced with a debug break call. 3739 // a call to code object has been replaced with a debug break call.
3740 ASSERT(is_inline_cache_stub() || 3740 ASSERT(is_inline_cache_stub() ||
3741 result == UNINITIALIZED || 3741 result == UNINITIALIZED ||
3742 result == DEBUG_STUB); 3742 result == DEBUG_STUB);
3743 return result; 3743 return result;
3744 } 3744 }
3745 3745
3746 3746
3747 Code::ExtraICState Code::extra_ic_state() { 3747 Code::ExtraICState Code::extra_ic_state() {
3748 ASSERT(is_inline_cache_stub() || ic_state() == DEBUG_STUB); 3748 ASSERT((is_inline_cache_stub() && !needs_extended_extra_ic_state(kind()))
3749 || ic_state() == DEBUG_STUB);
3749 return ExtractExtraICStateFromFlags(flags()); 3750 return ExtractExtraICStateFromFlags(flags());
3750 } 3751 }
3751 3752
3752 3753
3753 Code::ExtraICState Code::extended_extra_ic_state() { 3754 Code::ExtraICState Code::extended_extra_ic_state() {
3754 ASSERT(is_inline_cache_stub() || ic_state() == DEBUG_STUB); 3755 ASSERT(is_inline_cache_stub() || ic_state() == DEBUG_STUB);
3755 ASSERT(needs_extended_extra_ic_state(kind())); 3756 ASSERT(needs_extended_extra_ic_state(kind()));
3756 return ExtractExtendedExtraICStateFromFlags(flags()); 3757 return ExtractExtendedExtraICStateFromFlags(flags());
3757 } 3758 }
3758 3759
(...skipping 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after
6182 #undef WRITE_UINT32_FIELD 6183 #undef WRITE_UINT32_FIELD
6183 #undef READ_SHORT_FIELD 6184 #undef READ_SHORT_FIELD
6184 #undef WRITE_SHORT_FIELD 6185 #undef WRITE_SHORT_FIELD
6185 #undef READ_BYTE_FIELD 6186 #undef READ_BYTE_FIELD
6186 #undef WRITE_BYTE_FIELD 6187 #undef WRITE_BYTE_FIELD
6187 6188
6188 6189
6189 } } // namespace v8::internal 6190 } } // namespace v8::internal
6190 6191
6191 #endif // V8_OBJECTS_INL_H_ 6192 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698