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

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

Issue 247373002: CallICStub with a "never patch" approach until customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE + code size multiplier. Created 6 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
« no previous file with comments | « src/code-stubs.h ('k') | src/debug.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "bootstrapper.h" 7 #include "bootstrapper.h"
8 #include "code-stubs.h" 8 #include "code-stubs.h"
9 #include "cpu-profiler.h" 9 #include "cpu-profiler.h"
10 #include "stub-cache.h" 10 #include "stub-cache.h"
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 471
472 472
473 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { 473 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) {
474 Type* output_type = GetType(zone, map); 474 Type* output_type = GetType(zone, map);
475 Type* nil_type = 475 Type* nil_type =
476 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone); 476 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone);
477 return Type::Union(output_type, nil_type, zone); 477 return Type::Union(output_type, nil_type, zone);
478 } 478 }
479 479
480 480
481 void CallICStub::PrintState(StringStream* stream) {
482 state_.Print(stream);
483 }
484
485
481 void InstanceofStub::PrintName(StringStream* stream) { 486 void InstanceofStub::PrintName(StringStream* stream) {
482 const char* args = ""; 487 const char* args = "";
483 if (HasArgsInRegisters()) { 488 if (HasArgsInRegisters()) {
484 args = "_REGS"; 489 args = "_REGS";
485 } 490 }
486 491
487 const char* inline_check = ""; 492 const char* inline_check = "";
488 if (HasCallSiteInlineCheck()) { 493 if (HasCallSiteInlineCheck()) {
489 inline_check = "_INLINE"; 494 inline_check = "_INLINE";
490 } 495 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 case READ_ELEMENT: stream->Add("ReadElement"); break; 558 case READ_ELEMENT: stream->Add("ReadElement"); break;
554 case NEW_SLOPPY_FAST: stream->Add("NewSloppyFast"); break; 559 case NEW_SLOPPY_FAST: stream->Add("NewSloppyFast"); break;
555 case NEW_SLOPPY_SLOW: stream->Add("NewSloppySlow"); break; 560 case NEW_SLOPPY_SLOW: stream->Add("NewSloppySlow"); break;
556 case NEW_STRICT: stream->Add("NewStrict"); break; 561 case NEW_STRICT: stream->Add("NewStrict"); break;
557 } 562 }
558 } 563 }
559 564
560 565
561 void CallFunctionStub::PrintName(StringStream* stream) { 566 void CallFunctionStub::PrintName(StringStream* stream) {
562 stream->Add("CallFunctionStub_Args%d", argc_); 567 stream->Add("CallFunctionStub_Args%d", argc_);
563 if (RecordCallTarget()) stream->Add("_Recording");
564 } 568 }
565 569
566 570
567 void CallConstructStub::PrintName(StringStream* stream) { 571 void CallConstructStub::PrintName(StringStream* stream) {
568 stream->Add("CallConstructStub"); 572 stream->Add("CallConstructStub");
569 if (RecordCallTarget()) stream->Add("_Recording"); 573 if (RecordCallTarget()) stream->Add("_Recording");
570 } 574 }
571 575
572 576
573 void ArrayConstructorStub::PrintName(StringStream* stream) { 577 void ArrayConstructorStub::PrintName(StringStream* stream) {
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 InstallDescriptor(isolate, &stub3); 799 InstallDescriptor(isolate, &stub3);
796 } 800 }
797 801
798 InternalArrayConstructorStub::InternalArrayConstructorStub( 802 InternalArrayConstructorStub::InternalArrayConstructorStub(
799 Isolate* isolate) : PlatformCodeStub(isolate) { 803 Isolate* isolate) : PlatformCodeStub(isolate) {
800 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 804 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
801 } 805 }
802 806
803 807
804 } } // namespace v8::internal 808 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698