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

Side by Side Diff: src/objects.cc

Issue 122463004: Revert "Fix compilation with C++11." and "Allocation site support for monomorphic StringAdds in Bin… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 // 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 10459 matching lines...) Expand 10 before | Expand all | Expand 10 after
10470 if (object->IsHeapObject()) { 10470 if (object->IsHeapObject()) {
10471 if (HeapObject::cast(object)->map() == match_map) { 10471 if (HeapObject::cast(object)->map() == match_map) {
10472 if (--n == 0) return object; 10472 if (--n == 0) return object;
10473 } 10473 }
10474 } 10474 }
10475 } 10475 }
10476 return NULL; 10476 return NULL;
10477 } 10477 }
10478 10478
10479 10479
10480 AllocationSite* Code::FindFirstAllocationSite() {
10481 Object* result = FindNthObject(1, GetHeap()->allocation_site_map());
10482 return (result != NULL) ? AllocationSite::cast(result) : NULL;
10483 }
10484
10485
10486 Map* Code::FindFirstMap() { 10480 Map* Code::FindFirstMap() {
10487 Object* result = FindNthObject(1, GetHeap()->meta_map()); 10481 Object* result = FindNthObject(1, GetHeap()->meta_map());
10488 return (result != NULL) ? Map::cast(result) : NULL; 10482 return (result != NULL) ? Map::cast(result) : NULL;
10489 } 10483 }
10490 10484
10491 10485
10492 void Code::ReplaceNthObject(int n, 10486 void Code::ReplaceNthObject(int n,
10493 Map* match_map, 10487 Map* match_map,
10494 Object* replace_with) { 10488 Object* replace_with) {
10495 ASSERT(is_inline_cache_stub() || is_handler()); 10489 ASSERT(is_inline_cache_stub() || is_handler());
(...skipping 6136 matching lines...) Expand 10 before | Expand all | Expand 10 after
16632 #define ERROR_MESSAGES_TEXTS(C, T) T, 16626 #define ERROR_MESSAGES_TEXTS(C, T) T,
16633 static const char* error_messages_[] = { 16627 static const char* error_messages_[] = {
16634 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16628 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16635 }; 16629 };
16636 #undef ERROR_MESSAGES_TEXTS 16630 #undef ERROR_MESSAGES_TEXTS
16637 return error_messages_[reason]; 16631 return error_messages_[reason];
16638 } 16632 }
16639 16633
16640 16634
16641 } } // namespace v8::internal 16635 } } // 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