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

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

Issue 1053143005: Collect type feedback on result of Math.[round|ceil|floor] (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: MIPS port Created 5 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
« no previous file with comments | « src/code-stubs.h ('k') | src/hydrogen.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 "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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 531
532 532
533 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) { 533 Type* CompareNilICStub::GetInputType(Zone* zone, Handle<Map> map) {
534 Type* output_type = GetType(zone, map); 534 Type* output_type = GetType(zone, map);
535 Type* nil_type = 535 Type* nil_type =
536 nil_value() == kNullValue ? Type::Null(zone) : Type::Undefined(zone); 536 nil_value() == kNullValue ? Type::Null(zone) : Type::Undefined(zone);
537 return Type::Union(output_type, nil_type, zone); 537 return Type::Union(output_type, nil_type, zone);
538 } 538 }
539 539
540 540
541 void CallIC_RoundStub::PrintState(std::ostream& os) const { // NOLINT
542 os << state() << " (Round)";
543 }
544
545
546 void CallIC_FloorStub::PrintState(std::ostream& os) const { // NOLINT
547 os << state() << " (Floor)";
548 }
549
550
551 void CallIC_CeilStub::PrintState(std::ostream& os) const { // NOLINT
552 os << state() << " (Ceil)";
553 }
554
555
541 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT 556 void CallIC_ArrayStub::PrintState(std::ostream& os) const { // NOLINT
542 os << state() << " (Array)"; 557 os << state() << " (Array)";
543 } 558 }
544 559
545 560
546 void CallICStub::PrintState(std::ostream& os) const { // NOLINT 561 void CallICStub::PrintState(std::ostream& os) const { // NOLINT
547 os << state(); 562 os << state();
548 } 563 }
549 564
550 565
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 } 994 }
980 995
981 996
982 InternalArrayConstructorStub::InternalArrayConstructorStub( 997 InternalArrayConstructorStub::InternalArrayConstructorStub(
983 Isolate* isolate) : PlatformCodeStub(isolate) { 998 Isolate* isolate) : PlatformCodeStub(isolate) {
984 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 999 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
985 } 1000 }
986 1001
987 1002
988 } } // namespace v8::internal 1003 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698