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

Side by Side Diff: src/objects.cc

Issue 11498006: Revert 13157, 13145 and 13140: Crankshaft code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years 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/objects-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 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 9113 matching lines...) Expand 10 before | Expand all | Expand 10 after
9124 if (function_id != Translation::kSelfLiteralId) { 9124 if (function_id != Translation::kSelfLiteralId) {
9125 Object* function = LiteralArray()->get(function_id); 9125 Object* function = LiteralArray()->get(function_id);
9126 JSFunction::cast(function)->PrintName(out); 9126 JSFunction::cast(function)->PrintName(out);
9127 } else { 9127 } else {
9128 PrintF(out, "<self>"); 9128 PrintF(out, "<self>");
9129 } 9129 }
9130 PrintF(out, ", height=%u}", height); 9130 PrintF(out, ", height=%u}", height);
9131 break; 9131 break;
9132 } 9132 }
9133 9133
9134 case Translation::COMPILED_STUB_FRAME: {
9135 Code::Kind stub_kind = static_cast<Code::Kind>(iterator.Next());
9136 PrintF(out, "{kind=%d}", stub_kind);
9137 break;
9138 }
9139
9140 case Translation::ARGUMENTS_ADAPTOR_FRAME: 9134 case Translation::ARGUMENTS_ADAPTOR_FRAME:
9141 case Translation::CONSTRUCT_STUB_FRAME: { 9135 case Translation::CONSTRUCT_STUB_FRAME: {
9142 int function_id = iterator.Next(); 9136 int function_id = iterator.Next();
9143 JSFunction* function = 9137 JSFunction* function =
9144 JSFunction::cast(LiteralArray()->get(function_id)); 9138 JSFunction::cast(LiteralArray()->get(function_id));
9145 unsigned height = iterator.Next(); 9139 unsigned height = iterator.Next();
9146 PrintF(out, "{function="); 9140 PrintF(out, "{function=");
9147 function->PrintName(out); 9141 function->PrintName(out);
9148 PrintF(out, ", height=%u}", height); 9142 PrintF(out, ", height=%u}", height);
9149 break; 9143 break;
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
9244 FullCodeGenerator::StateField::decode(pc_and_state))); 9238 FullCodeGenerator::StateField::decode(pc_and_state)));
9245 } 9239 }
9246 } 9240 }
9247 9241
9248 9242
9249 // Identify kind of code. 9243 // Identify kind of code.
9250 const char* Code::Kind2String(Kind kind) { 9244 const char* Code::Kind2String(Kind kind) {
9251 switch (kind) { 9245 switch (kind) {
9252 case FUNCTION: return "FUNCTION"; 9246 case FUNCTION: return "FUNCTION";
9253 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION"; 9247 case OPTIMIZED_FUNCTION: return "OPTIMIZED_FUNCTION";
9254 case COMPILED_STUB: return "COMPILED_STUB";
9255 case STUB: return "STUB"; 9248 case STUB: return "STUB";
9256 case BUILTIN: return "BUILTIN"; 9249 case BUILTIN: return "BUILTIN";
9257 case LOAD_IC: return "LOAD_IC"; 9250 case LOAD_IC: return "LOAD_IC";
9258 case KEYED_LOAD_IC: return "KEYED_LOAD_IC"; 9251 case KEYED_LOAD_IC: return "KEYED_LOAD_IC";
9259 case STORE_IC: return "STORE_IC"; 9252 case STORE_IC: return "STORE_IC";
9260 case KEYED_STORE_IC: return "KEYED_STORE_IC"; 9253 case KEYED_STORE_IC: return "KEYED_STORE_IC";
9261 case CALL_IC: return "CALL_IC"; 9254 case CALL_IC: return "CALL_IC";
9262 case KEYED_CALL_IC: return "KEYED_CALL_IC"; 9255 case KEYED_CALL_IC: return "KEYED_CALL_IC";
9263 case UNARY_OP_IC: return "UNARY_OP_IC"; 9256 case UNARY_OP_IC: return "UNARY_OP_IC";
9264 case BINARY_OP_IC: return "BINARY_OP_IC"; 9257 case BINARY_OP_IC: return "BINARY_OP_IC";
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
9364 DeoptimizationOutputData* data = 9357 DeoptimizationOutputData* data =
9365 DeoptimizationOutputData::cast(this->deoptimization_data()); 9358 DeoptimizationOutputData::cast(this->deoptimization_data());
9366 data->DeoptimizationOutputDataPrint(out); 9359 data->DeoptimizationOutputDataPrint(out);
9367 } else if (kind() == OPTIMIZED_FUNCTION) { 9360 } else if (kind() == OPTIMIZED_FUNCTION) {
9368 DeoptimizationInputData* data = 9361 DeoptimizationInputData* data =
9369 DeoptimizationInputData::cast(this->deoptimization_data()); 9362 DeoptimizationInputData::cast(this->deoptimization_data());
9370 data->DeoptimizationInputDataPrint(out); 9363 data->DeoptimizationInputDataPrint(out);
9371 } 9364 }
9372 PrintF("\n"); 9365 PrintF("\n");
9373 9366
9374 if (kind() == OPTIMIZED_FUNCTION || kind() == COMPILED_STUB) { 9367 if (kind() == OPTIMIZED_FUNCTION) {
9375 SafepointTable table(this); 9368 SafepointTable table(this);
9376 PrintF(out, "Safepoints (size = %u)\n", table.size()); 9369 PrintF(out, "Safepoints (size = %u)\n", table.size());
9377 for (unsigned i = 0; i < table.length(); i++) { 9370 for (unsigned i = 0; i < table.length(); i++) {
9378 unsigned pc_offset = table.GetPcOffset(i); 9371 unsigned pc_offset = table.GetPcOffset(i);
9379 PrintF(out, "%p %4d ", (instruction_start() + pc_offset), pc_offset); 9372 PrintF(out, "%p %4d ", (instruction_start() + pc_offset), pc_offset);
9380 table.PrintEntry(i); 9373 table.PrintEntry(i);
9381 PrintF(out, " (sp -> fp)"); 9374 PrintF(out, " (sp -> fp)");
9382 SafepointEntry entry = table.GetEntry(i); 9375 SafepointEntry entry = table.GetEntry(i);
9383 if (entry.deoptimization_index() != Safepoint::kNoDeoptimizationIndex) { 9376 if (entry.deoptimization_index() != Safepoint::kNoDeoptimizationIndex) {
9384 PrintF(out, " %6d", entry.deoptimization_index()); 9377 PrintF(out, " %6d", entry.deoptimization_index());
(...skipping 4646 matching lines...) Expand 10 before | Expand all | Expand 10 after
14031 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 14024 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
14032 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 14025 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
14033 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 14026 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
14034 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 14027 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
14035 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 14028 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
14036 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 14029 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
14037 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 14030 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
14038 } 14031 }
14039 14032
14040 } } // namespace v8::internal 14033 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698