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 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2681 result_var.Bind(assembler->ChangeFloat64ToTagged(fdec_result)); | 2681 result_var.Bind(assembler->ChangeFloat64ToTagged(fdec_result)); |
2682 assembler->Goto(&end); | 2682 assembler->Goto(&end); |
2683 } | 2683 } |
2684 | 2684 |
2685 assembler->Bind(&end); | 2685 assembler->Bind(&end); |
2686 assembler->UpdateFeedback(var_type_feedback.value(), type_feedback_vector, | 2686 assembler->UpdateFeedback(var_type_feedback.value(), type_feedback_vector, |
2687 slot_id); | 2687 slot_id); |
2688 return result_var.value(); | 2688 return result_var.value(); |
2689 } | 2689 } |
2690 | 2690 |
2691 // ES6 section 21.1.3.19 String.prototype.substring ( start, end ) | |
2692 compiler::Node* SubStringStub::Generate(CodeStubAssembler* assembler, | |
2693 compiler::Node* string, | |
2694 compiler::Node* from, | |
2695 compiler::Node* to, | |
2696 compiler::Node* context) { | |
2697 return assembler->SubString(context, string, from, to); | |
2698 } | |
2699 | |
2700 // ES6 section 7.1.13 ToObject (argument) | 2691 // ES6 section 7.1.13 ToObject (argument) |
2701 void ToObjectStub::GenerateAssembly(CodeStubAssembler* assembler) const { | 2692 void ToObjectStub::GenerateAssembly(CodeStubAssembler* assembler) const { |
2702 typedef compiler::Node Node; | 2693 typedef compiler::Node Node; |
2703 typedef CodeStubAssembler::Label Label; | 2694 typedef CodeStubAssembler::Label Label; |
2704 typedef CodeStubAssembler::Variable Variable; | 2695 typedef CodeStubAssembler::Variable Variable; |
2705 | 2696 |
2706 Label if_number(assembler, Label::kDeferred), if_notsmi(assembler), | 2697 Label if_number(assembler, Label::kDeferred), if_notsmi(assembler), |
2707 if_jsreceiver(assembler), if_noconstructor(assembler, Label::kDeferred), | 2698 if_jsreceiver(assembler), if_noconstructor(assembler, Label::kDeferred), |
2708 if_wrapjsvalue(assembler); | 2699 if_wrapjsvalue(assembler); |
2709 | 2700 |
(...skipping 3607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6317 | 6308 |
6318 if (type == MachineType::Pointer()) { | 6309 if (type == MachineType::Pointer()) { |
6319 return Representation::External(); | 6310 return Representation::External(); |
6320 } | 6311 } |
6321 | 6312 |
6322 return Representation::Tagged(); | 6313 return Representation::Tagged(); |
6323 } | 6314 } |
6324 | 6315 |
6325 } // namespace internal | 6316 } // namespace internal |
6326 } // namespace v8 | 6317 } // namespace v8 |
OLD | NEW |