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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/full-codegen/x64/full-codegen-x64.cc ('k') | src/heap/heap.h » ('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_X87 5 #if V8_TARGET_ARCH_X87
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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 } else { 585 } else {
586 if (false_label_ != fall_through_) __ jmp(false_label_); 586 if (false_label_ != fall_through_) __ jmp(false_label_);
587 } 587 }
588 } 588 }
589 589
590 590
591 void FullCodeGenerator::DoTest(Expression* condition, 591 void FullCodeGenerator::DoTest(Expression* condition,
592 Label* if_true, 592 Label* if_true,
593 Label* if_false, 593 Label* if_false,
594 Label* fall_through) { 594 Label* fall_through) {
595 Handle<Code> ic = ToBooleanStub::GetUninitialized(isolate()); 595 Handle<Code> ic = ToBooleanICStub::GetUninitialized(isolate());
596 CallIC(ic, condition->test_id()); 596 CallIC(ic, condition->test_id());
597 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex); 597 __ CompareRoot(result_register(), Heap::kTrueValueRootIndex);
598 Split(equal, if_true, if_false, fall_through); 598 Split(equal, if_true, if_false, fall_through);
599 } 599 }
600 600
601 601
602 void FullCodeGenerator::Split(Condition cc, 602 void FullCodeGenerator::Split(Condition cc,
603 Label* if_true, 603 Label* if_true,
604 Label* if_false, 604 Label* if_false,
605 Label* fall_through) { 605 Label* fall_through) {
(...skipping 3479 matching lines...) Expand 10 before | Expand all | Expand 10 after
4085 Assembler::target_address_at(call_target_address, 4085 Assembler::target_address_at(call_target_address,
4086 unoptimized_code)); 4086 unoptimized_code));
4087 return OSR_AFTER_STACK_CHECK; 4087 return OSR_AFTER_STACK_CHECK;
4088 } 4088 }
4089 4089
4090 4090
4091 } // namespace internal 4091 } // namespace internal
4092 } // namespace v8 4092 } // namespace v8
4093 4093
4094 #endif // V8_TARGET_ARCH_X87 4094 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698