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

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

Issue 1304633002: Correctify instanceof and make it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Add MIPS/MIPS64 ports. Created 5 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
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/js-generic-lowering.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 "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT 587 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT
588 os << state() << " (Array)"; 588 os << state() << " (Array)";
589 } 589 }
590 590
591 591
592 void CallICStub::PrintState(std::ostream& os) const { // NOLINT 592 void CallICStub::PrintState(std::ostream& os) const { // NOLINT
593 os << state(); 593 os << state();
594 } 594 }
595 595
596 596
597 void InstanceofStub::PrintName(std::ostream& os) const { // NOLINT
598 os << "InstanceofStub";
599 if (HasArgsInRegisters()) os << "_REGS";
600 if (HasCallSiteInlineCheck()) os << "_INLINE";
601 if (ReturnTrueFalseObject()) os << "_TRUEFALSE";
602 }
603
604
605 void JSEntryStub::FinishCode(Handle<Code> code) { 597 void JSEntryStub::FinishCode(Handle<Code> code) {
606 Handle<FixedArray> handler_table = 598 Handle<FixedArray> handler_table =
607 code->GetIsolate()->factory()->NewFixedArray(1, TENURED); 599 code->GetIsolate()->factory()->NewFixedArray(1, TENURED);
608 handler_table->set(0, Smi::FromInt(handler_offset_)); 600 handler_table->set(0, Smi::FromInt(handler_offset_));
609 code->set_handler_table(*handler_table); 601 code->set_handler_table(*handler_table);
610 } 602 }
611 603
612 604
613 void LoadDictionaryElementStub::InitializeDescriptor( 605 void LoadDictionaryElementStub::InitializeDescriptor(
614 CodeStubDescriptor* descriptor) { 606 CodeStubDescriptor* descriptor) {
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 1066
1075 if (type->Is(Type::UntaggedPointer())) { 1067 if (type->Is(Type::UntaggedPointer())) {
1076 return Representation::External(); 1068 return Representation::External();
1077 } 1069 }
1078 1070
1079 DCHECK(!type->Is(Type::Untagged())); 1071 DCHECK(!type->Is(Type::Untagged()));
1080 return Representation::Tagged(); 1072 return Representation::Tagged();
1081 } 1073 }
1082 } // namespace internal 1074 } // namespace internal
1083 } // namespace v8 1075 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698