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

Side by Side Diff: src/objects.cc

Issue 9304001: Implement inlining of constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Vyacheslav Egorov. Created 8 years, 10 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/lithium-mips.cc ('k') | src/runtime.cc » ('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 8207 matching lines...) Expand 10 before | Expand all | Expand 10 after
8218 int function_id = iterator.Next(); 8218 int function_id = iterator.Next();
8219 JSFunction* function = 8219 JSFunction* function =
8220 JSFunction::cast(LiteralArray()->get(function_id)); 8220 JSFunction::cast(LiteralArray()->get(function_id));
8221 unsigned height = iterator.Next(); 8221 unsigned height = iterator.Next();
8222 PrintF(out, "{ast_id=%d, function=", ast_id); 8222 PrintF(out, "{ast_id=%d, function=", ast_id);
8223 function->PrintName(out); 8223 function->PrintName(out);
8224 PrintF(out, ", height=%u}", height); 8224 PrintF(out, ", height=%u}", height);
8225 break; 8225 break;
8226 } 8226 }
8227 8227
8228 case Translation::ARGUMENTS_ADAPTOR_FRAME: { 8228 case Translation::ARGUMENTS_ADAPTOR_FRAME:
8229 case Translation::CONSTRUCT_STUB_FRAME: {
8230 int function_id = iterator.Next();
8231 JSFunction* function =
8232 JSFunction::cast(LiteralArray()->get(function_id));
8229 unsigned height = iterator.Next(); 8233 unsigned height = iterator.Next();
8230 PrintF(out, "{arguments adaptor, height=%d}", height); 8234 PrintF(out, "{function=");
8235 function->PrintName(out);
8236 PrintF(out, ", height=%u}", height);
8231 break; 8237 break;
8232 } 8238 }
8233 8239
8234 case Translation::DUPLICATE: 8240 case Translation::DUPLICATE:
8235 break; 8241 break;
8236 8242
8237 case Translation::REGISTER: { 8243 case Translation::REGISTER: {
8238 int reg_code = iterator.Next(); 8244 int reg_code = iterator.Next();
8239 PrintF(out, "{input=%s}", converter.NameOfCPURegister(reg_code)); 8245 PrintF(out, "{input=%s}", converter.NameOfCPURegister(reg_code));
8240 break; 8246 break;
(...skipping 4782 matching lines...) Expand 10 before | Expand all | Expand 10 after
13023 if (break_point_objects()->IsUndefined()) return 0; 13029 if (break_point_objects()->IsUndefined()) return 0;
13024 // Single break point. 13030 // Single break point.
13025 if (!break_point_objects()->IsFixedArray()) return 1; 13031 if (!break_point_objects()->IsFixedArray()) return 1;
13026 // Multiple break points. 13032 // Multiple break points.
13027 return FixedArray::cast(break_point_objects())->length(); 13033 return FixedArray::cast(break_point_objects())->length();
13028 } 13034 }
13029 #endif // ENABLE_DEBUGGER_SUPPORT 13035 #endif // ENABLE_DEBUGGER_SUPPORT
13030 13036
13031 13037
13032 } } // namespace v8::internal 13038 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698