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

Side by Side Diff: src/objects.cc

Issue 195983002: Reland "Pass a Code object to Assembler::(set_)target_address_at for use by ool constant pool." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix ia32 and x64 bug/ Created 6 years, 9 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/ic-inl.h ('k') | src/objects-visiting-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 10617 matching lines...) Expand 10 before | Expand all | Expand 10 after
10628 10628
10629 void Code::ClearInlineCaches(Code::Kind* kind) { 10629 void Code::ClearInlineCaches(Code::Kind* kind) {
10630 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) | 10630 int mask = RelocInfo::ModeMask(RelocInfo::CODE_TARGET) |
10631 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) | 10631 RelocInfo::ModeMask(RelocInfo::CONSTRUCT_CALL) |
10632 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID); 10632 RelocInfo::ModeMask(RelocInfo::CODE_TARGET_WITH_ID);
10633 for (RelocIterator it(this, mask); !it.done(); it.next()) { 10633 for (RelocIterator it(this, mask); !it.done(); it.next()) {
10634 RelocInfo* info = it.rinfo(); 10634 RelocInfo* info = it.rinfo();
10635 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); 10635 Code* target(Code::GetCodeFromTargetAddress(info->target_address()));
10636 if (target->is_inline_cache_stub()) { 10636 if (target->is_inline_cache_stub()) {
10637 if (kind == NULL || *kind == target->kind()) { 10637 if (kind == NULL || *kind == target->kind()) {
10638 IC::Clear(this->GetIsolate(), info->pc()); 10638 IC::Clear(this->GetIsolate(), info->pc(),
10639 info->host()->constant_pool());
10639 } 10640 }
10640 } 10641 }
10641 } 10642 }
10642 } 10643 }
10643 10644
10644 10645
10645 void SharedFunctionInfo::ClearTypeFeedbackInfo(Heap* heap) { 10646 void SharedFunctionInfo::ClearTypeFeedbackInfo(Heap* heap) {
10646 FixedArray* vector = feedback_vector(); 10647 FixedArray* vector = feedback_vector();
10647 for (int i = 0; i < vector->length(); i++) { 10648 for (int i = 0; i < vector->length(); i++) {
10648 Object* obj = vector->get(i); 10649 Object* obj = vector->get(i);
(...skipping 5832 matching lines...) Expand 10 before | Expand all | Expand 10 after
16481 #define ERROR_MESSAGES_TEXTS(C, T) T, 16482 #define ERROR_MESSAGES_TEXTS(C, T) T,
16482 static const char* error_messages_[] = { 16483 static const char* error_messages_[] = {
16483 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16484 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16484 }; 16485 };
16485 #undef ERROR_MESSAGES_TEXTS 16486 #undef ERROR_MESSAGES_TEXTS
16486 return error_messages_[reason]; 16487 return error_messages_[reason];
16487 } 16488 }
16488 16489
16489 16490
16490 } } // namespace v8::internal 16491 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic-inl.h ('k') | src/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698