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/objects.cc

Issue 10332010: Implement ClearFunctionTypeFeedback for test cases. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 7 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/runtime.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 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 8302 matching lines...) Expand 10 before | Expand all | Expand 10 after
8313 for (RelocIterator it(this, mask); !it.done(); it.next()) { 8313 for (RelocIterator it(this, mask); !it.done(); it.next()) {
8314 RelocInfo* info = it.rinfo(); 8314 RelocInfo* info = it.rinfo();
8315 Code* target(Code::GetCodeFromTargetAddress(info->target_address())); 8315 Code* target(Code::GetCodeFromTargetAddress(info->target_address()));
8316 if (target->is_inline_cache_stub()) { 8316 if (target->is_inline_cache_stub()) {
8317 IC::Clear(info->pc()); 8317 IC::Clear(info->pc());
8318 } 8318 }
8319 } 8319 }
8320 } 8320 }
8321 8321
8322 8322
8323 void Code::ClearTypeFeedbackCells(Heap* heap) {
8324 Object* raw_info = type_feedback_info();
8325 if (raw_info->IsTypeFeedbackInfo()) {
8326 TypeFeedbackCells* type_feedback_cells =
8327 TypeFeedbackInfo::cast(raw_info)->type_feedback_cells();
8328 for (int i = 0; i < type_feedback_cells->CellCount(); i++) {
8329 ASSERT(type_feedback_cells->AstId(i)->IsSmi());
8330 JSGlobalPropertyCell* cell = type_feedback_cells->Cell(i);
8331 cell->set_value(TypeFeedbackCells::RawUninitializedSentinel(heap));
8332 }
8333 }
8334 }
8335
8336
8323 #ifdef ENABLE_DISASSEMBLER 8337 #ifdef ENABLE_DISASSEMBLER
8324 8338
8325 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) { 8339 void DeoptimizationInputData::DeoptimizationInputDataPrint(FILE* out) {
8326 disasm::NameConverter converter; 8340 disasm::NameConverter converter;
8327 int deopt_count = DeoptCount(); 8341 int deopt_count = DeoptCount();
8328 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count); 8342 PrintF(out, "Deoptimization Input Data (deopt points = %d)\n", deopt_count);
8329 if (0 == deopt_count) return; 8343 if (0 == deopt_count) return;
8330 8344
8331 PrintF(out, "%6s %6s %6s %6s %12s\n", "index", "ast id", "argc", "pc", 8345 PrintF(out, "%6s %6s %6s %6s %12s\n", "index", "ast id", "argc", "pc",
8332 FLAG_print_code_verbose ? "commands" : ""); 8346 FLAG_print_code_verbose ? "commands" : "");
(...skipping 4816 matching lines...) Expand 10 before | Expand all | Expand 10 after
13149 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 13163 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
13150 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 13164 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
13151 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 13165 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
13152 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 13166 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
13153 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 13167 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
13154 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 13168 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
13155 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 13169 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
13156 } 13170 }
13157 13171
13158 } } // namespace v8::internal 13172 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698