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

Side by Side Diff: src/objects.cc

Issue 12702005: Use IsRuntimeEntry for RUNTIME_ENTRY comparison (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 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/mips/assembler-mips-inl.h ('k') | no next file » | 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 9092 matching lines...) Expand 10 before | Expand all | Expand 10 after
9103 const char* last_comment = NULL; 9103 const char* last_comment = NULL;
9104 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT) 9104 int mask = RelocInfo::ModeMask(RelocInfo::COMMENT)
9105 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY); 9105 | RelocInfo::ModeMask(RelocInfo::RUNTIME_ENTRY);
9106 for (RelocIterator it(this, mask); !it.done(); it.next()) { 9106 for (RelocIterator it(this, mask); !it.done(); it.next()) {
9107 RelocInfo* info = it.rinfo(); 9107 RelocInfo* info = it.rinfo();
9108 if (info->rmode() == RelocInfo::COMMENT) { 9108 if (info->rmode() == RelocInfo::COMMENT) {
9109 last_comment = reinterpret_cast<const char*>(info->data()); 9109 last_comment = reinterpret_cast<const char*>(info->data());
9110 } else if (last_comment != NULL && 9110 } else if (last_comment != NULL &&
9111 bailout_id == Deoptimizer::GetDeoptimizationId( 9111 bailout_id == Deoptimizer::GetDeoptimizationId(
9112 info->target_address(), Deoptimizer::EAGER)) { 9112 info->target_address(), Deoptimizer::EAGER)) {
9113 CHECK(info->rmode() == RelocInfo::RUNTIME_ENTRY); 9113 CHECK(RelocInfo::IsRuntimeEntry(info->rmode()));
9114 PrintF(" %s\n", last_comment); 9114 PrintF(" %s\n", last_comment);
9115 return; 9115 return;
9116 } 9116 }
9117 } 9117 }
9118 } 9118 }
9119 9119
9120 9120
9121 // Identify kind of code. 9121 // Identify kind of code.
9122 const char* Code::Kind2String(Kind kind) { 9122 const char* Code::Kind2String(Kind kind) {
9123 switch (kind) { 9123 switch (kind) {
(...skipping 5201 matching lines...) Expand 10 before | Expand all | Expand 10 after
14325 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 14325 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
14326 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 14326 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
14327 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 14327 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
14328 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 14328 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
14329 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 14329 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
14330 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 14330 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
14331 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 14331 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
14332 } 14332 }
14333 14333
14334 } } // namespace v8::internal 14334 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/assembler-mips-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698