| 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 __ Push(lit); | 491 __ Push(lit); |
| 492 } | 492 } |
| 493 } | 493 } |
| 494 | 494 |
| 495 | 495 |
| 496 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { | 496 void FullCodeGenerator::TestContext::Plug(Handle<Object> lit) const { |
| 497 codegen()->PrepareForBailoutBeforeSplit(condition(), | 497 codegen()->PrepareForBailoutBeforeSplit(condition(), |
| 498 true, | 498 true, |
| 499 true_label_, | 499 true_label_, |
| 500 false_label_); | 500 false_label_); |
| 501 DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectableObject()); | 501 DCHECK(lit->IsNull() || lit->IsUndefined() || !lit->IsUndetectable()); |
| 502 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { | 502 if (lit->IsUndefined() || lit->IsNull() || lit->IsFalse()) { |
| 503 if (false_label_ != fall_through_) __ jmp(false_label_); | 503 if (false_label_ != fall_through_) __ jmp(false_label_); |
| 504 } else if (lit->IsTrue() || lit->IsJSObject()) { | 504 } else if (lit->IsTrue() || lit->IsJSObject()) { |
| 505 if (true_label_ != fall_through_) __ jmp(true_label_); | 505 if (true_label_ != fall_through_) __ jmp(true_label_); |
| 506 } else if (lit->IsString()) { | 506 } else if (lit->IsString()) { |
| 507 if (String::cast(*lit)->length() == 0) { | 507 if (String::cast(*lit)->length() == 0) { |
| 508 if (false_label_ != fall_through_) __ jmp(false_label_); | 508 if (false_label_ != fall_through_) __ jmp(false_label_); |
| 509 } else { | 509 } else { |
| 510 if (true_label_ != fall_through_) __ jmp(true_label_); | 510 if (true_label_ != fall_through_) __ jmp(true_label_); |
| 511 } | 511 } |
| (...skipping 3556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4068 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4068 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4069 Assembler::target_address_at(call_target_address, | 4069 Assembler::target_address_at(call_target_address, |
| 4070 unoptimized_code)); | 4070 unoptimized_code)); |
| 4071 return OSR_AFTER_STACK_CHECK; | 4071 return OSR_AFTER_STACK_CHECK; |
| 4072 } | 4072 } |
| 4073 | 4073 |
| 4074 } // namespace internal | 4074 } // namespace internal |
| 4075 } // namespace v8 | 4075 } // namespace v8 |
| 4076 | 4076 |
| 4077 #endif // V8_TARGET_ARCH_X64 | 4077 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |