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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ARM 5 #if V8_TARGET_ARCH_ARM
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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 } else { 636 } else {
637 if (false_label_ != fall_through_) __ b(false_label_); 637 if (false_label_ != fall_through_) __ b(false_label_);
638 } 638 }
639 } 639 }
640 640
641 641
642 void FullCodeGenerator::DoTest(Expression* condition, 642 void FullCodeGenerator::DoTest(Expression* condition,
643 Label* if_true, 643 Label* if_true,
644 Label* if_false, 644 Label* if_false,
645 Label* fall_through) { 645 Label* fall_through) {
646 Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); 646 Handle<Code> ic = ToBooleanICStub::GetUninitialized(isolate());
647 CallIC(ic, condition->test_id()); 647 CallIC(ic, condition->test_id());
648 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); 648 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex);
649 Split(eq, if_true, if_false, fall_through); 649 Split(eq, if_true, if_false, fall_through);
650 } 650 }
651 651
652 652
653 void FullCodeGenerator::Split(Condition cond, 653 void FullCodeGenerator::Split(Condition cond,
654 Label* if_true, 654 Label* if_true,
655 Label* if_false, 655 Label* if_false,
656 Label* fall_through) { 656 Label* fall_through) {
(...skipping 3610 matching lines...) Expand 10 before | Expand all | Expand 10 after
4267 DCHECK(interrupt_address == 4267 DCHECK(interrupt_address ==
4268 isolate->builtins()->OsrAfterStackCheck()->entry()); 4268 isolate->builtins()->OsrAfterStackCheck()->entry());
4269 return OSR_AFTER_STACK_CHECK; 4269 return OSR_AFTER_STACK_CHECK;
4270 } 4270 }
4271 4271
4272 4272
4273 } // namespace internal 4273 } // namespace internal
4274 } // namespace v8 4274 } // namespace v8
4275 4275
4276 #endif // V8_TARGET_ARCH_ARM 4276 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698