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

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

Issue 1756413003: [runtime] Rename IsUndetectableObject to IsUndetectable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 __ li(result_register(), Operand(lit)); 518 __ li(result_register(), Operand(lit));
519 codegen()->PushOperand(result_register()); 519 codegen()->PushOperand(result_register());
520 } 520 }
521 521
522 522
523 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { 523 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const {
524 codegen()->PrepareForBailoutBeforeSplit(condition(), 524 codegen()->PrepareForBailoutBeforeSplit(condition(),
525 true, 525 true,
526 true_label_, 526 true_label_,
527 false_label_); 527 false_label_);
528 DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectableObject()); 528 DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectable());
529 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { 529 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) {
530 if (false_label_ != fall_through_) __ Branch(false_label_); 530 if (false_label_ != fall_through_) __ Branch(false_label_);
531 } else if (lit->IsTrue() || lit->IsJSObject()) { 531 } else if (lit->IsTrue() || lit->IsJSObject()) {
532 if (true_label_ != fall_through_) __ Branch(true_label_); 532 if (true_label_ != fall_through_) __ Branch(true_label_);
533 } else if (lit->IsString()) { 533 } else if (lit->IsString()) {
534 if (String::cast(*lit)->length() == 0) { 534 if (String::cast(*lit)->length() == 0) {
535 if (false_label_ != fall_through_) __ Branch(false_label_); 535 if (false_label_ != fall_through_) __ Branch(false_label_);
536 } else { 536 } else {
537 if (true_label_ != fall_through_) __ Branch(true_label_); 537 if (true_label_ != fall_through_) __ Branch(true_label_);
538 } 538 }
(...skipping 3666 matching lines...) Expand 10 before | Expand all | Expand 10 after
4205 reinterpret_cast<uint32_t>( 4205 reinterpret_cast<uint32_t>(
4206 isolate->builtins()->OsrAfterStackCheck()->entry())); 4206 isolate->builtins()->OsrAfterStackCheck()->entry()));
4207 return OSR_AFTER_STACK_CHECK; 4207 return OSR_AFTER_STACK_CHECK;
4208 } 4208 }
4209 4209
4210 4210
4211 } // namespace internal 4211 } // namespace internal
4212 } // namespace v8 4212 } // namespace v8
4213 4213
4214 #endif // V8_TARGET_ARCH_MIPS 4214 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698