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

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

Issue 2028983002: Introduce IsUndefined(Isolate*) and IsTheHole(Isolate*) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase master 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() || !lit->IsUndetectable()); 533 DCHECK(lit->IsNull() || lit->IsUndefined(isolate()) ||
534 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { 534 !lit->IsUndetectable());
535 if (lit->IsUndefined(isolate()) || lit->IsNull() || lit->IsFalse()) {
535 if (false_label_ != fall_through_) __ Branch(false_label_); 536 if (false_label_ != fall_through_) __ Branch(false_label_);
536 } else if (lit->IsTrue() || lit->IsJSObject()) { 537 } else if (lit->IsTrue() || lit->IsJSObject()) {
537 if (true_label_ != fall_through_) __ Branch(true_label_); 538 if (true_label_ != fall_through_) __ Branch(true_label_);
538 } else if (lit->IsString()) { 539 } else if (lit->IsString()) {
539 if (String::cast(*lit)->length() == 0) { 540 if (String::cast(*lit)->length() == 0) {
540 if (false_label_ != fall_through_) __ Branch(false_label_); 541 if (false_label_ != fall_through_) __ Branch(false_label_);
541 } else { 542 } else {
542 if (true_label_ != fall_through_) __ Branch(true_label_); 543 if (true_label_ != fall_through_) __ Branch(true_label_);
543 } 544 }
544 } else if (lit->IsSmi()) { 545 } else if (lit->IsSmi()) {
(...skipping 3289 matching lines...) Expand 10 before | Expand all | Expand 10 after
3834 reinterpret_cast<uint64_t>( 3835 reinterpret_cast<uint64_t>(
3835 isolate->builtins()->OnStackReplacement()->entry())); 3836 isolate->builtins()->OnStackReplacement()->entry()));
3836 return ON_STACK_REPLACEMENT; 3837 return ON_STACK_REPLACEMENT;
3837 } 3838 }
3838 3839
3839 3840
3840 } // namespace internal 3841 } // namespace internal
3841 } // namespace v8 3842 } // namespace v8
3842 3843
3843 #endif // V8_TARGET_ARCH_MIPS64 3844 #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