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

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

Issue 1744163002: [stubs] Introduce a proper ToBooleanStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips 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_IA32 5 #if V8_TARGET_ARCH_IA32
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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 } else { 588 } else {
589 if (false_label_ != fall_through_) __ jmp(false_label_); 589 if (false_label_ != fall_through_) __ jmp(false_label_);
590 } 590 }
591 } 591 }
592 592
593 593
594 void FullCodeGenerator::DoTest(Expression* condition, 594 void FullCodeGenerator::DoTest(Expression* condition,
595 Label* if_true, 595 Label* if_true,
596 Label* if_false, 596 Label* if_false,
597 Label* fall_through) { 597 Label* fall_through) {
598 Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); 598 Handle<Code> ic = ToBooleanICStub::GetUninitialized(isolate());
599 CallIC(ic, condition->test_id()); 599 CallIC(ic, condition->test_id());
600 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); 600 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex);
601 Split(equal, if_true, if_false, fall_through); 601 Split(equal, if_true, if_false, fall_through);
602 } 602 }
603 603
604 604
605 void FullCodeGenerator::Split(Condition cc, 605 void FullCodeGenerator::Split(Condition cc,
606 Label* if_true, 606 Label* if_true,
607 Label* if_false, 607 Label* if_false,
608 Label* fall_through) { 608 Label* fall_through) {
(...skipping 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after
4093 Assembler::target_address_at(call_target_address, 4093 Assembler::target_address_at(call_target_address,
4094 unoptimized_code)); 4094 unoptimized_code));
4095 return OSR_AFTER_STACK_CHECK; 4095 return OSR_AFTER_STACK_CHECK;
4096 } 4096 }
4097 4097
4098 4098
4099 } // namespace internal 4099 } // namespace internal
4100 } // namespace v8 4100 } // namespace v8
4101 4101
4102 #endif // V8_TARGET_ARCH_IA32 4102 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698