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

Side by Side Diff: src/code-stubs.cc

Issue 8932004: Implement target cache for constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Vyacheslav Egorov. Created 8 years, 11 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 335 }
336 336
337 337
338 void CallFunctionStub::PrintName(StringStream* stream) { 338 void CallFunctionStub::PrintName(StringStream* stream) {
339 stream->Add("CallFunctionStub_Args%d", argc_); 339 stream->Add("CallFunctionStub_Args%d", argc_);
340 if (ReceiverMightBeImplicit()) stream->Add("_Implicit"); 340 if (ReceiverMightBeImplicit()) stream->Add("_Implicit");
341 if (RecordCallTarget()) stream->Add("_Recording"); 341 if (RecordCallTarget()) stream->Add("_Recording");
342 } 342 }
343 343
344 344
345 void CallConstructStub::PrintName(StringStream* stream) {
346 stream->Add("CallConstructStub");
347 if (RecordCallTarget()) stream->Add("_Recording");
348 }
349
350
345 void ToBooleanStub::PrintName(StringStream* stream) { 351 void ToBooleanStub::PrintName(StringStream* stream) {
346 stream->Add("ToBooleanStub_"); 352 stream->Add("ToBooleanStub_");
347 types_.Print(stream); 353 types_.Print(stream);
348 } 354 }
349 355
350 356
351 void ToBooleanStub::Types::Print(StringStream* stream) const { 357 void ToBooleanStub::Types::Print(StringStream* stream) const {
352 if (IsEmpty()) stream->Add("None"); 358 if (IsEmpty()) stream->Add("None");
353 if (Contains(UNDEFINED)) stream->Add("Undefined"); 359 if (Contains(UNDEFINED)) stream->Add("Undefined");
354 if (Contains(BOOLEAN)) stream->Add("Bool"); 360 if (Contains(BOOLEAN)) stream->Add("Bool");
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(masm, is_jsarray_); 446 KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(masm, is_jsarray_);
441 } else { 447 } else {
442 UNREACHABLE(); 448 UNREACHABLE();
443 } 449 }
444 } 450 }
445 masm->bind(&fail); 451 masm->bind(&fail);
446 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_); 452 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_);
447 } 453 }
448 454
449 } } // namespace v8::internal 455 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/full-codegen.h » ('j') | src/type-info.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698