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

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

Issue 1846683006: [stubs] Introduce ToIntegerStub and unify the handling of %_ToInteger. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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 #include "src/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopeinfo.h" 10 #include "src/ast/scopeinfo.h"
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 581
582 void FullCodeGenerator::EmitToName(CallRuntime* expr) { 582 void FullCodeGenerator::EmitToName(CallRuntime* expr) {
583 EmitIntrinsicAsStubCall(expr, CodeFactory::ToName(isolate())); 583 EmitIntrinsicAsStubCall(expr, CodeFactory::ToName(isolate()));
584 } 584 }
585 585
586 586
587 void FullCodeGenerator::EmitToLength(CallRuntime* expr) { 587 void FullCodeGenerator::EmitToLength(CallRuntime* expr) {
588 EmitIntrinsicAsStubCall(expr, CodeFactory::ToLength(isolate())); 588 EmitIntrinsicAsStubCall(expr, CodeFactory::ToLength(isolate()));
589 } 589 }
590 590
591 void FullCodeGenerator::EmitToInteger(CallRuntime* expr) {
592 EmitIntrinsicAsStubCall(expr, CodeFactory::ToInteger(isolate()));
593 }
591 594
592 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { 595 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) {
593 EmitIntrinsicAsStubCall(expr, CodeFactory::ToNumber(isolate())); 596 EmitIntrinsicAsStubCall(expr, CodeFactory::ToNumber(isolate()));
594 } 597 }
595 598
596 599
597 void FullCodeGenerator::EmitToObject(CallRuntime* expr) { 600 void FullCodeGenerator::EmitToObject(CallRuntime* expr) {
598 EmitIntrinsicAsStubCall(expr, CodeFactory::ToObject(isolate())); 601 EmitIntrinsicAsStubCall(expr, CodeFactory::ToObject(isolate()));
599 } 602 }
600 603
(...skipping 1348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1949 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1952 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1950 var->initializer_position() >= proxy->position(); 1953 var->initializer_position() >= proxy->position();
1951 } 1954 }
1952 1955
1953 1956
1954 #undef __ 1957 #undef __
1955 1958
1956 1959
1957 } // namespace internal 1960 } // namespace internal
1958 } // namespace v8 1961 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698