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

Side by Side Diff: src/objects.cc

Issue 14738009: Ensure that soft-deopts don't count against opt_count (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Implement x64 and ARM, review feedback Created 7 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
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 10129 matching lines...) Expand 10 before | Expand all | Expand 10 after
10140 10140
10141 10141
10142 void Code::PrintDeoptLocation(int bailout_id) { 10142 void Code::PrintDeoptLocation(int bailout_id) {
10143 const char* last_comment = NULL; 10143 const char* last_comment = NULL;
10144 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) 10144 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT)
10145 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); 10145 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY);
10146 for (RelocIterator it(this, mask); !it.done(); it.next()) { 10146 for (RelocIterator it(this, mask); !it.done(); it.next()) {
10147 RelocInfo* info = it.rinfo(); 10147 RelocInfo* info = it.rinfo();
10148 if (info->rmode() == RelocInfo::COMMENT) { 10148 if (info->rmode() == RelocInfo::COMMENT) {
10149 last_comment = reinterpret_cast<const char*>(info->data()); 10149 last_comment = reinterpret_cast<const char*>(info->data());
10150 } else if (last_comment != NULL && 10150 } else if (last_comment != NULL) {
10151 bailout_id == Deoptimizer::GetDeoptimizationId( 10151 if ((bailout_id == Deoptimizer::GetDeoptimizationId(
10152 GetIsolate(), info->target_address(), Deoptimizer::EAGER)) { 10152 GetIsolate(), info->target_address(), Deoptimizer::EAGER)) ||
10153 CHECK(RelocInfo::IsRuntimeEntry(info->rmode())); 10153 (bailout_id == Deoptimizer::GetDeoptimizationId(
10154 PrintF(" %s\n", last_comment); 10154 GetIsolate(), info->target_address(), Deoptimizer::SOFT))) {
10155 return; 10155 CHECK(RelocInfo::IsRuntimeEntry(info->rmode()));
10156 PrintF(" %s\n", last_comment);
10157 return;
10158 }
10156 } 10159 }
10157 } 10160 }
10158 } 10161 }
10159 10162
10160 10163
10161 // Identify kind of code. 10164 // Identify kind of code.
10162 const char* Code::Kind2String(Kind kind) { 10165 const char* Code::Kind2String(Kind kind) {
10163 switch (kind) { 10166 switch (kind) {
10164 case FUNCTION: return "FUNCTION"; 10167 case FUNCTION: return "FUNCTION";
10165 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; 10168 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION";
(...skipping 5223 matching lines...) Expand 10 before | Expand all | Expand 10 after
15389 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 15392 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
15390 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 15393 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
15391 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 15394 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
15392 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 15395 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
15393 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 15396 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
15394 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 15397 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
15395 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 15398 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
15396 } 15399 }
15397 15400
15398 } } // namespace v8::internal 15401 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698