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

Side by Side Diff: src/objects.cc

Issue 128303002: Merged r18000, r18013, r18298, r18319 into 3.22 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.22
Patch Set: Fix mips 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/version.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 // 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 10314 matching lines...) Expand 10 before | Expand all | Expand 10 after
10325 Address* p = rinfo->target_reference_address(); 10325 Address* p = rinfo->target_reference_address();
10326 VisitExternalReference(p); 10326 VisitExternalReference(p);
10327 } 10327 }
10328 10328
10329 10329
10330 void Code::InvalidateRelocation() { 10330 void Code::InvalidateRelocation() {
10331 set_relocation_info(GetHeap()->empty_byte_array()); 10331 set_relocation_info(GetHeap()->empty_byte_array());
10332 } 10332 }
10333 10333
10334 10334
10335 void Code::InvalidateEmbeddedObjects() {
10336 Object* undefined = GetHeap()->undefined_value();
10337 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT);
10338 for (RelocIterator it(this, mode_mask); !it.done(); it.next()) {
10339 RelocInfo::Mode mode = it.rinfo()->rmode();
10340 if (mode == RelocInfo::EMBEDDED_OBJECT) {
10341 it.rinfo()->set_target_object(undefined, SKIP_WRITE_BARRIER);
10342 }
10343 }
10344 }
10345
10346
10335 void Code::Relocate(intptr_t delta) { 10347 void Code::Relocate(intptr_t delta) {
10336 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { 10348 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) {
10337 it.rinfo()->apply(delta); 10349 it.rinfo()->apply(delta);
10338 } 10350 }
10339 CPU::FlushICache(instruction_start(), instruction_size()); 10351 CPU::FlushICache(instruction_start(), instruction_size());
10340 } 10352 }
10341 10353
10342 10354
10343 void Code::CopyFrom(const CodeDesc& desc) { 10355 void Code::CopyFrom(const CodeDesc& desc) {
10344 ASSERT(Marking::Color(this) == Marking::WHITE_OBJECT); 10356 ASSERT(Marking::Color(this) == Marking::WHITE_OBJECT);
(...skipping 6049 matching lines...) Expand 10 before | Expand all | Expand 10 after
16394 #define ERROR_MESSAGES_TEXTS(C, T) T, 16406 #define ERROR_MESSAGES_TEXTS(C, T) T,
16395 static const char* error_messages_[] = { 16407 static const char* error_messages_[] = {
16396 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16408 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16397 }; 16409 };
16398 #undef ERROR_MESSAGES_TEXTS 16410 #undef ERROR_MESSAGES_TEXTS
16399 return error_messages_[reason]; 16411 return error_messages_[reason];
16400 } 16412 }
16401 16413
16402 16414
16403 } } // namespace v8::internal 16415 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698