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

Side by Side Diff: src/heap.cc

Issue 18749004: Rename AllocationSite::payload to AllocationSite::transition_info (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
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 4529 matching lines...) Expand 10 before | Expand all | Expand 10 after
4540 { MaybeObject* maybe_initial_map = AllocateInitialMap(constructor); 4540 { MaybeObject* maybe_initial_map = AllocateInitialMap(constructor);
4541 if (!maybe_initial_map->ToObject(&initial_map)) return maybe_initial_map; 4541 if (!maybe_initial_map->ToObject(&initial_map)) return maybe_initial_map;
4542 } 4542 }
4543 constructor->set_initial_map(Map::cast(initial_map)); 4543 constructor->set_initial_map(Map::cast(initial_map));
4544 Map::cast(initial_map)->set_constructor(constructor); 4544 Map::cast(initial_map)->set_constructor(constructor);
4545 } 4545 }
4546 // Allocate the object based on the constructors initial map, or the payload 4546 // Allocate the object based on the constructors initial map, or the payload
4547 // advice 4547 // advice
4548 Map* initial_map = constructor->initial_map(); 4548 Map* initial_map = constructor->initial_map();
4549 4549
4550 Smi* smi = Smi::cast(allocation_site->payload()); 4550 Smi* smi = Smi::cast(allocation_site->transition_info());
4551 ElementsKind to_kind = static_cast<ElementsKind>(smi->value()); 4551 ElementsKind to_kind = static_cast<ElementsKind>(smi->value());
4552 AllocationSiteMode mode = TRACK_ALLOCATION_SITE; 4552 AllocationSiteMode mode = TRACK_ALLOCATION_SITE;
4553 if (to_kind != initial_map->elements_kind()) { 4553 if (to_kind != initial_map->elements_kind()) {
4554 MaybeObject* maybe_new_map = initial_map->AsElementsKind(to_kind); 4554 MaybeObject* maybe_new_map = initial_map->AsElementsKind(to_kind);
4555 if (!maybe_new_map->To(&initial_map)) return maybe_new_map; 4555 if (!maybe_new_map->To(&initial_map)) return maybe_new_map;
4556 // Possibly alter the mode, since we found an updated elements kind 4556 // Possibly alter the mode, since we found an updated elements kind
4557 // in the type info cell. 4557 // in the type info cell.
4558 mode = AllocationSite::GetMode(to_kind); 4558 mode = AllocationSite::GetMode(to_kind);
4559 } 4559 }
4560 4560
(...skipping 3573 matching lines...) Expand 10 before | Expand all | Expand 10 after
8134 if (FLAG_parallel_recompilation) { 8134 if (FLAG_parallel_recompilation) {
8135 heap_->relocation_mutex_->Lock(); 8135 heap_->relocation_mutex_->Lock();
8136 #ifdef DEBUG 8136 #ifdef DEBUG
8137 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8137 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8138 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8138 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8139 #endif // DEBUG 8139 #endif // DEBUG
8140 } 8140 }
8141 } 8141 }
8142 8142
8143 } } // namespace v8::internal 8143 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/hydrogen.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698