| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
| 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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 521 __ Mov(result_register(), Operand(lit)); | 521 __ Mov(result_register(), Operand(lit)); |
| 522 codegen()->PushOperand(result_register()); | 522 codegen()->PushOperand(result_register()); |
| 523 } | 523 } |
| 524 | 524 |
| 525 | 525 |
| 526 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { | 526 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { |
| 527 codegen()->PrepareForBailoutBeforeSplit(condition(), | 527 codegen()->PrepareForBailoutBeforeSplit(condition(), |
| 528 true, | 528 true, |
| 529 true_label_, | 529 true_label_, |
| 530 false_label_); | 530 false_label_); |
| 531 DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectableObject()); | 531 DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectable()); |
| 532 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { | 532 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { |
| 533 if (false_label_ != fall_through_) __ B(false_label_); | 533 if (false_label_ != fall_through_) __ B(false_label_); |
| 534 } else if (lit->IsTrue() || lit->IsJSObject()) { | 534 } else if (lit->IsTrue() || lit->IsJSObject()) { |
| 535 if (true_label_ != fall_through_) __ B(true_label_); | 535 if (true_label_ != fall_through_) __ B(true_label_); |
| 536 } else if (lit->IsString()) { | 536 } else if (lit->IsString()) { |
| 537 if (String::cast(*lit)->length() == 0) { | 537 if (String::cast(*lit)->length() == 0) { |
| 538 if (false_label_ != fall_through_) __ B(false_label_); | 538 if (false_label_ != fall_through_) __ B(false_label_); |
| 539 } else { | 539 } else { |
| 540 if (true_label_ != fall_through_) __ B(true_label_); | 540 if (true_label_ != fall_through_) __ B(true_label_); |
| 541 } | 541 } |
| (...skipping 3712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4254 } | 4254 } |
| 4255 | 4255 |
| 4256 return INTERRUPT; | 4256 return INTERRUPT; |
| 4257 } | 4257 } |
| 4258 | 4258 |
| 4259 | 4259 |
| 4260 } // namespace internal | 4260 } // namespace internal |
| 4261 } // namespace v8 | 4261 } // namespace v8 |
| 4262 | 4262 |
| 4263 #endif // V8_TARGET_ARCH_ARM64 | 4263 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |