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

Side by Side Diff: src/objects.cc

Issue 385163005: Some fixes to avoid breakages when enabling out-of-line constant pools. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add an oxford comma. Created 6 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/spaces.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/allocation-site-scopes.h" 8 #include "src/allocation-site-scopes.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/arguments.h" 10 #include "src/arguments.h"
(...skipping 10691 matching lines...) Expand 10 before | Expand all | Expand 10 after
10702 } 10702 }
10703 10703
10704 10704
10705 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { 10705 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) {
10706 Address p = rinfo->target_reference(); 10706 Address p = rinfo->target_reference();
10707 VisitExternalReference(&p); 10707 VisitExternalReference(&p);
10708 } 10708 }
10709 10709
10710 10710
10711 void Code::InvalidateRelocation() { 10711 void Code::InvalidateRelocation() {
10712 InvalidateEmbeddedObjects();
10712 set_relocation_info(GetHeap()->empty_byte_array()); 10713 set_relocation_info(GetHeap()->empty_byte_array());
10713 } 10714 }
10714 10715
10715 10716
10716 void Code::InvalidateEmbeddedObjects() { 10717 void Code::InvalidateEmbeddedObjects() {
10717 Object* undefined = GetHeap()->undefined_value(); 10718 Object* undefined = GetHeap()->undefined_value();
10718 Cell* undefined_cell = GetHeap()->undefined_cell(); 10719 Cell* undefined_cell = GetHeap()->undefined_cell();
10719 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT) | 10720 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT) |
10720 RelocInfo::ModeMask(RelocInfo::CELL); 10721 RelocInfo::ModeMask(RelocInfo::CELL);
10721 for (RelocIterator it(this, mode_mask); !it.done(); it.next()) { 10722 for (RelocIterator it(this, mode_mask); !it.done(); it.next()) {
(...skipping 6278 matching lines...) Expand 10 before | Expand all | Expand 10 after
17000 #define ERROR_MESSAGES_TEXTS(C, T) T, 17001 #define ERROR_MESSAGES_TEXTS(C, T) T,
17001 static const char* error_messages_[] = { 17002 static const char* error_messages_[] = {
17002 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 17003 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
17003 }; 17004 };
17004 #undef ERROR_MESSAGES_TEXTS 17005 #undef ERROR_MESSAGES_TEXTS
17005 return error_messages_[reason]; 17006 return error_messages_[reason];
17006 } 17007 }
17007 17008
17008 17009
17009 } } // namespace v8::internal 17010 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698