OLD | NEW |
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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 3678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4217 reinterpret_cast<uint64_t>( | 4217 reinterpret_cast<uint64_t>( |
4218 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4218 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4219 return OSR_AFTER_STACK_CHECK; | 4219 return OSR_AFTER_STACK_CHECK; |
4220 } | 4220 } |
4221 | 4221 |
4222 | 4222 |
4223 } // namespace internal | 4223 } // namespace internal |
4224 } // namespace v8 | 4224 } // namespace v8 |
4225 | 4225 |
4226 #endif // V8_TARGET_ARCH_MIPS64 | 4226 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |