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

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

Issue 491143003: Minor-key-ify CallICStub and CallIC_ArrayStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 547
548 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { 548 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) {
549 Type* output_type = GetType(zone, map); 549 Type* output_type = GetType(zone, map);
550 Type* nil_type = 550 Type* nil_type =
551 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone); 551 nil_value_ == kNullValue ? Type::Null(zone) : Type::Undefined(zone);
552 return Type::Union(output_type, nil_type, zone); 552 return Type::Union(output_type, nil_type, zone);
553 } 553 }
554 554
555 555
556 void CallIC_ArrayStub::PrintState(OStream& os) const { // NOLINT 556 void CallIC_ArrayStub::PrintState(OStream& os) const { // NOLINT
557 os << state_ << " (Array)"; 557 os << state() << " (Array)";
558 } 558 }
559 559
560 560
561 void CallICStub::PrintState(OStream& os) const { // NOLINT 561 void CallICStub::PrintState(OStream& os) const { // NOLINT
562 os << state_; 562 os << state();
563 } 563 }
564 564
565 565
566 void InstanceofStub::PrintName(OStream& os) const { // NOLINT 566 void InstanceofStub::PrintName(OStream& os) const { // NOLINT
567 os << "InstanceofStub"; 567 os << "InstanceofStub";
568 if (HasArgsInRegisters()) os << "_REGS"; 568 if (HasArgsInRegisters()) os << "_REGS";
569 if (HasCallSiteInlineCheck()) os << "_INLINE"; 569 if (HasCallSiteInlineCheck()) os << "_INLINE";
570 if (ReturnTrueFalseObject()) os << "_TRUEFALSE"; 570 if (ReturnTrueFalseObject()) os << "_TRUEFALSE";
571 } 571 }
572 572
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 InstallDescriptor(isolate, &stub3); 997 InstallDescriptor(isolate, &stub3);
998 } 998 }
999 999
1000 InternalArrayConstructorStub::InternalArrayConstructorStub( 1000 InternalArrayConstructorStub::InternalArrayConstructorStub(
1001 Isolate* isolate) : PlatformCodeStub(isolate) { 1001 Isolate* isolate) : PlatformCodeStub(isolate) {
1002 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 1002 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
1003 } 1003 }
1004 1004
1005 1005
1006 } } // namespace v8::internal 1006 } } // namespace v8::internal
OLDNEW
« src/code-stubs.h ('K') | « 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