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/full-codegen/s390/full-codegen-s390.cc

Issue 2060213002: Revert of Replace 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/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { 506 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const {
507 // Immediates cannot be pushed directly. 507 // Immediates cannot be pushed directly.
508 __ mov(result_register(), Operand(lit)); 508 __ mov(result_register(), Operand(lit));
509 codegen()->PushOperand(result_register()); 509 codegen()->PushOperand(result_register());
510 } 510 }
511 511
512 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { 512 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const {
513 codegen()->PrepareForBailoutBeforeSplit(condition(), true, true_label_, 513 codegen()->PrepareForBailoutBeforeSplit(condition(), true, true_label_,
514 false_label_); 514 false_label_);
515 DCHECK(lit->IsNull(isolate()) || lit->IsUndefined(isolate()) || 515 DCHECK(lit->IsNull() || lit->IsUndefined(isolate()) ||
516 !lit->IsUndetectable()); 516 !lit->IsUndetectable());
517 if (lit->IsUndefined(isolate()) || lit->IsNull(isolate()) || 517 if (lit->IsUndefined(isolate()) || lit->IsNull() || lit->IsFalse()) {
518 lit->IsFalse(isolate())) {
519 if (false_label_ != fall_through_) __ b(false_label_); 518 if (false_label_ != fall_through_) __ b(false_label_);
520 } else if (lit->IsTrue(isolate()) || lit->IsJSObject()) { 519 } else if (lit->IsTrue() || lit->IsJSObject()) {
521 if (true_label_ != fall_through_) __ b(true_label_); 520 if (true_label_ != fall_through_) __ b(true_label_);
522 } else if (lit->IsString()) { 521 } else if (lit->IsString()) {
523 if (String::cast(*lit)->length() == 0) { 522 if (String::cast(*lit)->length() == 0) {
524 if (false_label_ != fall_through_) __ b(false_label_); 523 if (false_label_ != fall_through_) __ b(false_label_);
525 } else { 524 } else {
526 if (true_label_ != fall_through_) __ b(true_label_); 525 if (true_label_ != fall_through_) __ b(true_label_);
527 } 526 }
528 } else if (lit->IsSmi()) { 527 } else if (lit->IsSmi()) {
529 if (Smi::cast(*lit)->value() == 0) { 528 if (Smi::cast(*lit)->value() == 0) {
530 if (false_label_ != fall_through_) __ b(false_label_); 529 if (false_label_ != fall_through_) __ b(false_label_);
(...skipping 3178 matching lines...) Expand 10 before | Expand all | Expand 10 after
3709 DCHECK(kOSRBranchInstruction == br_instr); 3708 DCHECK(kOSRBranchInstruction == br_instr);
3710 3709
3711 DCHECK(interrupt_address == 3710 DCHECK(interrupt_address ==
3712 isolate->builtins()->OnStackReplacement()->entry()); 3711 isolate->builtins()->OnStackReplacement()->entry());
3713 return ON_STACK_REPLACEMENT; 3712 return ON_STACK_REPLACEMENT;
3714 } 3713 }
3715 3714
3716 } // namespace internal 3715 } // namespace internal
3717 } // namespace v8 3716 } // namespace v8
3718 #endif // V8_TARGET_ARCH_S390 3717 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698