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

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

Issue 295383004: Refactor CallICStub to use a different stub for each customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ports. Created 6 years, 6 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/ia32/code-stubs-ia32.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 // 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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 463
464 464
465 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { 465 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) {
466 Type* output_type = GetType(zone, map); 466 Type* output_type = GetType(zone, map);
467 Type* nil_type = 467 Type* nil_type =
468 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone); 468 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone);
469 return Type::Union(output_type, nil_type, zone); 469 return Type::Union(output_type, nil_type, zone);
470 } 470 }
471 471
472 472
473 void CallIC_ArrayStub::PrintState(StringStream* stream) {
474 state_.Print(stream);
475 stream->Add(" (Array)");
476 }
477
478
473 void CallICStub::PrintState(StringStream* stream) { 479 void CallICStub::PrintState(StringStream* stream) {
474 state_.Print(stream); 480 state_.Print(stream);
475 } 481 }
476 482
477 483
478 void InstanceofStub::PrintName(StringStream* stream) { 484 void InstanceofStub::PrintName(StringStream* stream) {
479 const char* args = ""; 485 const char* args = "";
480 if (HasArgsInRegisters()) { 486 if (HasArgsInRegisters()) {
481 args = "_REGS"; 487 args = "_REGS";
482 } 488 }
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 InstallDescriptor(isolate, &stub3); 795 InstallDescriptor(isolate, &stub3);
790 } 796 }
791 797
792 InternalArrayConstructorStub::InternalArrayConstructorStub( 798 InternalArrayConstructorStub::InternalArrayConstructorStub(
793 Isolate* isolate) : PlatformCodeStub(isolate) { 799 Isolate* isolate) : PlatformCodeStub(isolate) {
794 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 800 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
795 } 801 }
796 802
797 803
798 } } // namespace v8::internal 804 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698