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

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

Issue 1850643002: Adding %_NewObject intrinsic (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: formatting 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
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/js/promise.js » ('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 #include "src/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/ast/ast-numbering.h" 8 #include "src/ast/ast-numbering.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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 __ Move(callable.descriptor().GetRegisterParameter(last), 555 __ Move(callable.descriptor().GetRegisterParameter(last),
556 result_register()); 556 result_register());
557 for (int i = last; i-- > 0;) { 557 for (int i = last; i-- > 0;) {
558 PopOperand(callable.descriptor().GetRegisterParameter(i)); 558 PopOperand(callable.descriptor().GetRegisterParameter(i));
559 } 559 }
560 } 560 }
561 __ Call(callable.code(), RelocInfo::CODE_TARGET); 561 __ Call(callable.code(), RelocInfo::CODE_TARGET);
562 context()->Plug(result_register()); 562 context()->Plug(result_register());
563 } 563 }
564 564
565 void FullCodeGenerator::EmitNewObject(CallRuntime* expr) {
566 EmitIntrinsicAsStubCall(expr, CodeFactory::FastNewObject(isolate()));
567 }
565 568
566 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) { 569 void FullCodeGenerator::EmitNumberToString(CallRuntime* expr) {
567 EmitIntrinsicAsStubCall(expr, CodeFactory::NumberToString(isolate())); 570 EmitIntrinsicAsStubCall(expr, CodeFactory::NumberToString(isolate()));
568 } 571 }
569 572
570 573
571 void FullCodeGenerator::EmitToString(CallRuntime* expr) { 574 void FullCodeGenerator::EmitToString(CallRuntime* expr) {
572 EmitIntrinsicAsStubCall(expr, CodeFactory::ToString(isolate())); 575 EmitIntrinsicAsStubCall(expr, CodeFactory::ToString(isolate()));
573 } 576 }
574 577
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || 1941 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() ||
1939 var->initializer_position() >= proxy->position(); 1942 var->initializer_position() >= proxy->position();
1940 } 1943 }
1941 1944
1942 1945
1943 #undef __ 1946 #undef __
1944 1947
1945 1948
1946 } // namespace internal 1949 } // namespace internal
1947 } // namespace v8 1950 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/js/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698