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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const { 507 void FullCodeGenerator::StackValueContext::Plug(Handle<Object> lit) const {
508 // Immediates cannot be pushed directly. 508 // Immediates cannot be pushed directly.
509 __ mov(result_register(), Operand(lit)); 509 __ mov(result_register(), Operand(lit));
510 codegen()->PushOperand(result_register()); 510 codegen()->PushOperand(result_register());
511 } 511 }
512 512
513 513
514 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { 514 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const {
515 codegen()->PrepareForBailoutBeforeSplit(condition(), true, true_label_, 515 codegen()->PrepareForBailoutBeforeSplit(condition(), true, true_label_,
516 false_label_); 516 false_label_);
517 DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectableObject()); 517 DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectable());
518 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { 518 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) {
519 if (false_label_ != fall_through_) __ b(false_label_); 519 if (false_label_ != fall_through_) __ b(false_label_);
520 } else if (lit->IsTrue() || lit->IsJSObject()) { 520 } else if (lit->IsTrue() || lit->IsJSObject()) {
521 if (true_label_ != fall_through_) __ b(true_label_); 521 if (true_label_ != fall_through_) __ b(true_label_);
522 } else if (lit->IsString()) { 522 } else if (lit->IsString()) {
523 if (String::cast(*lit)->length() == 0) { 523 if (String::cast(*lit)->length() == 0) {
524 if (false_label_ != fall_through_) __ b(false_label_); 524 if (false_label_ != fall_through_) __ b(false_label_);
525 } else { 525 } else {
526 if (true_label_ != fall_through_) __ b(true_label_); 526 if (true_label_ != fall_through_) __ b(true_label_);
527 } 527 }
(...skipping 3647 matching lines...) Expand 10 before | Expand all | Expand 10 after
4175 return ON_STACK_REPLACEMENT; 4175 return ON_STACK_REPLACEMENT;
4176 } 4176 }
4177 4177
4178 DCHECK(interrupt_address == 4178 DCHECK(interrupt_address ==
4179 isolate->builtins()->OsrAfterStackCheck()->entry()); 4179 isolate->builtins()->OsrAfterStackCheck()->entry());
4180 return OSR_AFTER_STACK_CHECK; 4180 return OSR_AFTER_STACK_CHECK;
4181 } 4181 }
4182 } // namespace internal 4182 } // namespace internal
4183 } // namespace v8 4183 } // namespace v8
4184 #endif // V8_TARGET_ARCH_PPC 4184 #endif // V8_TARGET_ARCH_PPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698