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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.cc

Issue 2059173002: Reland of place all remaining Oddball checks with new function (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 __ li(result_register(), Operand(lit)); 523 __ li(result_register(), Operand(lit));
524 codegen()->PushOperand(result_register()); 524 codegen()->PushOperand(result_register());
525 } 525 }
526 526
527 527
528 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { 528 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const {
529 codegen()->PrepareForBailoutBeforeSplit(condition(), 529 codegen()->PrepareForBailoutBeforeSplit(condition(),
530 true, 530 true,
531 true_label_, 531 true_label_,
532 false_label_); 532 false_label_);
533 DCHECK(lit->IsNull() || lit->IsUndefined(isolate()) || 533 DCHECK(lit->IsNull(isolate()) || lit->IsUndefined(isolate()) ||
534 !lit->IsUndetectable()); 534 !lit->IsUndetectable());
535 if (lit->IsUndefined(isolate()) || lit->IsNull() || lit->IsFalse()) { 535 if (lit->IsUndefined(isolate()) || lit->IsNull(isolate()) ||
536 lit->IsFalse(isolate())) {
536 if (false_label_ != fall_through_) __ Branch(false_label_); 537 if (false_label_ != fall_through_) __ Branch(false_label_);
537 } else if (lit->IsTrue() || lit->IsJSObject()) { 538 } else if (lit->IsTrue(isolate()) || lit->IsJSObject()) {
538 if (true_label_ != fall_through_) __ Branch(true_label_); 539 if (true_label_ != fall_through_) __ Branch(true_label_);
539 } else if (lit->IsString()) { 540 } else if (lit->IsString()) {
540 if (String::cast(*lit)->length() == 0) { 541 if (String::cast(*lit)->length() == 0) {
541 if (false_label_ != fall_through_) __ Branch(false_label_); 542 if (false_label_ != fall_through_) __ Branch(false_label_);
542 } else { 543 } else {
543 if (true_label_ != fall_through_) __ Branch(true_label_); 544 if (true_label_ != fall_through_) __ Branch(true_label_);
544 } 545 }
545 } else if (lit->IsSmi()) { 546 } else if (lit->IsSmi()) {
546 if (Smi::cast(*lit)->value() == 0) { 547 if (Smi::cast(*lit)->value() == 0) {
547 if (false_label_ != fall_through_) __ Branch(false_label_); 548 if (false_label_ != fall_through_) __ Branch(false_label_);
(...skipping 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after
3827 reinterpret_cast<uint64_t>( 3828 reinterpret_cast<uint64_t>(
3828 isolate->builtins()->OnStackReplacement()->entry())); 3829 isolate->builtins()->OnStackReplacement()->entry()));
3829 return ON_STACK_REPLACEMENT; 3830 return ON_STACK_REPLACEMENT;
3830 } 3831 }
3831 3832
3832 3833
3833 } // namespace internal 3834 } // namespace internal
3834 } // namespace v8 3835 } // namespace v8
3835 3836
3836 #endif // V8_TARGET_ARCH_MIPS64 3837 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698